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

Function gpt_delay

core/timers.c:118–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118static void gpt_delay(enum sched_item_id id) {
119 int index;
120 gpt.status |= gpt.delayStatus & ((1 << 9) - 1);
121 for (index = 0; index < 3; index++) {
122 intrpt_set(INT_TIMER1 << index, gpt.delayIntrpt & 1 << index);
123 }
124 gpt.delayStatus >>= 9;
125 if (gpt.delayStatus || gpt.delayIntrpt) {
126 sched_repeat(id, 1);
127 }
128 gpt.delayIntrpt >>= 3;
129}
130
131static void gpt_some(int which, void update(enum sched_item_id id)) {
132 int index = which < 3 ? which : 0;

Callers

nothing calls this directly

Calls 2

intrpt_setFunction · 0.85
sched_repeatFunction · 0.85

Tested by

no test coverage detected