| 183 | } |
| 184 | |
| 185 | void 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 | |
| 198 | static const eZ80portrange_t device = { |
| 199 | .read = gpt_read, |
nothing calls this directly
no test coverage detected