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.
This commit is contained in:
parent
77ecfb0366
commit
34f6a60a4a
|
@ -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 <io.h>
|
||||
#include <signal.h>
|
||||
|
@ -36,7 +36,7 @@
|
|||
|
||||
static int counter = 0;
|
||||
|
||||
#define PRINT_STACK_ON_REBOOT 1
|
||||
#define PRINT_STACK_ON_REBOOT 0
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#ifdef CONTIKI_TARGET_SKY
|
||||
|
|
Loading…
Reference in a new issue