35#ifdef HAL_PWR_MODULE_ENABLED
46#define PVD_MODE_IT 0x00010000U
47#define PVD_MODE_EVT 0x00020000U
48#define PVD_RISING_EDGE 0x00000001U
49#define PVD_FALLING_EDGE 0x00000002U
110 __IO uint32_t dummyread;
111 *(__IO uint32_t *)
CR_DBP_BB = (uint32_t)ENABLE;
130 __IO uint32_t dummyread;
131 *(__IO uint32_t *)
CR_DBP_BB = (uint32_t)DISABLE;
282 MODIFY_REG(PWR->CR, PWR_CR_PLS, sConfigPVD->
PVDLevel);
320 *(__IO uint32_t *)
CR_PVDE_BB = (uint32_t)ENABLE;
329 *(__IO uint32_t *)
CR_PVDE_BB = (uint32_t)DISABLE;
347 SET_BIT(PWR->CSR, WakeUpPinx);
365 CLEAR_BIT(PWR->CSR, WakeUpPinx);
401 CLEAR_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SLEEPDEEP_Msk));
452 MODIFY_REG(PWR->CR, (PWR_CR_PDDS | PWR_CR_LPDS), Regulator);
455 SET_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SLEEPDEEP_Msk));
475 CLEAR_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SLEEPDEEP_Msk));
491 SET_BIT(PWR->CR, PWR_CR_PDDS);
494 SET_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SLEEPDEEP_Msk));
497#if defined ( __CC_ARM)
544 SET_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SLEEPONEXIT_Msk));
556 CLEAR_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SLEEPONEXIT_Msk));
568 SET_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SEVONPEND_Msk));
580 CLEAR_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SEVONPEND_Msk));
#define IS_PWR_WAKEUP_PIN(PIN)
void HAL_PWR_DisableBkUpAccess(void)
Disables access to the backup domain (RTC registers, RTC backup data registers and backup SRAM).
void HAL_PWR_EnableBkUpAccess(void)
Enables access to the backup domain (RTC registers, RTC backup data registers and backup SRAM).
void HAL_PWR_DeInit(void)
Deinitializes the HAL PWR peripheral registers to their default reset values.
void HAL_PWR_DisableSleepOnExit(void)
Disables Sleep-On-Exit feature when returning from Handler mode to Thread mode.
void HAL_PWR_DisablePVD(void)
Disables the Power Voltage Detector(PVD).
void HAL_PWR_EnterSTANDBYMode(void)
Enters Standby mode.
void HAL_PWR_EnterSLEEPMode(uint32_t Regulator, uint8_t SLEEPEntry)
Enters Sleep mode.
void HAL_PWR_EnableSEVOnPend(void)
Enables CORTEX M4 SEVONPEND bit.
void HAL_PWR_EnablePVD(void)
Enables the Power Voltage Detector(PVD).
void HAL_PWR_PVDCallback(void)
PWR PVD interrupt callback.
void HAL_PWR_DisableSEVOnPend(void)
Disables CORTEX M4 SEVONPEND bit.
void HAL_PWR_EnableSleepOnExit(void)
Indicates Sleep-On-Exit when returning from Handler mode to Thread mode.
void HAL_PWR_ConfigPVD(PWR_PVDTypeDef *sConfigPVD)
Configures the voltage threshold detected by the Power Voltage Detector(PVD).
void HAL_PWR_EnableWakeUpPin(uint32_t WakeUpPinx)
Enables the Wake-up PINx functionality.
void HAL_PWR_DisableWakeUpPin(uint32_t WakeUpPinx)
Disables the Wake-up PINx functionality.
void HAL_PWR_EnterSTOPMode(uint32_t Regulator, uint8_t STOPEntry)
Enters Stop mode.
void HAL_PWR_PVD_IRQHandler(void)
This function handles the PWR PVD interrupt request.
#define __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE()
Disable the PVD Extended Interrupt Falling Trigger.
#define __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE()
Disable the PVD Extended Interrupt Rising 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 Extended Interrupt Falling Trigger.
#define __HAL_PWR_PVD_EXTI_GET_FLAG()
checks whether the specified PVD Exti interrupt flag is set or not.
#define __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE()
Enable the PVD Extended Interrupt Rising 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_SLEEPENTRY_WFE_NO_EVT_CLEAR
#define PWR_STOPENTRY_WFI
#define PWR_STOPENTRY_WFE_NO_EVT_CLEAR
#define __HAL_RCC_PWR_RELEASE_RESET()
#define __HAL_RCC_PWR_FORCE_RESET()
#define assert_param(expr)
This file contains all the functions prototypes for the HAL module driver.
PWR PVD configuration structure definition.