Lines Matching defs:timer
51 void non_repeating_timer_free(non_repeating_timer_t *timer) {
52 if (!timer)
55 alarm_free(timer->alarm);
56 osi_free(timer);
59 void non_repeating_timer_restart(non_repeating_timer_t *timer) {
60 non_repeating_timer_restart_if(timer, true);
63 void non_repeating_timer_restart_if(non_repeating_timer_t *timer, bool condition) {
64 assert(timer != NULL);
66 alarm_set(timer->alarm, timer->duration, timer->callback, timer->data);
68 non_repeating_timer_cancel(timer);
71 void non_repeating_timer_cancel(non_repeating_timer_t *timer) {
72 assert(timer != NULL);
73 alarm_cancel(timer->alarm);