Added a reboot function

This commit is contained in:
adamdunkels 2008-01-08 08:03:02 +00:00
parent b50d2b02ee
commit 7f05b8a5ef

View file

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* @(#)$Id: watchdog.c,v 1.2 2007/11/17 10:16:48 adamdunkels Exp $
* @(#)$Id: watchdog.c,v 1.3 2008/01/08 08:03:02 adamdunkels Exp $
*/
#include <io.h>
#include "dev/watchdog.h"
@ -64,3 +64,9 @@ watchdog_stop(void)
WDTCTL = WDTPW | WDTHOLD;
}
/*---------------------------------------------------------------------------*/
void
watchdog_reboot(void)
{
WDTCTL = 0;
}
/*---------------------------------------------------------------------------*/