MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / ost_event

Function ost_event

core/timers.c:15–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13general_timers_state_t gpt;
14
15static 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
22static uint32_t gpt_peek_counter(int index) {
23 enum sched_item_id id = SCHED_TIMER1 + index;

Callers

nothing calls this directly

Calls 2

intrpt_setFunction · 0.85
sched_repeatFunction · 0.85

Tested by

no test coverage detected