From e4b0b3dc8c7fbd0e7bd0485410f963121adc6fa7 Mon Sep 17 00:00:00 2001 From: dak664 Date: Sat, 18 Dec 2010 20:51:11 +0000 Subject: [PATCH] Disable watchdog software counter. Nested watchdog stop/starts will not work, but the low power protocols will. --- cpu/avr/watchdog.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cpu/avr/watchdog.c b/cpu/avr/watchdog.c index d27c89c5d..0061a0802 100644 --- a/cpu/avr/watchdog.c +++ b/cpu/avr/watchdog.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * @(#)$Id: watchdog.c,v 1.2 2010/09/17 21:59:09 dak664 Exp $ + * @(#)$Id: watchdog.c,v 1.3 2010/12/18 20:51:11 dak664 Exp $ */ /* Dummy watchdog routines for the Raven 1284p */ @@ -51,21 +51,21 @@ void watchdog_start(void) { stopped--; - if(!stopped) +// if(!stopped) wdt_enable(WDTO_2S); } /*---------------------------------------------------------------------------*/ void watchdog_periodic(void) { - if(!stopped) +// if(!stopped) wdt_reset(); } /*---------------------------------------------------------------------------*/ void watchdog_stop(void) { - stopped++; +// stopped++; wdt_disable(); } /*---------------------------------------------------------------------------*/