pm.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Kaspar Schleiser <kaspar@schleiser.de>
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
24 #ifndef PERIPH_PM_H
25 #define PERIPH_PM_H
26 
27 #include "assert.h"
28 #include "periph_cpu.h"
29 
30 #ifdef MODULE_PM_LAYERED
31 #include "pm_layered.h"
32 #endif
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
41 void pm_reboot(void);
42 
46 void pm_off(void);
47 
53 void pm_set_lowest(void);
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #endif /* PERIPH_PM_H */
60 
Layered low power mode infrastructure.
void pm_reboot(void)
Reboot MCU.
void pm_off(void)
Turn off MCU completely.
POSIX.1-2008 compliant version of the assert macro.
void pm_set_lowest(void)
Switches the MCU to the lowest possible power mode.