]> www.fi.muni.cz Git - tinyboard.git/blobdiff - projects/step-up/wdt.c
wdt.c: fix for interrupt-only watchdog mode
[tinyboard.git] / projects / step-up / wdt.c
index 9cfa08eb09f136b0841304501986e7bc89498258..15bfbbb54f1374069ea6bd01d1e4b44b8247fffc 100644 (file)
@@ -6,8 +6,7 @@
 
 void init_wdt()
 {
-       wdt_enable(WDTO_60MS);
-       WDTCR |= _BV(WDIE);
+       WDTCR = _BV(WDIE) | _BV(WDP1); // interrupt mode, 64 ms
 }
 
 void susp_wdt()