The friendly Operating System for the Internet of Things
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 
23 #ifndef PM_H
24 #define PM_H
25 
26 #include "assert.h"
27 #include "periph_cpu.h"
28 
29 #ifdef __cplusplus
30  extern "C" {
31 #endif
32 
36 void pm_reboot(void);
37 
41 void pm_off(void);
42 
48 void pm_set_lowest(void);
49 
50 #ifdef __cplusplus
51 }
52 #endif
53 
54 #endif /* __PM_H */
55 
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.