STM32F103xB HAL User Manual
|
macros to manage the specified RCC Flags and interrupts. More...
Defines | |
#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. |
macros to manage the specified RCC Flags and interrupts.
#define __HAL_RCC_CLEAR_IT | ( | __INTERRUPT__ | ) | (*(__IO uint8_t *) RCC_CIR_BYTE2_ADDRESS = (__INTERRUPT__)) |
Clear the RCC's interrupt pending bits.
__INTERRUPT__ | specifies the interrupt pending bit to clear. This parameter can be any combination of the following values:
|
Definition at line 1080 of file stm32f1xx_hal_rcc.h.
Referenced by HAL_RCC_NMI_IRQHandler().
#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
Definition at line 1106 of file stm32f1xx_hal_rcc.h.
#define __HAL_RCC_DISABLE_IT | ( | __INTERRUPT__ | ) | (*(__IO uint8_t *) RCC_CIR_BYTE1_ADDRESS &= (uint8_t)(~(__INTERRUPT__))) |
Disable RCC interrupt.
__INTERRUPT__ | specifies the RCC interrupt sources to be disabled. This parameter can be any combination of the following values:
|
Definition at line 1061 of file stm32f1xx_hal_rcc.h.
#define __HAL_RCC_ENABLE_IT | ( | __INTERRUPT__ | ) | (*(__IO uint8_t *) RCC_CIR_BYTE1_ADDRESS |= (__INTERRUPT__)) |
Enable RCC interrupt.
__INTERRUPT__ | specifies the RCC interrupt sources to be enabled. This parameter can be any combination of the following values:
|
Definition at line 1043 of file stm32f1xx_hal_rcc.h.
#define __HAL_RCC_GET_FLAG | ( | __FLAG__ | ) |
(((((__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.
__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 1131 of file stm32f1xx_hal_rcc.h.
Referenced by HAL_RCC_ClockConfig(), HAL_RCC_OscConfig(), and HAL_RCCEx_PeriphCLKConfig().
#define __HAL_RCC_GET_IT | ( | __INTERRUPT__ | ) | ((RCC->CIR & (__INTERRUPT__)) == (__INTERRUPT__)) |
Check the RCC's interrupt has occurred or not.
__INTERRUPT__ | specifies the RCC interrupt source to check. This parameter can be one of the following values:
|
The | new state of __INTERRUPT__ (TRUE or FALSE). |
Definition at line 1100 of file stm32f1xx_hal_rcc.h.
Referenced by HAL_RCC_NMI_IRQHandler().