| 49 | } |
| 50 | |
| 51 | error_t timer_start(struct Timer* timer) { |
| 52 | check(xPortInIsrContext() == pdFALSE); |
| 53 | check(timer != NULL); |
| 54 | return (xTimerStart(timer->handle, portMAX_DELAY) == pdPASS) ? ERROR_NONE : ERROR_TIMEOUT; |
| 55 | } |
| 56 | |
| 57 | error_t timer_stop(struct Timer* timer) { |
| 58 | check(xPortInIsrContext() == pdFALSE); |