| 41 | } |
| 42 | |
| 43 | void timer_free(struct Timer* timer) { |
| 44 | check(xPortInIsrContext() == pdFALSE); |
| 45 | check(timer != NULL); |
| 46 | // MAX_TICKS or a reasonable timeout for the timer command queue |
| 47 | xTimerDelete(timer->handle, portMAX_DELAY); |
| 48 | free(timer); |
| 49 | } |
| 50 | |
| 51 | error_t timer_start(struct Timer* timer) { |
| 52 | check(xPortInIsrContext() == pdFALSE); |