BeRTOS
timer_posix.h
Go to the documentation of this file.
00001 
00038 #ifndef DRV_TIMER_POSIX_H
00039 #define DRV_TIMER_POSIX_H
00040 
00041 // HW dependent timer initialization
00042 
00043 #define DEFINE_TIMER_ISR     DECLARE_ISR_CONTEXT_SWITCH(timer_isr)
00044 
00046 #define TIMER_TICKS_PER_SEC  250
00047 
00048 #define TIMER_HW_CNT         (1<<31) /* We assume 32bit integers here */
00049 
00050 #include <os/hptime.h>
00051 
00053 #define TIMER_HW_HPTICKS_PER_SEC  HPTIME_TICKS_PER_SECOND
00054 
00056 #define timer_hw_irq() do {} while (0)
00057 
00058 #endif /* DRV_TIMER_POSIX_H */