blob: 759cf9e0c7f5f24bc305d6d8603c60245bab9943 (
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
25
26
|
/** @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();
void setup_lapic_timer();
#endif
|