From 1b31fc75c42c657ba72efacae5a06a356e23dce7 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Mon, 9 Jan 2017 18:05:06 +0100 Subject: [PATCH] core: reboot: map to periph/pm --- core/include/reboot.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/include/reboot.h b/core/include/reboot.h index f0aa28200..6a1f879a3 100644 --- a/core/include/reboot.h +++ b/core/include/reboot.h @@ -19,6 +19,8 @@ #ifndef REBOOT_H_ #define REBOOT_H_ +#include "periph/pm.h" + #ifdef __cplusplus extern "C" { #endif @@ -28,7 +30,10 @@ * * 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 }