macros to manage the specified RCC Flags and interrupts.
More...
macros to manage the specified RCC Flags and interrupts.
◆ __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
-
<strong>INTERRUPT</strong> | 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_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
-
<strong>INTERRUPT</strong> | 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
-
<strong>INTERRUPT</strong> | 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 : \
RCC->CSR)) & (1U << ((__FLAG__) & RCC_FLAG_MASK)))
Check RCC flag is set or not.
- Parameters
-
<strong>FLAG</strong> | specifies the flag to check. This parameter can be one of the following values:
|
- Return values
-
The | new 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
-
<strong>INTERRUPT</strong> | specifies the RCC interrupt source to check. This parameter can be one of the following values:
|
- Return values
-
The | new state of INTERRUPT (TRUE or FALSE). |