1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Added while(1) to ensure GCC valids NORETURN; fixed indentation

This commit is contained in:
Kévin Roussel 2014-02-14 12:13:10 +01:00
parent c33087bdcd
commit 7ad37edb82
2 changed files with 8 additions and 6 deletions

View File

@ -88,6 +88,8 @@ void thread_print_stack(void)
NORETURN void reboot(void)
{
arm_reset();
while (1) {
arm_reset();
}
}

View File

@ -92,10 +92,10 @@ int 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;
}
/* force an hardware reboot ("Power-Up Clear"), by writing
an illegal value to the watchdog control register */
while (1) {
WDTCTL = 0x0000;
}
}