mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Implemented reboot() function for ARM-based MCUs
This commit is contained in:
parent
ca6db02530
commit
c33087bdcd
@ -19,6 +19,7 @@
|
||||
#include <stdio.h>
|
||||
#include "arm_cpu.h"
|
||||
#include "sched.h"
|
||||
#include "kernel.h"
|
||||
#include "kernel_internal.h"
|
||||
|
||||
#define STACK_MARKER (0x77777777)
|
||||
@ -84,3 +85,9 @@ void thread_print_stack(void)
|
||||
|
||||
printf("STACK (%u)= %X \n", i, *s);
|
||||
}
|
||||
|
||||
NORETURN void reboot(void)
|
||||
{
|
||||
arm_reset();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user