1
0
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:
Kaspar Schleiser 2017-10-16 14:08:05 +02:00 committed by Hauke Petersen
parent 942bfec5fb
commit 416ac62fbf
4 changed files with 3 additions and 11 deletions

View File

@ -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

View File

@ -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

View File

@ -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
/**

View File

@ -30,7 +30,7 @@
#endif
#ifndef PM_BLOCKER_INITIAL
#define PM_BLOCKER_INITIAL { .val_u32 = 0 }
#define PM_BLOCKER_INITIAL { .val_u32 = 0x01010101 }
#endif
/**