Skip to content

Commit

Permalink
cpu/samd*: adjust PM_BLOCKER_INITIAL to the new API
Browse files Browse the repository at this point in the history
For saml1x and samd5x this becomes now obsolete as the default provides
this behavior.
  • Loading branch information
benpicco committed Apr 2, 2022
1 parent 14d17b7 commit 2133b0c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
4 changes: 2 additions & 2 deletions cpu/samd21/include/periph_cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ extern "C" {

/**
* @brief Override the default initial PM blocker
* @todo Idle modes are enabled by default, deep sleep mode blocked
* Idle modes are enabled by default, deep sleep mode blocked
*/
#ifndef PM_BLOCKER_INITIAL
#define PM_BLOCKER_INITIAL 0x00000001
#define PM_BLOCKER_INITIAL { 1, 0, 0, 0 }
#endif

/**
Expand Down
6 changes: 1 addition & 5 deletions cpu/samd5x/include/periph_cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@ extern "C" {
* @name Power mode configuration
* @{
*/
#define PM_NUM_MODES 4 /**< Backup, Hibernate, Standby, Idle */

#ifndef PM_BLOCKER_INITIAL
#define PM_BLOCKER_INITIAL 0x00010101 /**< Block all modes but Idle */
#endif
#define PM_NUM_MODES (4) /**< Backup, Hibernate, Standby, Idle */
/** @} */

/**
Expand Down
8 changes: 0 additions & 8 deletions cpu/saml1x/include/periph_cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,6 @@ extern "C" {
#define PM_NUM_MODES (2)
/** @} */

/**
* @brief Override the default initial PM blocker
* @todo Idle modes are enabled by default, deep sleep mode blocked
*/
#ifndef PM_BLOCKER_INITIAL
#define PM_BLOCKER_INITIAL 0x00000001
#endif

/**
* @name SAML1x GCLK definitions
* @{
Expand Down

0 comments on commit 2133b0c

Please sign in to comment.