157#ifdef HAL_PWR_MODULE_ENABLED
169#if !defined (DUAL_CORE)
170#define PVD_MODE_IT (0x00010000U)
171#define PVD_MODE_EVT (0x00020000U)
174#define PVD_RISING_EDGE (0x00000001U)
175#define PVD_FALLING_EDGE (0x00000002U)
176#define PVD_RISING_FALLING_EDGE (0x00000003U)
418 if (sConfigPVD ==
NULL)
431#if !defined (DUAL_CORE)
439#if !defined (DUAL_CORE)
441 if ((sConfigPVD->
Mode & PVD_MODE_IT) == PVD_MODE_IT)
447 if ((sConfigPVD->
Mode & PVD_MODE_EVT) == PVD_MODE_EVT)
454 if ((sConfigPVD->
Mode & PVD_RISING_EDGE) == PVD_RISING_EDGE)
460 if ((sConfigPVD->
Mode & PVD_FALLING_EDGE) == PVD_FALLING_EDGE)
628#if defined (DUAL_CORE)
644#if defined (PWR_CPUCR_PDDS_D2)
692#if defined (DUAL_CORE)
698 SET_BIT (
PWR->CPU2CR, (PWR_CPU2CR_PDDS_D1 | PWR_CPU2CR_PDDS_D3));
704 SET_BIT (
PWR->CPU2CR, (PWR_CPU2CR_PDDS_D2 | PWR_CPU2CR_PDDS_D3));
710#if defined (PWR_CPUCR_PDDS_D2)
724#if defined (__CC_ARM)
810#if defined (DUAL_CORE)
827 if (__HAL_PWR_PVD_EXTID2_GET_FLAG () != 0U)
830 __HAL_PWR_PVD_EXTID2_CLEAR_FLAG ();
#define SCB_SCR_SLEEPONEXIT_Msk
SCB SCR: SLEEPONEXIT Mask.
#define SCB_SCR_SLEEPDEEP_Msk
SCB SCR: SLEEPDEEP Mask.
#define SCB
SCB configuration struct.
#define SCB_SCR_SEVONPEND_Msk
SCB SCR: SEVONPEND Mask.
#define __DSB()
Data Synchronization Barrier.
#define __WFE
Wait For Event.
#define __ISB()
Instruction Synchronization Barrier.
#define __WFI
Wait For Interrupt.
uint32_t HAL_GetCurrentCPUID(void)
#define CLEAR_BIT(REG, BIT)
#define SET_BIT(REG, BIT)
#define MODIFY_REG(REG, CLEARMASK, SETMASK)
#define IS_PWR_WAKEUP_PIN(PIN)
void HAL_PWR_DisableBkUpAccess(void)
void HAL_PWR_EnableBkUpAccess(void)
void HAL_PWR_DeInit(void)
void HAL_PWR_DisableSleepOnExit(void)
void HAL_PWR_DisablePVD(void)
void HAL_PWR_EnterSTANDBYMode(void)
void HAL_PWR_EnterSLEEPMode(uint32_t Regulator, uint8_t SLEEPEntry)
void HAL_PWR_EnableSEVOnPend(void)
void HAL_PWR_EnablePVD(void)
void HAL_PWR_DisableSEVOnPend(void)
void HAL_PWR_EnableSleepOnExit(void)
void HAL_PWR_PVDCallback(void)
void HAL_PWR_DisableWakeUpPin(uint32_t WakeUpPinx)
void HAL_PWR_EnableWakeUpPin(uint32_t WakeUpPinPolarity)
void HAL_PWR_EnterSTOPMode(uint32_t Regulator, uint8_t STOPEntry)
void HAL_PWR_PVD_IRQHandler(void)
void HAL_PWR_ConfigPVD(const PWR_PVDTypeDef *sConfigPVD)
#define __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE()
Disable the PVD Falling Interrupt Trigger.
#define __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE()
Disable the PVD Rising Interrupt Trigger.
#define __HAL_PWR_PVD_EXTI_ENABLE_IT()
Enable the PVD EXTI Line 16.
#define __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE()
Enable the PVD Falling Interrupt Trigger.
#define __HAL_PWR_PVD_EXTI_GET_FLAG()
Check whether the specified PVD EXTI interrupt flag is set or not.
#define __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE()
Enable the PVD Rising Interrupt Trigger.
#define __HAL_PWR_PVD_EXTI_DISABLE_EVENT()
Disable event on PVD EXTI Line 16.
#define __HAL_PWR_PVD_EXTI_CLEAR_FLAG()
Clear the PVD EXTI flag.
#define __HAL_PWR_PVD_EXTI_DISABLE_IT()
Disable the PVD EXTI Line 16.
#define __HAL_PWR_PVD_EXTI_ENABLE_EVENT()
Enable event on PVD EXTI Line 16.
#define IS_PWR_REGULATOR(REGULATOR)
#define IS_PWR_STOP_ENTRY(ENTRY)
#define IS_PWR_PVD_MODE(MODE)
#define IS_PWR_SLEEP_ENTRY(ENTRY)
#define IS_PWR_PVD_LEVEL(LEVEL)
#define PWR_SLEEPENTRY_WFI
#define PWR_STOPENTRY_WFI
#define PWR_CR1_DBP
Disable Back-up domain Protection.
#define PWR_CPUCR_PDDS_D2
D2 domain Power Down Deepsleep.
#define PWR_CPUCR_PDDS_D1
D1 domain Power Down Deepsleep selection.
#define PWR_WKUPEPR_WKUPEN
Enable all Wakeup Pin.
#define PWR_CPUCR_PDDS_D3
System D3 domain Power Down Deepsleep.
#define PWR_CR1_PVDEN
Programmable Voltage detector enable.
#define PWR_CR1_LPDS
Low Power Deepsleep with SVOS3.
#define PWR_CR1_PLS
Programmable Voltage Detector level selection.
This file contains all the functions prototypes for the HAL module driver.
#define assert_param(expr)
Uncomment the line below to expanse the "assert_param" macro in the HAL drivers code.
PWR PVD configuration structure definition.
uint32_t PVDLevel
PVDLevel: Specifies the PVD detection level.
uint32_t Mode
Mode: Specifies the EXTI operating mode for the PVD event.