12 #ifndef HAL_CNT_TIMER_H 13 #define HAL_CNT_TIMER_H 28 #include "./hal/hal_counter.h" 31 CNT_TIM_ERR_INVALID_PARAM = -1,
32 CNT_TIM_ERR_IN_USE = -2,
33 CNT_TIM_ERR_BAD_STATE = -3,
85 uint32_t hal_cnt_timer_us_to_tick(
void *hdl, uint32_t usec);
void * hal_cnt_timer_open(int id, int prio, void *arg, void(*tmr_cb)(void *))
Open counter timer.
int hal_cnt_timer_stop(void *hdl)
Stop Timer periodic function.
int hal_cnt_timer_start(void *hdl, uint32_t count, int reload)
Run Timer periodic function.
void hal_cnt_timer_close(void *hdl)
Open counter timer.