My Project
Loading...
Searching...
No Matches
Flags Interrupts Management

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

Macros

#define __HAL_RCC_ENABLE_IT(__INTERRUPT__)   (*(__IO uint8_t *) RCC_CIR_BYTE1_ADDRESS |= (__INTERRUPT__))
 Enable RCC interrupt.
 
#define __HAL_RCC_DISABLE_IT(__INTERRUPT__)   (*(__IO uint8_t *) RCC_CIR_BYTE1_ADDRESS &= (uint8_t)(~(__INTERRUPT__)))
 Disable RCC interrupt.
 
#define __HAL_RCC_CLEAR_IT(__INTERRUPT__)   (*(__IO uint8_t *) RCC_CIR_BYTE2_ADDRESS = (__INTERRUPT__))
 Clear the RCC's interrupt pending bits.
 
#define __HAL_RCC_GET_IT(__INTERRUPT__)   ((RCC->CIR & (__INTERRUPT__)) == (__INTERRUPT__))
 Check the RCC's interrupt has occurred or not.
 
#define __HAL_RCC_CLEAR_RESET_FLAGS()   (*(__IO uint32_t *)RCC_CSR_RMVF_BB = ENABLE)
 Set RMVF bit to clear the reset flags.
 
#define __HAL_RCC_GET_FLAG(__FLAG__)
 Check RCC flag is set or not.
 

Detailed Description

macros to manage the specified RCC Flags and interrupts.

Macro Definition Documentation

◆ __HAL_RCC_CLEAR_IT

#define __HAL_RCC_CLEAR_IT (   __INTERRUPT__)    (*(__IO uint8_t *) RCC_CIR_BYTE2_ADDRESS = (__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:

◆ __HAL_RCC_CLEAR_RESET_FLAGS

#define __HAL_RCC_CLEAR_RESET_FLAGS ( )    (*(__IO uint32_t *)RCC_CSR_RMVF_BB = ENABLE)

Set RMVF bit to clear the reset flags.

The reset flags are RCC_FLAG_PINRST, RCC_FLAG_PORRST, RCC_FLAG_SFTRST, RCC_FLAG_OBLRST, RCC_FLAG_IWDGRST, RCC_FLAG_WWDGRST, RCC_FLAG_LPWRRST

◆ __HAL_RCC_DISABLE_IT

#define __HAL_RCC_DISABLE_IT (   __INTERRUPT__)    (*(__IO uint8_t *) RCC_CIR_BYTE1_ADDRESS &= (uint8_t)(~(__INTERRUPT__)))

Disable RCC interrupt.

Parameters
__INTERRUPT__specifies the RCC interrupt sources to be disabled. This parameter can be any combination of the following values:

◆ __HAL_RCC_ENABLE_IT

#define __HAL_RCC_ENABLE_IT (   __INTERRUPT__)    (*(__IO uint8_t *) RCC_CIR_BYTE1_ADDRESS |= (__INTERRUPT__))

Enable RCC interrupt.

Parameters
__INTERRUPT__specifies the RCC interrupt sources to be enabled. This parameter can be any combination of the following values:

◆ __HAL_RCC_GET_FLAG

#define __HAL_RCC_GET_FLAG (   __FLAG__)
Value:
(((((__FLAG__) >> 5U) == CR_REG_INDEX) ? RCC->CR : \
(((__FLAG__) >> 5U) == BDCR_REG_INDEX)? RCC->BDCR : \
(((__FLAG__) >> 5U) == CFGR_REG_INDEX)? RCC->CFGR : \
RCC->CSR) & (1U << ((__FLAG__) & RCC_FLAG_MASK)))
#define RCC
Definition: stm32f303xe.h:977
#define BDCR_REG_INDEX
Definition: stm32f3xx_hal_rcc.h:137
#define CR_REG_INDEX
Definition: stm32f3xx_hal_rcc.h:136
#define CFGR_REG_INDEX
Definition: stm32f3xx_hal_rcc.h:139
#define RCC_FLAG_MASK
Definition: stm32f3xx_hal_rcc.h:141

Check 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).

◆ __HAL_RCC_GET_IT

#define __HAL_RCC_GET_IT (   __INTERRUPT__)    ((RCC->CIR & (__INTERRUPT__)) == (__INTERRUPT__))

Check the RCC's 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).