Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2071 | Rev 2275 | ||
---|---|---|---|
Line 33... | Line 33... | ||
33 | */ |
33 | */ |
34 | 34 | ||
35 | #ifndef KERN_CLOCK_H_ |
35 | #ifndef KERN_CLOCK_H_ |
36 | #define KERN_CLOCK_H_ |
36 | #define KERN_CLOCK_H_ |
37 | 37 | ||
- | 38 | #include <arch/types.h> |
|
- | 39 | ||
38 | #define HZ 100 |
40 | #define HZ 100 |
39 | 41 | ||
- | 42 | /** Uptime structure */ |
|
- | 43 | typedef struct { |
|
- | 44 | unative_t seconds1; |
|
- | 45 | unative_t useconds; |
|
- | 46 | unative_t seconds2; |
|
- | 47 | } uptime_t; |
|
- | 48 | ||
- | 49 | extern uptime_t *uptime; |
|
- | 50 | ||
40 | extern void clock(void); |
51 | extern void clock(void); |
41 | extern void clock_counter_init(void); |
52 | extern void clock_counter_init(void); |
42 | 53 | ||
43 | #endif |
54 | #endif |
44 | 55 |