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

Function watchdog_reset

core/misc.c:259–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259void watchdog_reset() {
260 /* Initialize device to default state */
261 memset(&watchdog, 0, sizeof watchdog);
262
263 watchdog_init_events();
264 watchdog.revision = 0x00010602;
265 watchdog.count = watchdog.load = 0x03EF1480; /* (66MHz) */
266 watchdog.pulseCount = watchdog.pulseLoad = 0xFF;
267
268 gui_console_printf("[CEmu] Watchdog timer reset.\n");
269}
270
271eZ80portrange_t init_watchdog(void) {
272 gui_console_printf("[CEmu] Initialized Watchdog Timer...\n");

Callers

nothing calls this directly

Calls 2

watchdog_init_eventsFunction · 0.85
gui_console_printfFunction · 0.50

Tested by

no test coverage detected