STM32H735xx HAL User Manual
|
Defines | |
#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 __HAL_PWR_CLEAR_FLAG | ( | __FLAG__ | ) | SET_BIT(PWR->CPUCR, PWR_CPUCR_CSSF) |
Clear CPU PWR flags.
__FLAG__ | : Specifies the flag to clear. |
None. |
Definition at line 516 of file stm32h7xx_hal_pwr.h.
#define __HAL_PWR_CLEAR_WAKEUPFLAG | ( | __FLAG__ | ) | SET_BIT(PWR->WKUPCR, (__FLAG__)) |
Clear PWR wake up flags.
__FLAG__ | : Specifies the wake up flag to be cleared. This parameter can be one of the following values :
|
None. |
Definition at line 532 of file stm32h7xx_hal_pwr.h.
Referenced by HAL_PWREx_WAKEUP_PIN_IRQHandler().
#define __HAL_PWR_GET_FLAG | ( | __FLAG__ | ) |
(((__FLAG__) == PWR_FLAG_PVDO) ? ((PWR->CSR1 & PWR_CSR1_PVDO) == PWR_CSR1_PVDO) :\ ((__FLAG__) == PWR_FLAG_AVDO) ? ((PWR->CSR1 & PWR_CSR1_AVDO) == PWR_CSR1_AVDO) :\ ((__FLAG__) == PWR_FLAG_ACTVOSRDY) ? ((PWR->CSR1 & PWR_CSR1_ACTVOSRDY) == PWR_CSR1_ACTVOSRDY) :\ ((__FLAG__) == PWR_FLAG_VOSRDY) ? ((PWR->D3CR & PWR_D3CR_VOSRDY) == PWR_D3CR_VOSRDY) :\ ((__FLAG__) == PWR_FLAG_SMPSEXTRDY) ? ((PWR->CR3 & PWR_FLAG_SMPSEXTRDY) == PWR_FLAG_SMPSEXTRDY) :\ ((__FLAG__) == PWR_FLAG_BRR) ? ((PWR->CR2 & PWR_CR2_BRRDY) == PWR_CR2_BRRDY) :\ ((__FLAG__) == PWR_FLAG_SB) ? ((PWR->CPUCR & PWR_CPUCR_SBF) == PWR_CPUCR_SBF) :\ ((__FLAG__) == PWR_FLAG_STOP) ? ((PWR->CPUCR & PWR_CPUCR_STOPF) == PWR_CPUCR_STOPF) :\ ((__FLAG__) == PWR_FLAG_SB_D1) ? ((PWR->CPUCR & PWR_CPUCR_SBF_D1) == PWR_CPUCR_SBF_D1) :\ ((__FLAG__) == PWR_FLAG_SB_D2) ? ((PWR->CPUCR & PWR_CPUCR_SBF_D2) == PWR_CPUCR_SBF_D2) :\ ((__FLAG__) == PWR_FLAG_USB33RDY) ? ((PWR->CR3 & PWR_CR3_USB33RDY) == PWR_CR3_USB33RDY) :\ ((__FLAG__) == PWR_FLAG_TEMPH) ? ((PWR->CR2 & PWR_CR2_TEMPH) == PWR_CR2_TEMPH) :\ ((__FLAG__) == PWR_FLAG_TEMPL) ? ((PWR->CR2 & PWR_CR2_TEMPL) == PWR_CR2_TEMPL) :\ ((__FLAG__) == PWR_FLAG_VBATH) ? ((PWR->CR2 & PWR_CR2_VBATH) == PWR_CR2_VBATH) :\ ((PWR->CR2 & PWR_CR2_VBATL) == PWR_CR2_VBATL))
Check PWR flags are set or not.
__FLAG__ | : Specifies the flag to check. This parameter can be one of the following values:
|
The | (__FLAG__) state (TRUE or FALSE). |
Definition at line 403 of file stm32h7xx_hal_pwr.h.
Referenced by HAL_PWREx_ConfigSupply(), HAL_PWREx_ControlVoltageScaling(), HAL_PWREx_DisableBkUpReg(), HAL_PWREx_DisableUSBReg(), HAL_PWREx_EnableBkUpReg(), and HAL_PWREx_EnableUSBReg().
#define __HAL_PWR_GET_WAKEUPFLAG | ( | __FLAG__ | ) | ((PWR->WKUPFR & (__FLAG__)) ? 0 : 1) |
Check PWR wake up flags are set or not.
__FLAG__,: | specifies the wake up flag to check. This parameter can be one of the following values:
|
The | (__FLAG__) state (TRUE or FALSE). |
Definition at line 487 of file stm32h7xx_hal_pwr.h.
#define __HAL_PWR_PVD_EXTI_CLEAR_FLAG | ( | ) | SET_BIT(EXTI->PR1, PWR_EXTI_LINE_PVD) |
Clear the PVD EXTI flag.
None. |
Definition at line 652 of file stm32h7xx_hal_pwr.h.
Referenced by HAL_PWR_PVD_IRQHandler(), and HAL_PWREx_PVD_AVD_IRQHandler().
#define __HAL_PWR_PVD_EXTI_DISABLE_EVENT | ( | ) | CLEAR_BIT(EXTI->EMR1, PWR_EXTI_LINE_PVD) |
Disable event on PVD EXTI Line 16.
None. |
Definition at line 580 of file stm32h7xx_hal_pwr.h.
Referenced by HAL_PWR_ConfigPVD().
#define __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE | ( | ) | CLEAR_BIT(EXTI->FTSR1, PWR_EXTI_LINE_PVD) |
Disable the PVD Falling Interrupt Trigger.
None. |
Definition at line 612 of file stm32h7xx_hal_pwr.h.
Referenced by HAL_PWR_ConfigPVD().
#define __HAL_PWR_PVD_EXTI_DISABLE_IT | ( | ) | CLEAR_BIT(EXTI->IMR1, PWR_EXTI_LINE_PVD) |
Disable the PVD EXTI Line 16.
None. |
Definition at line 552 of file stm32h7xx_hal_pwr.h.
Referenced by HAL_PWR_ConfigPVD().
#define __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE | ( | ) | CLEAR_BIT(EXTI->RTSR1, PWR_EXTI_LINE_PVD) |
Disable the PVD Rising Interrupt Trigger.
None. |
Definition at line 600 of file stm32h7xx_hal_pwr.h.
Referenced by HAL_PWR_ConfigPVD().
#define __HAL_PWR_PVD_EXTI_DISABLE_RISING_FALLING_EDGE | ( | ) |
do { \ __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE(); \ __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE(); \ } while(0);
Disable the PVD Rising & Falling Interrupt Trigger.
None. |
Definition at line 628 of file stm32h7xx_hal_pwr.h.
#define __HAL_PWR_PVD_EXTI_ENABLE_EVENT | ( | ) | SET_BIT(EXTI->EMR1, PWR_EXTI_LINE_PVD) |
Enable event on PVD EXTI Line 16.
None. |
Definition at line 566 of file stm32h7xx_hal_pwr.h.
Referenced by HAL_PWR_ConfigPVD().
#define __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE | ( | ) | SET_BIT(EXTI->FTSR1, PWR_EXTI_LINE_PVD) |
Enable the PVD Falling Interrupt Trigger.
None. |
Definition at line 606 of file stm32h7xx_hal_pwr.h.
Referenced by HAL_PWR_ConfigPVD().
#define __HAL_PWR_PVD_EXTI_ENABLE_IT | ( | ) | SET_BIT(EXTI->IMR1, PWR_EXTI_LINE_PVD) |
Enable the PVD EXTI Line 16.
None. |
Definition at line 538 of file stm32h7xx_hal_pwr.h.
Referenced by HAL_PWR_ConfigPVD().
#define __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE | ( | ) | SET_BIT(EXTI->RTSR1, PWR_EXTI_LINE_PVD) |
Enable the PVD Rising Interrupt Trigger.
None. |
Definition at line 594 of file stm32h7xx_hal_pwr.h.
Referenced by HAL_PWR_ConfigPVD().
#define __HAL_PWR_PVD_EXTI_ENABLE_RISING_FALLING_EDGE | ( | ) |
do { \ __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE(); \ __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE(); \ } while(0);
Enable the PVD Rising & Falling Interrupt Trigger.
None. |
Definition at line 618 of file stm32h7xx_hal_pwr.h.
#define __HAL_PWR_PVD_EXTI_GENERATE_SWIT | ( | ) | SET_BIT(EXTI->SWIER1, PWR_EXTI_LINE_PVD) |
Generates a Software interrupt on PVD EXTI line.
None. |
Definition at line 666 of file stm32h7xx_hal_pwr.h.
#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.
EXTI | PVD Line Status. |
Definition at line 638 of file stm32h7xx_hal_pwr.h.
Referenced by HAL_PWR_PVD_IRQHandler(), and HAL_PWREx_PVD_AVD_IRQHandler().
#define __HAL_PWR_VOLTAGESCALING_CONFIG | ( | __REGULATOR__ | ) |
do { \ __IO uint32_t tmpreg = 0x00; \ /* Configure the Voltage Scaling */ \ MODIFY_REG (PWR->D3CR, PWR_D3CR_VOS, (__REGULATOR__)); \ /* Delay after setting the voltage scaling */ \ tmpreg = READ_BIT(PWR->D3CR, PWR_D3CR_VOS); \ UNUSED(tmpreg); \ } while(0)
Configure the main internal regulator output voltage.
__REGULATOR__ | : Specifies the regulator output voltage to achieve a trade-off between performance and power consumption when the device does not operate at the maximum frequency (refer to the datasheet for more details). This parameter can be one of the following values:
|
None. |
Definition at line 288 of file stm32h7xx_hal_pwr.h.