1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:32:45 +01:00

pm_layerd: fix initial value for PM_BLOCKER_INITIAL

the current value was a debugging left-over and should
actually be 0.
This commit is contained in:
Hauke Petersen 2017-03-28 19:32:32 +02:00
parent c11a196720
commit 5c7ed2228d
6 changed files with 27 additions and 10 deletions

View File

@ -88,6 +88,17 @@ typedef uint16_t gpio_t;
#define PERIPH_SPI_NEEDS_TRANSFER_REGS
/** @} */
/**
* @brief define number of usable power modes
*/
#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
@ -291,11 +302,6 @@ enum {
*/
void gpio_init_port(gpio_t pin, uint32_t pcr);
/**
* @brief define number of usable power modes
*/
#define PM_NUM_MODES (1U)
#ifdef __cplusplus
}
#endif

View File

@ -59,6 +59,15 @@ typedef uint32_t gpio_t;
*/
#define GPIO_PIN(x, y) (((gpio_t)(&PORT->Group[x])) | y)
/**
* @name Power mode configuration
* @{
*/
#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
/**
* @brief Override active flank configuration values

View File

@ -111,8 +111,6 @@ static inline int _sercom_id(SercomUsart *sercom)
return ((((uint32_t)sercom) >> 10) & 0x7) - 2;
}
#define PM_NUM_MODES (3)
#ifdef __cplusplus
}
#endif

View File

@ -60,8 +60,6 @@ typedef enum {
/** @} */
#endif /* ndef DOXYGEN */
#define PM_NUM_MODES (3)
#ifdef __cplusplus
}
#endif

View File

@ -56,6 +56,12 @@ extern "C" {
*/
#define PM_NUM_MODES (2U)
/**
* @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 mode options

View File

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