mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-21 19:29:18 +00:00
Added a reboot function
This commit is contained in:
parent
b50d2b02ee
commit
7f05b8a5ef
@ -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;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
Loading…
Reference in New Issue
Block a user