PWR driver modules.
More...
PWR driver modules.
◆ PWR_DisableSEVOnPend()
void PWR_DisableSEVOnPend |
( |
void |
| ) |
|
Disables CORTEX M0+ SEVONPEND bit.
- Note
- Clears SEVONPEND bit of SCR register. When this bit is set, this causes WFE to wake up when an interrupt moves from inactive to pended.
- Return values
-
◆ PWR_DisableSleepOnExit()
void PWR_DisableSleepOnExit |
( |
void |
| ) |
|
Disables Sleep-On-Exit feature when returning from Handler mode to Thread mode.
- Note
- Clears SLEEPONEXIT bit of SCR register. When this bit is set, the processor re-enters SLEEP mode when an interruption handling is over.
- Return values
-
◆ PWR_EnableSEVOnPend()
void PWR_EnableSEVOnPend |
( |
void |
| ) |
|
Enables CORTEX M0+ SEVONPEND bit.
- Note
- Sets SEVONPEND bit of SCR register. When this bit is set, this causes WFE to wake up when an interrupt moves from inactive to pended.
- Return values
-
◆ PWR_EnableSleepOnExit()
void PWR_EnableSleepOnExit |
( |
void |
| ) |
|
Indicates Sleep-On-Exit when returning from Handler mode to Thread mode.
- Note
- Set SLEEPONEXIT bit of SCR register. When this bit is set, the processor re-enters SLEEP mode when an interruption handling is over. Setting this bit is useful when the processor is expected to run only on interruptions handling.
- Return values
-
◆ PWR_EnterDEEPSLEEPMode()
void PWR_EnterDEEPSLEEPMode |
( |
void |
| ) |
|
Enters Deep Sleep mode.
- Note
- In Deep Sleep mode, all I/O pins keep the same state as in Run mode.
- Return values
-
◆ PWR_EnterSLEEPMode()
void PWR_EnterSLEEPMode |
( |
uint8_t |
SLEEPEntry | ) |
|
Enters Sleep mode.
- Note
- In Sleep mode, all I/O pins keep the same state as in Run mode.
- Parameters
-
SLEEPEntry | Specifies if SLEEP mode is entered with WFI or WFE instruction. When WFI entry is used, tick interrupt have to be disabled if not desired as the interrupt wake up source. This parameter can be one of the following values:
- PWR_SLEEPENTRY_WFI: enter SLEEP mode with WFI instruction
- PWR_SLEEPENTRY_WFE: enter SLEEP mode with WFE instruction
|
- Return values
-