/** * \file * * * * \author Bernie Innocenti * * \brief Low-level timer module for POSIX systems (interface). */ #ifndef DRV_TIMER_POSIX_H #define DRV_TIMER_POSIX_H // HW dependent timer initialization #define DEFINE_TIMER_ISR DECLARE_ISR_CONTEXT_SWITCH(timer_isr) /** Most Linux kernels can't do better than this (CONFIG_HZ=250). */ #define TIMER_TICKS_PER_SEC 250 #define TIMER_HW_CNT (1<<31) /* We assume 32bit integers here */ #include /// Frequency of the hardware high-precision timer. #define TIMER_HW_HPTICKS_PER_SEC HPTIME_TICKS_PER_SECOND /// Not needed. #define timer_hw_irq() do {} while (0) #endif /* DRV_TIMER_POSIX_H */