From 34f6a60a4abba65321618e6b44c34feba0bb1119 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Sun, 24 Oct 2010 21:10:25 +0000 Subject: [PATCH] By default, don't print stack on reboot, since there are cases where this may hang the CPU (when the CPU is in LPM when the watchdog triggers). Must fix the code to set the UART and CU into correct modes before enabling stack printout on reboot. --- cpu/msp430/watchdog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/msp430/watchdog.c b/cpu/msp430/watchdog.c index 404b23355..0020c9bf8 100644 --- a/cpu/msp430/watchdog.c +++ b/cpu/msp430/watchdog.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * @(#)$Id: watchdog.c,v 1.10 2010/09/22 22:12:37 adamdunkels Exp $ + * @(#)$Id: watchdog.c,v 1.11 2010/10/24 21:10:25 adamdunkels Exp $ */ #include #include @@ -36,7 +36,7 @@ static int counter = 0; -#define PRINT_STACK_ON_REBOOT 1 +#define PRINT_STACK_ON_REBOOT 0 /*---------------------------------------------------------------------------*/ #ifdef CONTIKI_TARGET_SKY