1
0
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:
Kévin Roussel 2014-02-12 12:55:48 +01:00
parent e7d19fd2be
commit 7073489dac

View File

@ -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;
}
}