Skip to content

Commit 169cffa

Browse files
committed
pm: unify and set safe default pm_blocker
1 parent 2e12239 commit 169cffa

File tree

4 files changed

+1
-15
lines changed

4 files changed

+1
-15
lines changed

cpu/kinetis_common/include/periph_cpu.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,6 @@ typedef uint16_t gpio_t;
103103
*/
104104
#define PM_NUM_MODES (1U)
105105

106-
/**
107-
* @brief Override the default initial PM blocker
108-
* @todo we block all modes per default, until PM is cleanly implemented
109-
*/
110-
#define PM_BLOCKER_INITIAL { .val_u32 = 0x01010101 }
111-
112106
#ifndef DOXYGEN
113107
/**
114108
* @brief Override GPIO modes

cpu/sam0_common/include/periph_cpu_common.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ typedef uint32_t gpio_t;
6565
* @{
6666
*/
6767
#define PM_NUM_MODES (3)
68-
/** @todo we block all modes per default, until PM is cleanly implemented */
69-
#define PM_BLOCKER_INITIAL { .val_u32 = 0x01010101 }
7068
/** @} */
7169

7270
#ifndef DOXYGEN

cpu/stm32f1/include/periph_cpu.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,6 @@ extern "C" {
6161
*/
6262
#define PM_NUM_MODES (2U)
6363

64-
/**
65-
* @brief Override the default initial PM blocker
66-
* @todo we block all modes per default, until PM is cleanly implemented
67-
*/
68-
#define PM_BLOCKER_INITIAL { .val_u32 = 0x01010101 }
69-
7064
#ifndef DOXYGEN
7165
/**
7266
* @brief Override GPIO mode options

sys/pm_layered/pm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#endif
3131

3232
#ifndef PM_BLOCKER_INITIAL
33-
#define PM_BLOCKER_INITIAL { .val_u32 = 0 }
33+
#define PM_BLOCKER_INITIAL { .val_u32 = 0x01010101 }
3434
#endif
3535

3636
/**

0 commit comments

Comments
 (0)