mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2026-01-01 01:41:18 +01:00
Implemented reboot() function for MSP430 MCUs
This commit is contained in:
parent
e7d19fd2be
commit
7073489dac
@ -86,3 +86,16 @@ int inISR()
|
||||
{
|
||||
return __inISR;
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
/* System reboot */
|
||||
NORETURN void reboot(void)
|
||||
{
|
||||
/* force an hardware reboot ("Power-Up Clear"), by writing
|
||||
an illegal value to the watchdog control register */
|
||||
while (1) {
|
||||
WDTCTL = 0x0000;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user