From: Jan "Yenya" Kasprzak Date: Fri, 10 May 2013 20:43:44 +0000 (+0200) Subject: wdt.c: fix for interrupt-only watchdog mode X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=0a2d96379351d90cb210530d9706fb236fc8fa44;p=tinyboard.git wdt.c: fix for interrupt-only watchdog mode --- diff --git a/projects/step-up/wdt.c b/projects/step-up/wdt.c index 9cfa08e..15bfbbb 100644 --- a/projects/step-up/wdt.c +++ b/projects/step-up/wdt.c @@ -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()