Skip to content
Snippets Groups Projects
Commit 416ac62f authored by Kaspar Schleiser's avatar Kaspar Schleiser Committed by Hauke Petersen
Browse files

pm: unify and set safe default pm_blocker

parent 942bfec5
No related branches found
No related tags found
No related merge requests found
......@@ -103,12 +103,6 @@ typedef uint16_t gpio_t;
*/
#define PM_NUM_MODES (1U)
/**
* @brief Override the default initial PM blocker
* @todo we block all modes per default, until PM is cleanly implemented
*/
#define PM_BLOCKER_INITIAL { .val_u32 = 0x01010101 }
#ifndef DOXYGEN
/**
* @brief Override GPIO modes
......
......@@ -65,8 +65,6 @@ typedef uint32_t gpio_t;
* @{
*/
#define PM_NUM_MODES (3)
/** @todo we block all modes per default, until PM is cleanly implemented */
#define PM_BLOCKER_INITIAL { .val_u32 = 0x01010101 }
/** @} */
#ifndef DOXYGEN
......
......@@ -59,7 +59,7 @@ extern "C" {
/**
* @brief Define the number of available PM modes
*/
#define PM_NUM_MODES (2U)
#define PM_NUM_MODES (2U)
/**
* @brief Override the default initial PM blocker
......@@ -70,7 +70,7 @@ extern "C" {
/**
* @brief Define the config flag for stop mode
*/
#define PM_STOP_CONFIG (PWR_CR_LPDS)
#define PM_STOP_CONFIG (PWR_CR_LPDS)
#ifndef DOXYGEN
/**
......
......@@ -30,7 +30,7 @@
#endif
#ifndef PM_BLOCKER_INITIAL
#define PM_BLOCKER_INITIAL { .val_u32 = 0 }
#define PM_BLOCKER_INITIAL { .val_u32 = 0x01010101 }
#endif
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment