1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/samd*: adjust PM_BLOCKER_INITIAL to the new API

For saml1x and samd5x this becomes now obsolete as the default provides
this behavior.
This commit is contained in:
Benjamin Valentin 2022-04-02 20:26:06 +02:00
parent 0340ac6129
commit 11acdd0526
3 changed files with 3 additions and 15 deletions

View File

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

View File

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

View File

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