| 13 | general_timers_state_t gpt; |
| 14 | |
| 15 | static void ost_event(enum sched_item_id id) { |
| 16 | static const int ost_ticks[4] = { 73, 153, 217, 313 }; |
| 17 | intrpt_set(INT_OSTIMER, gpt.osTimerState); |
| 18 | sched_repeat(id, gpt.osTimerState ? 1 : ost_ticks[control.ports[0] & 3]); |
| 19 | gpt.osTimerState = !gpt.osTimerState; |
| 20 | } |
| 21 | |
| 22 | static uint32_t gpt_peek_counter(int index) { |
| 23 | enum sched_item_id id = SCHED_TIMER1 + index; |
nothing calls this directly
no test coverage detected