]> www.fi.muni.cz Git - tinyboard.git/commitdiff
wdt.c: fix for interrupt-only watchdog mode
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Fri, 10 May 2013 20:43:44 +0000 (22:43 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Fri, 10 May 2013 20:43:44 +0000 (22:43 +0200)
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()