blob: 8d6368e0648b412c51e1a31dbdaa3385dd81f6cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/** @file timer.h
*
* @brief timer functions.
*
* @author Hanjie Wu (hanjiew)
* @bug No functional bugs
*/
#ifndef _TIMER_H_
#define _TIMER_H_
/** ticks passed */
extern unsigned int ticks;
/** timer heap lock */
extern spl_t timer_lock;
/** timers of sleeping threads */
extern heap_t timers;
/**
* @brief initialize the timer
*/
void timer_init();
#endif
|