core: reboot: map to periph/pm
This commit is contained in:
parent
ac9b12263a
commit
1b31fc75c4
@ -19,6 +19,8 @@
|
|||||||
#ifndef REBOOT_H_
|
#ifndef REBOOT_H_
|
||||||
#define REBOOT_H_
|
#define REBOOT_H_
|
||||||
|
|
||||||
|
#include "periph/pm.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@ -28,7 +30,10 @@
|
|||||||
*
|
*
|
||||||
* This function is used by core_panic() when the DEVELHELP macro is not defined.
|
* This function is used by core_panic() when the DEVELHELP macro is not defined.
|
||||||
*/
|
*/
|
||||||
void reboot(void);
|
static inline void reboot(void)
|
||||||
|
{
|
||||||
|
pm_reboot();
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user