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

Function gpt_reset

core/timers.c:185–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185void gpt_reset() {
186 enum sched_item_id id;
187 memset(&gpt, 0, sizeof(gpt));
188 gpt.revision = 0x00010801;
189
190 gpt_init_events();
191 for (id = SCHED_TIMER1; id <= SCHED_TIMER3; id++) {
192 gpt_refresh(id);
193 }
194 sched_set(SCHED_OSTIMER, 0);
195 gui_console_printf("[CEmu] GPT reset.\n");
196}
197
198static const eZ80portrange_t device = {
199 .read = gpt_read,

Callers

nothing calls this directly

Calls 4

gpt_init_eventsFunction · 0.85
gpt_refreshFunction · 0.85
sched_setFunction · 0.85
gui_console_printfFunction · 0.50

Tested by

no test coverage detected