sys/newlib+shell: use pm_reboot() for reboot()
This commit is contained in:
parent
6998d9708b
commit
d0301dfa34
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user