mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pm: unify and set safe default pm_blocker
This commit is contained in:
parent
942bfec5fb
commit
416ac62fbf
@ -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
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user