RTEMS 6.1-rc5
|
Header file of PWR HAL module. More...
Go to the source code of this file.
Data Structures | |
struct | PWR_PVDTypeDef |
PWR PVD configuration structure definition. More... | |
Macros | |
#define | PWR_PVDLEVEL_0 PWR_CR1_PLS_LEV0 |
#define | PWR_PVDLEVEL_1 PWR_CR1_PLS_LEV1 |
#define | PWR_PVDLEVEL_2 PWR_CR1_PLS_LEV2 |
#define | PWR_PVDLEVEL_3 PWR_CR1_PLS_LEV3 |
#define | PWR_PVDLEVEL_4 PWR_CR1_PLS_LEV4 |
#define | PWR_PVDLEVEL_5 PWR_CR1_PLS_LEV5 |
#define | PWR_PVDLEVEL_6 PWR_CR1_PLS_LEV6 |
#define | PWR_PVDLEVEL_7 PWR_CR1_PLS_LEV7 |
#define | PWR_PVD_MODE_NORMAL (0x00000000U) |
#define | PWR_PVD_MODE_IT_RISING (0x00010001U) |
#define | PWR_PVD_MODE_IT_FALLING (0x00010002U) |
#define | PWR_PVD_MODE_IT_RISING_FALLING (0x00010003U) |
#define | PWR_PVD_MODE_EVENT_RISING (0x00020001U) |
#define | PWR_PVD_MODE_EVENT_FALLING (0x00020002U) |
#define | PWR_PVD_MODE_EVENT_RISING_FALLING (0x00020003U) |
#define | PWR_MAINREGULATOR_ON (0U) |
#define | PWR_LOWPOWERREGULATOR_ON PWR_CR1_LPDS |
#define | PWR_SLEEPENTRY_WFI (0x01U) |
#define | PWR_SLEEPENTRY_WFE (0x02U) |
#define | PWR_STOPENTRY_WFI (0x01U) |
#define | PWR_STOPENTRY_WFE (0x02U) |
#define | PWR_REGULATOR_VOLTAGE_SCALE0 (0U) |
#define | PWR_REGULATOR_VOLTAGE_SCALE1 (PWR_D3CR_VOS_1 | PWR_D3CR_VOS_0) |
#define | PWR_REGULATOR_VOLTAGE_SCALE2 (PWR_D3CR_VOS_1) |
#define | PWR_REGULATOR_VOLTAGE_SCALE3 (PWR_D3CR_VOS_0) |
#define | PWR_FLAG_STOP (0x01U) |
#define | PWR_FLAG_SB (0x04U) |
#define | PWR_FLAG_PVDO (0x0BU) |
#define | PWR_FLAG_AVDO (0x0CU) |
#define | PWR_FLAG_ACTVOSRDY (0x0DU) |
#define | PWR_FLAG_ACTVOS (0x0EU) |
#define | PWR_FLAG_BRR (0x0FU) |
#define | PWR_FLAG_VOSRDY (0x10U) |
#define | PWR_FLAG_SCUEN (0x11U) |
#define | PWR_FLAG_USB33RDY (0x13U) |
#define | PWR_FLAG_TEMPH (0x14U) |
#define | PWR_FLAG_TEMPL (0x15U) |
#define | PWR_FLAG_VBATH (0x16U) |
#define | PWR_FLAG_VBATL (0x17U) |
#define | PWR_FLAG_WKUP1 PWR_WKUPCR_WKUPC1 |
#define | PWR_FLAG_WKUP2 PWR_WKUPCR_WKUPC2 |
#define | PWR_FLAG_WKUP3 PWR_WKUPCR_WKUPC3 |
#define | PWR_FLAG_WKUP4 PWR_WKUPCR_WKUPC4 |
#define | PWR_FLAG_WKUP5 PWR_WKUPCR_WKUPC5 |
#define | PWR_FLAG_WKUP6 PWR_WKUPCR_WKUPC6 |
#define | PWR_EWUP_MASK (0x0FFF3F3FU) |
#define | __HAL_PWR_VOLTAGESCALING_CONFIG(__REGULATOR__) |
Configure the main internal regulator output voltage. | |
#define | __HAL_PWR_GET_FLAG(__FLAG__) |
Check PWR flags are set or not. | |
#define | __HAL_PWR_GET_WAKEUPFLAG(__FLAG__) ((PWR->WKUPFR & (__FLAG__)) ? 0 : 1) |
Check PWR wake up flags are set or not. | |
#define | __HAL_PWR_CLEAR_FLAG(__FLAG__) SET_BIT(PWR->CPUCR, PWR_CPUCR_CSSF) |
Clear CPU PWR flags. | |
#define | __HAL_PWR_CLEAR_WAKEUPFLAG(__FLAG__) SET_BIT(PWR->WKUPCR, (__FLAG__)) |
Clear PWR wake up flags. | |
#define | __HAL_PWR_PVD_EXTI_ENABLE_IT() SET_BIT(EXTI->IMR1, PWR_EXTI_LINE_PVD) |
Enable the PVD EXTI Line 16. | |
#define | __HAL_PWR_PVD_EXTI_DISABLE_IT() CLEAR_BIT(EXTI->IMR1, PWR_EXTI_LINE_PVD) |
Disable the PVD EXTI Line 16. | |
#define | __HAL_PWR_PVD_EXTI_ENABLE_EVENT() SET_BIT(EXTI->EMR1, PWR_EXTI_LINE_PVD) |
Enable event on PVD EXTI Line 16. | |
#define | __HAL_PWR_PVD_EXTI_DISABLE_EVENT() CLEAR_BIT(EXTI->EMR1, PWR_EXTI_LINE_PVD) |
Disable event on PVD EXTI Line 16. | |
#define | __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE() SET_BIT(EXTI->RTSR1, PWR_EXTI_LINE_PVD) |
Enable the PVD Rising Interrupt Trigger. | |
#define | __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE() CLEAR_BIT(EXTI->RTSR1, PWR_EXTI_LINE_PVD) |
Disable the PVD Rising Interrupt Trigger. | |
#define | __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE() SET_BIT(EXTI->FTSR1, PWR_EXTI_LINE_PVD) |
Enable the PVD Falling Interrupt Trigger. | |
#define | __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE() CLEAR_BIT(EXTI->FTSR1, PWR_EXTI_LINE_PVD) |
Disable the PVD Falling Interrupt Trigger. | |
#define | __HAL_PWR_PVD_EXTI_ENABLE_RISING_FALLING_EDGE() |
Enable the PVD Rising & Falling Interrupt Trigger. | |
#define | __HAL_PWR_PVD_EXTI_DISABLE_RISING_FALLING_EDGE() |
Disable the PVD Rising & Falling Interrupt Trigger. | |
#define | __HAL_PWR_PVD_EXTI_GET_FLAG() ((READ_BIT(EXTI->PR1, PWR_EXTI_LINE_PVD) == PWR_EXTI_LINE_PVD) ? 1UL : 0UL) |
Check whether the specified PVD EXTI interrupt flag is set or not. | |
#define | __HAL_PWR_PVD_EXTI_CLEAR_FLAG() SET_BIT(EXTI->PR1, PWR_EXTI_LINE_PVD) |
Clear the PVD EXTI flag. | |
#define | __HAL_PWR_PVD_EXTI_GENERATE_SWIT() SET_BIT(EXTI->SWIER1, PWR_EXTI_LINE_PVD) |
Generates a Software interrupt on PVD EXTI line. | |
#define | PWR_EXTI_LINE_PVD EXTI_IMR1_IM16 |
#define | IS_PWR_PVD_LEVEL(LEVEL) |
#define | IS_PWR_PVD_MODE(MODE) |
#define | IS_PWR_REGULATOR(REGULATOR) |
#define | IS_PWR_SLEEP_ENTRY(ENTRY) |
#define | IS_PWR_STOP_ENTRY(ENTRY) |
#define | IS_PWR_REGULATOR_VOLTAGE(VOLTAGE) |
Functions | |
void | HAL_PWR_DeInit (void) |
void | HAL_PWR_EnableBkUpAccess (void) |
void | HAL_PWR_DisableBkUpAccess (void) |
void | HAL_PWR_ConfigPVD (PWR_PVDTypeDef *sConfigPVD) |
void | HAL_PWR_EnablePVD (void) |
void | HAL_PWR_DisablePVD (void) |
void | HAL_PWR_EnableWakeUpPin (uint32_t WakeUpPinPolarity) |
void | HAL_PWR_DisableWakeUpPin (uint32_t WakeUpPinx) |
void | HAL_PWR_EnterSTOPMode (uint32_t Regulator, uint8_t STOPEntry) |
void | HAL_PWR_EnterSLEEPMode (uint32_t Regulator, uint8_t SLEEPEntry) |
void | HAL_PWR_EnterSTANDBYMode (void) |
void | HAL_PWR_PVD_IRQHandler (void) |
void | HAL_PWR_PVDCallback (void) |
void | HAL_PWR_EnableSleepOnExit (void) |
void | HAL_PWR_DisableSleepOnExit (void) |
void | HAL_PWR_EnableSEVOnPend (void) |
void | HAL_PWR_DisableSEVOnPend (void) |
Header file of PWR HAL module.
Copyright (c) 2017 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.