Only include code for stack printouts when needed

This commit is contained in:
nifi 2010-11-12 15:54:41 +00:00
parent 3975abec8a
commit 5de83c9085

View file

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* @(#)$Id: watchdog.c,v 1.11 2010/10/24 21:10:25 adamdunkels Exp $
* @(#)$Id: watchdog.c,v 1.12 2010/11/12 15:54:41 nifi Exp $
*/
#include <io.h>
#include <signal.h>
@ -39,6 +39,7 @@ static int counter = 0;
#define PRINT_STACK_ON_REBOOT 0
/*---------------------------------------------------------------------------*/
#if PRINT_STACK_ON_REBOOT
#ifdef CONTIKI_TARGET_SKY
static void
printchar(char c)
@ -66,7 +67,8 @@ printstring(char *s)
printchar(*s++);
}
}
#endif
#endif /* CONTIKI_TARGET_SKY */
#endif /* PRINT_STACK_ON_REBOOT */
/*---------------------------------------------------------------------------*/
interrupt(WDT_VECTOR)
watchdog_interrupt(void)