sys/newlib+shell: use pm_reboot() for reboot()

This commit is contained in:
Hauke Petersen 2017-01-13 10:17:15 +01:00
parent 6998d9708b
commit d0301dfa34
2 changed files with 4 additions and 4 deletions

View File

@ -36,9 +36,9 @@
#include "board.h" #include "board.h"
#include "sched.h" #include "sched.h"
#include "thread.h" #include "thread.h"
#include "reboot.h"
#include "irq.h" #include "irq.h"
#include "log.h" #include "log.h"
#include "periph/pm.h"
#include "uart_stdio.h" #include "uart_stdio.h"
@ -83,7 +83,7 @@ __attribute__((used)) void _fini(void)
void _exit(int n) void _exit(int n)
{ {
LOG_INFO("#! exit %i: resetting\n", n); LOG_INFO("#! exit %i: resetting\n", n);
reboot(); pm_reboot();
while(1); while(1);
} }

View File

@ -18,14 +18,14 @@
* @} * @}
*/ */
#include "reboot.h" #include "periph/pm.h"
int _reboot_handler(int argc, char **argv) int _reboot_handler(int argc, char **argv)
{ {
(void) argc; (void) argc;
(void) argv; (void) argv;
reboot(); pm_reboot();
return 0; return 0;
} }