• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef TIMER_H
2 #define TIMER_H
3 
4 /*
5  * Basic timer function...
6  */
7 typedef uint32_t jiffies_t;
8 extern volatile jiffies_t __jiffies, __ms_timer;
jiffies(void)9 static inline jiffies_t jiffies(void)
10 {
11     return __jiffies;
12 }
13 
14 typedef uint32_t mstime_t;
15 typedef int32_t  mstimediff_t;
ms_timer(void)16 static inline mstime_t ms_timer(void)
17 {
18     return __ms_timer;
19 }
20 
21 #endif /* TIMER_H */
22