Last change
on this file was
e16e8f2,
checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago
|
bootstuff
|
-
Property mode set to
100644
|
File size:
354 bytes
|
Line | |
---|
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; |
---|
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; |
---|
16 | static inline mstime_t ms_timer(void) |
---|
17 | { |
---|
18 | return __ms_timer; |
---|
19 | } |
---|
20 | |
---|
21 | #endif /* TIMER_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.