40 #ifndef SYS_TIMER_CAPACITY 41 #define SYS_TIMER_CAPACITY 8 sys_timer_t * sys_timer_init(uint32_t interval_ms, void(*callback)(sys_timer_t *), void *userdata)
Allocate and configure a timer from the pool.
struct sys_timer_t sys_timer_t
Timer.
bool sys_timer_start(sys_timer_t *timer)
Start a timer.
void * sys_timer_userdata(sys_timer_t *timer)
Return user data associated with a timer.
void sys_timer_deinit(sys_timer_t *timer)
Stop and release a timer back to the pool.