Loading...
Searching...
No Matches
pm_layered.h File Reference

Layered low power mode infrastructure. More...

Detailed Description

Layered low power mode infrastructure.

Author
Kaspar Schleiser kaspa.nosp@m.r@sc.nosp@m.hleis.nosp@m.er.d.nosp@m.e

Definition in file pm_layered.h.

#include <stdint.h>
#include "periph_cpu.h"
#include "architecture.h"
+ Include dependency graph for pm_layered.h:

Go to the source code of this file.

Data Structures

struct  WORD_ALIGNED
 Power Management mode blocker typedef. More...
 

Functions

static void pm_block (unsigned mode)
 Block a power mode.
 
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.