STM32L486xx HAL User Manual
Defines
Flags Interrupts Management
RCC Exported Macros

macros to manage the specified RCC Flags and interrupts. More...

Defines

#define __HAL_RCC_ENABLE_IT(__INTERRUPT__)   SET_BIT(RCC->CIER, (__INTERRUPT__))
 Enable RCC interrupt(s).
#define __HAL_RCC_DISABLE_IT(__INTERRUPT__)   CLEAR_BIT(RCC->CIER, (__INTERRUPT__))
 Disable RCC interrupt(s).
#define __HAL_RCC_CLEAR_IT(__INTERRUPT__)   WRITE_REG(RCC->CICR, (__INTERRUPT__))
 Clear the RCC's interrupt pending bits.
#define __HAL_RCC_GET_IT(__INTERRUPT__)   (READ_BIT(RCC->CIFR, (__INTERRUPT__)) == (__INTERRUPT__))
 Check whether the RCC interrupt has occurred or not.
#define __HAL_RCC_CLEAR_RESET_FLAGS()   SET_BIT(RCC->CSR, RCC_CSR_RMVF)
 Set RMVF bit to clear the reset flags.
#define __HAL_RCC_GET_FLAG(__FLAG__)
 Check whether the selected RCC flag is set or not.

Detailed Description

macros to manage the specified RCC Flags and interrupts.


Define Documentation

#define __HAL_RCC_CLEAR_IT (   __INTERRUPT__)    WRITE_REG(RCC->CICR, (__INTERRUPT__))

Clear the RCC's interrupt pending bits.

Parameters:
__INTERRUPT__specifies the interrupt pending bit to clear. This parameter can be any combination of the following values:
Return values:
None

Definition at line 4267 of file stm32l4xx_hal_rcc.h.

Referenced by HAL_RCC_NMI_IRQHandler(), and HAL_RCCEx_LSECSS_IRQHandler().

#define __HAL_RCC_CLEAR_RESET_FLAGS ( )    SET_BIT(RCC->CSR, RCC_CSR_RMVF)

Set RMVF bit to clear the reset flags.

The reset flags are: RCC_FLAG_FWRRST, RCC_FLAG_OBLRST, RCC_FLAG_PINRST, RCC_FLAG_BORRST, RCC_FLAG_SFTRST, RCC_FLAG_IWDGRST, RCC_FLAG_WWDGRST and RCC_FLAG_LPWRRST.

Return values:
None

Definition at line 4297 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_DISABLE_IT (   __INTERRUPT__)    CLEAR_BIT(RCC->CIER, (__INTERRUPT__))

Disable RCC interrupt(s).

Parameters:
__INTERRUPT__specifies the RCC interrupt source(s) to be disabled. This parameter can be any combination of the following values:
Return values:
None

Definition at line 4244 of file stm32l4xx_hal_rcc.h.

Referenced by HAL_RCCEx_DisableLSECSS().

#define __HAL_RCC_ENABLE_IT (   __INTERRUPT__)    SET_BIT(RCC->CIER, (__INTERRUPT__))

Enable RCC interrupt(s).

Parameters:
__INTERRUPT__specifies the RCC interrupt source(s) to be enabled. This parameter can be any combination of the following values:
Return values:
None

Definition at line 4222 of file stm32l4xx_hal_rcc.h.

Referenced by HAL_RCCEx_EnableLSECSS_IT().

#define __HAL_RCC_GET_FLAG (   __FLAG__)
Value:
(((((((__FLAG__) >> 5U) == 1U) ? RCC->CR :                    \
                                        ((((__FLAG__) >> 5U) == 2U) ? RCC->BDCR :                  \
                                        ((((__FLAG__) >> 5U) == 3U) ? RCC->CSR : RCC->CIFR))) &    \
                                          (1U << ((__FLAG__) & RCC_FLAG_MASK))) != RESET) ? 1U : 0U)

Check whether the selected RCC flag is set or not.

Parameters:
__FLAG__specifies the flag to check. This parameter can be one of the following values:
Return values:
Thenew state of __FLAG__ (TRUE or FALSE).

Definition at line 4334 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_GET_IT (   __INTERRUPT__)    (READ_BIT(RCC->CIFR, (__INTERRUPT__)) == (__INTERRUPT__))

Check whether the RCC interrupt has occurred or not.

Parameters:
__INTERRUPT__specifies the RCC interrupt source to check. This parameter can be one of the following values:
Return values:
Thenew state of __INTERRUPT__ (TRUE or FALSE).

Definition at line 4290 of file stm32l4xx_hal_rcc.h.

Referenced by HAL_RCC_NMI_IRQHandler(), and HAL_RCCEx_LSECSS_IRQHandler().