1
0
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:
Kévin Roussel 2014-02-14 11:01:28 +01:00
parent ca6db02530
commit c33087bdcd

View File

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