| 55 | } |
| 56 | |
| 57 | error_t timer_stop(struct Timer* timer) { |
| 58 | check(xPortInIsrContext() == pdFALSE); |
| 59 | check(timer != NULL); |
| 60 | return (xTimerStop(timer->handle, portMAX_DELAY) == pdPASS) ? ERROR_NONE : ERROR_TIMEOUT; |
| 61 | } |
| 62 | |
| 63 | error_t timer_reset_with_interval(struct Timer* timer, TickType_t interval) { |
| 64 | check(xPortInIsrContext() == pdFALSE); |