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:
parent
c33087bdcd
commit
7ad37edb82
@ -88,6 +88,8 @@ void thread_print_stack(void)
|
||||
|
||||
NORETURN void reboot(void)
|
||||
{
|
||||
arm_reset();
|
||||
while (1) {
|
||||
arm_reset();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user