STM32L443xx HAL User Manual
|
macros to manage the specified RCC Flags and interrupts. More...
Defines | |
#define | __HAL_RCC_PLLSAI1_ENABLE_IT() SET_BIT(RCC->CIER, RCC_CIER_PLLSAI1RDYIE) |
Enable PLLSAI1RDY interrupt. | |
#define | __HAL_RCC_PLLSAI1_DISABLE_IT() CLEAR_BIT(RCC->CIER, RCC_CIER_PLLSAI1RDYIE) |
Disable PLLSAI1RDY interrupt. | |
#define | __HAL_RCC_PLLSAI1_CLEAR_IT() WRITE_REG(RCC->CICR, RCC_CICR_PLLSAI1RDYC) |
Clear the PLLSAI1RDY interrupt pending bit. | |
#define | __HAL_RCC_PLLSAI1_GET_IT_SOURCE() (READ_BIT(RCC->CIFR, RCC_CIFR_PLLSAI1RDYF) == RCC_CIFR_PLLSAI1RDYF) |
Check whether PLLSAI1RDY interrupt has occurred or not. | |
#define | __HAL_RCC_PLLSAI1_GET_FLAG() (READ_BIT(RCC->CR, RCC_CR_PLLSAI1RDY) == (RCC_CR_PLLSAI1RDY)) |
Check whether the PLLSAI1RDY flag is set or not. | |
#define | __HAL_RCC_LSECSS_EXTI_ENABLE_IT() SET_BIT(EXTI->IMR1, RCC_EXTI_LINE_LSECSS) |
Enable the RCC LSE CSS Extended Interrupt Line. | |
#define | __HAL_RCC_LSECSS_EXTI_DISABLE_IT() CLEAR_BIT(EXTI->IMR1, RCC_EXTI_LINE_LSECSS) |
Disable the RCC LSE CSS Extended Interrupt Line. | |
#define | __HAL_RCC_LSECSS_EXTI_ENABLE_EVENT() SET_BIT(EXTI->EMR1, RCC_EXTI_LINE_LSECSS) |
Enable the RCC LSE CSS Event Line. | |
#define | __HAL_RCC_LSECSS_EXTI_DISABLE_EVENT() CLEAR_BIT(EXTI->EMR1, RCC_EXTI_LINE_LSECSS) |
Disable the RCC LSE CSS Event Line. | |
#define | __HAL_RCC_LSECSS_EXTI_ENABLE_FALLING_EDGE() SET_BIT(EXTI->FTSR1, RCC_EXTI_LINE_LSECSS) |
Enable the RCC LSE CSS Extended Interrupt Falling Trigger. | |
#define | __HAL_RCC_LSECSS_EXTI_DISABLE_FALLING_EDGE() CLEAR_BIT(EXTI->FTSR1, RCC_EXTI_LINE_LSECSS) |
Disable the RCC LSE CSS Extended Interrupt Falling Trigger. | |
#define | __HAL_RCC_LSECSS_EXTI_ENABLE_RISING_EDGE() SET_BIT(EXTI->RTSR1, RCC_EXTI_LINE_LSECSS) |
Enable the RCC LSE CSS Extended Interrupt Rising Trigger. | |
#define | __HAL_RCC_LSECSS_EXTI_DISABLE_RISING_EDGE() CLEAR_BIT(EXTI->RTSR1, RCC_EXTI_LINE_LSECSS) |
Disable the RCC LSE CSS Extended Interrupt Rising Trigger. | |
#define | __HAL_RCC_LSECSS_EXTI_ENABLE_RISING_FALLING_EDGE() |
Enable the RCC LSE CSS Extended Interrupt Rising & Falling Trigger. | |
#define | __HAL_RCC_LSECSS_EXTI_DISABLE_RISING_FALLING_EDGE() |
Disable the RCC LSE CSS Extended Interrupt Rising & Falling Trigger. | |
#define | __HAL_RCC_LSECSS_EXTI_GET_FLAG() (READ_BIT(EXTI->PR1, RCC_EXTI_LINE_LSECSS) == RCC_EXTI_LINE_LSECSS) |
Check whether the specified RCC LSE CSS EXTI interrupt flag is set or not. | |
#define | __HAL_RCC_LSECSS_EXTI_CLEAR_FLAG() WRITE_REG(EXTI->PR1, RCC_EXTI_LINE_LSECSS) |
Clear the RCC LSE CSS EXTI flag. | |
#define | __HAL_RCC_LSECSS_EXTI_GENERATE_SWIT() SET_BIT(EXTI->SWIER1, RCC_EXTI_LINE_LSECSS) |
Generate a Software interrupt on the RCC LSE CSS EXTI line. | |
#define | __HAL_RCC_CRS_ENABLE_IT(__INTERRUPT__) SET_BIT(CRS->CR, (__INTERRUPT__)) |
Enable the specified CRS interrupts. | |
#define | __HAL_RCC_CRS_DISABLE_IT(__INTERRUPT__) CLEAR_BIT(CRS->CR, (__INTERRUPT__)) |
Disable the specified CRS interrupts. | |
#define | __HAL_RCC_CRS_GET_IT_SOURCE(__INTERRUPT__) ((READ_BIT(CRS->CR, (__INTERRUPT__)) != 0U) ? SET : RESET) |
Check whether the CRS interrupt has occurred or not. | |
#define | RCC_CRS_IT_ERROR_MASK (RCC_CRS_IT_TRIMOVF | RCC_CRS_IT_SYNCERR | RCC_CRS_IT_SYNCMISS) |
Clear the CRS interrupt pending bits. | |
#define | __HAL_RCC_CRS_CLEAR_IT(__INTERRUPT__) |
#define | __HAL_RCC_CRS_GET_FLAG(__FLAG__) (READ_BIT(CRS->ISR, (__FLAG__)) == (__FLAG__)) |
Check whether the specified CRS flag is set or not. | |
#define | RCC_CRS_FLAG_ERROR_MASK (RCC_CRS_FLAG_TRIMOVF | RCC_CRS_FLAG_SYNCERR | RCC_CRS_FLAG_SYNCMISS) |
Clear the CRS specified FLAG. | |
#define | __HAL_RCC_CRS_CLEAR_FLAG(__FLAG__) |
macros to manage the specified RCC Flags and interrupts.
#define __HAL_RCC_CRS_CLEAR_FLAG | ( | __FLAG__ | ) |
do { \ if(((__FLAG__) & RCC_CRS_FLAG_ERROR_MASK) != 0U) \ { \ WRITE_REG(CRS->ICR, CRS_ICR_ERRC | ((__FLAG__) & ~RCC_CRS_FLAG_ERROR_MASK)); \ } \ else \ { \ WRITE_REG(CRS->ICR, (__FLAG__)); \ } \ } while(0)
Definition at line 2313 of file stm32l4xx_hal_rcc_ex.h.
Referenced by HAL_RCCEx_CRSWaitSynchronization().
#define __HAL_RCC_CRS_CLEAR_IT | ( | __INTERRUPT__ | ) |
do { \ if(((__INTERRUPT__) & RCC_CRS_IT_ERROR_MASK) != 0U) \ { \ WRITE_REG(CRS->ICR, CRS_ICR_ERRC | ((__INTERRUPT__) & ~RCC_CRS_IT_ERROR_MASK)); \ } \ else \ { \ WRITE_REG(CRS->ICR, (__INTERRUPT__)); \ } \ } while(0)
Definition at line 2269 of file stm32l4xx_hal_rcc_ex.h.
#define __HAL_RCC_CRS_DISABLE_IT | ( | __INTERRUPT__ | ) | CLEAR_BIT(CRS->CR, (__INTERRUPT__)) |
Disable the specified CRS interrupts.
__INTERRUPT__ | specifies the CRS interrupt sources to be disabled. This parameter can be any combination of the following values:
|
None |
Definition at line 2242 of file stm32l4xx_hal_rcc_ex.h.
#define __HAL_RCC_CRS_ENABLE_IT | ( | __INTERRUPT__ | ) | SET_BIT(CRS->CR, (__INTERRUPT__)) |
Enable the specified CRS interrupts.
__INTERRUPT__ | specifies the CRS interrupt sources to be enabled. This parameter can be any combination of the following values:
|
None |
Definition at line 2230 of file stm32l4xx_hal_rcc_ex.h.
#define __HAL_RCC_CRS_GET_FLAG | ( | __FLAG__ | ) | (READ_BIT(CRS->ISR, (__FLAG__)) == (__FLAG__)) |
Check whether the specified CRS flag is set or not.
__FLAG__ | specifies the flag to check. This parameter can be one of the following values:
|
The | new state of _FLAG_ (TRUE or FALSE). |
Definition at line 2293 of file stm32l4xx_hal_rcc_ex.h.
Referenced by HAL_RCCEx_CRSWaitSynchronization().
#define __HAL_RCC_CRS_GET_IT_SOURCE | ( | __INTERRUPT__ | ) | ((READ_BIT(CRS->CR, (__INTERRUPT__)) != 0U) ? SET : RESET) |
Check whether the CRS interrupt has occurred or not.
__INTERRUPT__ | specifies the CRS interrupt source to check. This parameter can be one of the following values:
|
The | new state of __INTERRUPT__ (SET or RESET). |
Definition at line 2253 of file stm32l4xx_hal_rcc_ex.h.
#define __HAL_RCC_LSECSS_EXTI_CLEAR_FLAG | ( | ) | WRITE_REG(EXTI->PR1, RCC_EXTI_LINE_LSECSS) |
Clear the RCC LSE CSS EXTI flag.
None. |
Definition at line 2209 of file stm32l4xx_hal_rcc_ex.h.
#define __HAL_RCC_LSECSS_EXTI_DISABLE_EVENT | ( | ) | CLEAR_BIT(EXTI->EMR1, RCC_EXTI_LINE_LSECSS) |
Disable the RCC LSE CSS Event Line.
None. |
Definition at line 2150 of file stm32l4xx_hal_rcc_ex.h.
#define __HAL_RCC_LSECSS_EXTI_DISABLE_FALLING_EDGE | ( | ) | CLEAR_BIT(EXTI->FTSR1, RCC_EXTI_LINE_LSECSS) |
Disable the RCC LSE CSS Extended Interrupt Falling Trigger.
None. |
Definition at line 2164 of file stm32l4xx_hal_rcc_ex.h.
#define __HAL_RCC_LSECSS_EXTI_DISABLE_IT | ( | ) | CLEAR_BIT(EXTI->IMR1, RCC_EXTI_LINE_LSECSS) |
Disable the RCC LSE CSS Extended Interrupt Line.
None |
Definition at line 2138 of file stm32l4xx_hal_rcc_ex.h.
#define __HAL_RCC_LSECSS_EXTI_DISABLE_RISING_EDGE | ( | ) | CLEAR_BIT(EXTI->RTSR1, RCC_EXTI_LINE_LSECSS) |
Disable the RCC LSE CSS Extended Interrupt Rising Trigger.
None. |
Definition at line 2177 of file stm32l4xx_hal_rcc_ex.h.
do { \ __HAL_RCC_LSECSS_EXTI_DISABLE_RISING_EDGE(); \ __HAL_RCC_LSECSS_EXTI_DISABLE_FALLING_EDGE(); \ } while(0)
Disable the RCC LSE CSS Extended Interrupt Rising & Falling Trigger.
None. |
Definition at line 2193 of file stm32l4xx_hal_rcc_ex.h.
#define __HAL_RCC_LSECSS_EXTI_ENABLE_EVENT | ( | ) | SET_BIT(EXTI->EMR1, RCC_EXTI_LINE_LSECSS) |
Enable the RCC LSE CSS Event Line.
None. |
Definition at line 2144 of file stm32l4xx_hal_rcc_ex.h.
#define __HAL_RCC_LSECSS_EXTI_ENABLE_FALLING_EDGE | ( | ) | SET_BIT(EXTI->FTSR1, RCC_EXTI_LINE_LSECSS) |
Enable the RCC LSE CSS Extended Interrupt Falling Trigger.
None. |
Definition at line 2157 of file stm32l4xx_hal_rcc_ex.h.
#define __HAL_RCC_LSECSS_EXTI_ENABLE_IT | ( | ) | SET_BIT(EXTI->IMR1, RCC_EXTI_LINE_LSECSS) |
Enable the RCC LSE CSS Extended Interrupt Line.
None |
Definition at line 2132 of file stm32l4xx_hal_rcc_ex.h.
Referenced by HAL_RCCEx_EnableLSECSS_IT().
#define __HAL_RCC_LSECSS_EXTI_ENABLE_RISING_EDGE | ( | ) | SET_BIT(EXTI->RTSR1, RCC_EXTI_LINE_LSECSS) |
Enable the RCC LSE CSS Extended Interrupt Rising Trigger.
None. |
Definition at line 2171 of file stm32l4xx_hal_rcc_ex.h.
Referenced by HAL_RCCEx_EnableLSECSS_IT().
#define __HAL_RCC_LSECSS_EXTI_ENABLE_RISING_FALLING_EDGE | ( | ) |
do { \ __HAL_RCC_LSECSS_EXTI_ENABLE_RISING_EDGE(); \ __HAL_RCC_LSECSS_EXTI_ENABLE_FALLING_EDGE(); \ } while(0)
Enable the RCC LSE CSS Extended Interrupt Rising & Falling Trigger.
None. |
Definition at line 2183 of file stm32l4xx_hal_rcc_ex.h.
#define __HAL_RCC_LSECSS_EXTI_GENERATE_SWIT | ( | ) | SET_BIT(EXTI->SWIER1, RCC_EXTI_LINE_LSECSS) |
Generate a Software interrupt on the RCC LSE CSS EXTI line.
None. |
Definition at line 2215 of file stm32l4xx_hal_rcc_ex.h.
#define __HAL_RCC_LSECSS_EXTI_GET_FLAG | ( | ) | (READ_BIT(EXTI->PR1, RCC_EXTI_LINE_LSECSS) == RCC_EXTI_LINE_LSECSS) |
Check whether the specified RCC LSE CSS EXTI interrupt flag is set or not.
EXTI | RCC LSE CSS Line Status. |
Definition at line 2203 of file stm32l4xx_hal_rcc_ex.h.
#define __HAL_RCC_PLLSAI1_CLEAR_IT | ( | ) | WRITE_REG(RCC->CICR, RCC_CICR_PLLSAI1RDYC) |
Clear the PLLSAI1RDY interrupt pending bit.
None |
Definition at line 2084 of file stm32l4xx_hal_rcc_ex.h.
#define __HAL_RCC_PLLSAI1_DISABLE_IT | ( | ) | CLEAR_BIT(RCC->CIER, RCC_CIER_PLLSAI1RDYIE) |
Disable PLLSAI1RDY interrupt.
None |
Definition at line 2079 of file stm32l4xx_hal_rcc_ex.h.
#define __HAL_RCC_PLLSAI1_ENABLE_IT | ( | ) | SET_BIT(RCC->CIER, RCC_CIER_PLLSAI1RDYIE) |
Enable PLLSAI1RDY interrupt.
None |
Definition at line 2074 of file stm32l4xx_hal_rcc_ex.h.
#define __HAL_RCC_PLLSAI1_GET_FLAG | ( | ) | (READ_BIT(RCC->CR, RCC_CR_PLLSAI1RDY) == (RCC_CR_PLLSAI1RDY)) |
Check whether the PLLSAI1RDY flag is set or not.
TRUE | or FALSE. |
Definition at line 2094 of file stm32l4xx_hal_rcc_ex.h.
#define __HAL_RCC_PLLSAI1_GET_IT_SOURCE | ( | ) | (READ_BIT(RCC->CIFR, RCC_CIFR_PLLSAI1RDYF) == RCC_CIFR_PLLSAI1RDYF) |
Check whether PLLSAI1RDY interrupt has occurred or not.
TRUE | or FALSE. |
Definition at line 2089 of file stm32l4xx_hal_rcc_ex.h.
#define RCC_CRS_FLAG_ERROR_MASK (RCC_CRS_FLAG_TRIMOVF | RCC_CRS_FLAG_SYNCERR | RCC_CRS_FLAG_SYNCMISS) |
Clear the CRS specified FLAG.
__FLAG__ | specifies the flag to clear. This parameter can be one of the following values:
|
None |
Definition at line 2311 of file stm32l4xx_hal_rcc_ex.h.
Clear the CRS interrupt pending bits.
__INTERRUPT__ | specifies the interrupt pending bit to clear. This parameter can be any combination of the following values:
|
Definition at line 2267 of file stm32l4xx_hal_rcc_ex.h.