30 #ifndef CODEBASE_PERIPHERAL_MODULES_US_TIMER_H_ 31 #define CODEBASE_PERIPHERAL_MODULES_US_TIMER_H_ 36 #include "nrf_peripherals.h" 37 #include "common_util.h" 39 #if SYS_CFG_PRESENT == 1 40 #include "sys_config.h" 42 #ifndef TIMER_USED_US_TIMER 43 #define TIMER_USED_US_TIMER 3 48 #define US_TIMER_USED TIMER_USED_US_TIMER 51 #define US_TIMER_CC_COUNT CONCAT_3(TIMER, US_TIMER_USED, _CC_NUM) 61 #if (US_TIMER_CC_COUNT == 6) us_timer_num
Enumeration used for specifying the timers that can be used with this TIMER peripheral.
void us_timer_start(us_timer_num id, us_timer_mode mode, uint32_t time_us, void(*handler)(void))
void us_timer_init(uint32_t irq_priority)
Initialize the TIMER peripheral to use as a micro-second timer.
One shot call of the timer.
bool us_timer_get_on_status(us_timer_num id)
Not a timer, just used to find the number of timers.
void us_timer_stop(us_timer_num id)
Repeated call of the timer.
us_timer_mode
Enumeration to specify the mode of operation of the timer.