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 __cplusplus
31  extern "C" {
32 #endif
33 
37 void pm_reboot(void);
38 
42 void pm_off(void);
43 
49 void pm_set_lowest(void);
50 
51 #ifdef __cplusplus
52 }
53 #endif
54 
55 #endif /* PERIPH_PM_H */
56 
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.