39 #include "periph_cpu.h"
46 #ifndef PROVIDES_PM_OFF
47 #define PROVIDES_PM_OFF
50 #ifndef PROVIDES_PM_SET_LOWEST
51 #define PROVIDES_PM_SET_LOWEST
58 uint8_t blockers[PM_NUM_MODES];
66 #ifdef MODULE_PM_LAYERED
69 static inline void pm_block(
unsigned mode) { (void)mode; }
77 #ifdef MODULE_PM_LAYERED
80 static inline void pm_unblock(
unsigned mode) { (void)mode; }
Platform-independent access to architecture details.
static void pm_unblock(unsigned mode)
Unblock a power mode.
void pm_set(unsigned mode)
Switches the MCU to a new power mode.
pm_blocker_t pm_get_blocker(void)
Get currently blocked PM modes.
static void pm_block(unsigned mode)
Block a power mode.
Power Management mode blocker typedef.