| 70 | } |
| 71 | |
| 72 | error_t timer_reset(struct Timer* timer) { |
| 73 | check(xPortInIsrContext() == pdFALSE); |
| 74 | check(timer != NULL); |
| 75 | return (xTimerReset(timer->handle, portMAX_DELAY) == pdPASS) ? ERROR_NONE : ERROR_TIMEOUT; |
| 76 | } |
| 77 | |
| 78 | bool timer_is_running(struct Timer* timer) { |
| 79 | check(xPortInIsrContext() == pdFALSE); |