1 #ifndef __TIMER_API_H__
2 #define __TIMER_API_H__
4 * In order to remain completely independent of OS header files,
5 * "_SPACE" structures are declared with sufficient room to hold
6 * corresponding OS structures.
8 typedef unsigned int _A_TIMER_SPACE[5];
9 typedef _A_TIMER_SPACE A_timer_t;
10 #define A_TIMER A_timer_t /* historical */
12 typedef unsigned int A_HANDLE; /* historical */
13 typedef void A_TIMER_FUNC(A_HANDLE timer_handle, void *arg);
16 void (* _timer_init)(void);
17 void (* _timer_arm)(A_timer_t *, unsigned int);
18 void (* _timer_disarm)(A_timer_t *);
19 void (* _timer_setfn)(A_timer_t *, A_TIMER_FUNC, void *);
20 void (* _timer_run)(void);
22 #endif /* __TIMER_API_H__ */