From d0301dfa342ed75970f9f39a36e0da5e8d5754ac Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Fri, 13 Jan 2017 10:17:15 +0100 Subject: [PATCH] sys/newlib+shell: use pm_reboot() for reboot() --- sys/newlib/syscalls.c | 4 ++-- sys/shell/commands/sc_sys.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/newlib/syscalls.c b/sys/newlib/syscalls.c index 23da5ac55b..3489e36c01 100644 --- a/sys/newlib/syscalls.c +++ b/sys/newlib/syscalls.c @@ -36,9 +36,9 @@ #include "board.h" #include "sched.h" #include "thread.h" -#include "reboot.h" #include "irq.h" #include "log.h" +#include "periph/pm.h" #include "uart_stdio.h" @@ -83,7 +83,7 @@ __attribute__((used)) void _fini(void) void _exit(int n) { LOG_INFO("#! exit %i: resetting\n", n); - reboot(); + pm_reboot(); while(1); } diff --git a/sys/shell/commands/sc_sys.c b/sys/shell/commands/sc_sys.c index 1aa02b3ce2..f14d09392e 100644 --- a/sys/shell/commands/sc_sys.c +++ b/sys/shell/commands/sc_sys.c @@ -18,14 +18,14 @@ * @} */ -#include "reboot.h" +#include "periph/pm.h" int _reboot_handler(int argc, char **argv) { (void) argc; (void) argv; - reboot(); + pm_reboot(); return 0; }