The friendly Operating System for the Internet of Things
pm_layered.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 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 
34 #ifndef PM_LAYERED_H
35 #define PM_LAYERED_H
36 
37 #include "assert.h"
38 #include "periph/pm.h"
39 #include "periph_cpu.h"
40 
41 #ifdef __cplusplus
42  extern "C" {
43 #endif
44 
50 void pm_block(unsigned mode);
51 
57 void pm_unblock(unsigned mode);
58 
69 void pm_set(unsigned mode);
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 #endif /* __PM_LAYERED_H */
76 
void pm_unblock(unsigned mode)
Unblock a power mode.
Power management interface.
POSIX.1-2008 compliant version of the assert macro.
void pm_block(unsigned mode)
Block a power mode.
void pm_set(unsigned mode)
Switches the MCU to a new power mode.