/* * Copyright (C) 2015 Rakendra Thapa */ #ifndef __HWTIMER_CPU_H #define __HWTIMER_CPU_H #ifdef __cplusplus extern "C" { #endif /** * @name Hardware timer configuration * @{ */ #define HWTIMER_MAXTIMERS 1 /**< the CPU implementation supports 4 HW timers */ #define HWTIMER_SPEED 1000000 /**< the HW timer runs with 1MHz */ #define HWTIMER_MAXTICKS 0xffffffff /**< 32-bit timer */ #define HWTIMER_MSEC (HWTIMER_SPEED/1000) #define HWTIMER_SEC (HWTIMER_SPEED/1000000) /** @} */ #ifdef __cplusplus } #endif #endif /* __HWTIMER_CPU_H */ /** @} */