mikroSDK Reference Manual

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. The reset flags are RCC_FLAG_PINRST, RCC_FLAG_PORRST, RCC_FLAG_SFTRST, RCC_FLAG_IWDGRST, RCC_FLAG_WWDGRST, RCC_FLAG_LPWRRST.
 
#define __HAL_RCC_GET_FLAG(__FLAG__)
 Check RCC flag is set or not.
 
#define __HAL_RCC_ENABLE_IT(__INTERRUPT__)   (*(__IO uint8_t *) RCC_CIR_BYTE1_ADDRESS |= (__INTERRUPT__))
 Enable RCC interrupt (Perform Byte access to RCC_CIR[14:8] bits to enable the selected interrupts).
 
#define __HAL_RCC_DISABLE_IT(__INTERRUPT__)   (*(__IO uint8_t *) RCC_CIR_BYTE1_ADDRESS &= (uint8_t)(~(__INTERRUPT__)))
 Disable RCC interrupt (Perform Byte access to RCC_CIR[14:8] bits to disable the selected interrupts).
 
#define __HAL_RCC_CLEAR_IT(__INTERRUPT__)   (*(__IO uint8_t *) RCC_CIR_BYTE2_ADDRESS = (__INTERRUPT__))
 Clear the RCC's interrupt pending bits (Perform Byte access to RCC_CIR[23:16] bits to clear the selected 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()   (RCC->CSR |= RCC_CSR_RMVF)
 Set RMVF bit to clear the reset flags: RCC_FLAG_PINRST, RCC_FLAG_PORRST, RCC_FLAG_SFTRST, RCC_FLAG_IWDGRST, RCC_FLAG_WWDGRST and RCC_FLAG_LPWRRST.
 
#define RCC_FLAG_MASK   ((uint8_t)0x1FU)
 Check RCC flag is set or not.
 
#define __HAL_RCC_GET_FLAG(__FLAG__)   (((((((__FLAG__) >> 5U) == 1U)? RCC->CR :((((__FLAG__) >> 5U) == 2U) ? RCC->BDCR :((((__FLAG__) >> 5U) == 3U)? RCC->CSR :RCC->CIR))) & ((uint32_t)1U << ((__FLAG__) & RCC_FLAG_MASK)))!= 0U)? 1U : 0U)
 
#define RCC_GET_PLL_OSCSOURCE()   ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) >> POSITION_VAL(RCC_PLLCFGR_PLLSRC))
 
#define __HAL_RCC_ENABLE_IT(__INTERRUPT__)   (*(__IO uint8_t *) RCC_CIR_BYTE1_ADDRESS |= (__INTERRUPT__))
 Enable RCC interrupt (Perform Byte access to RCC_CIR[14:8] bits to enable the selected interrupts).
 
#define __HAL_RCC_DISABLE_IT(__INTERRUPT__)   (*(__IO uint8_t *) RCC_CIR_BYTE1_ADDRESS &= (uint8_t)(~(__INTERRUPT__)))
 Disable RCC interrupt (Perform Byte access to RCC_CIR[14:8] bits to disable the selected interrupts).
 
#define __HAL_RCC_CLEAR_IT(__INTERRUPT__)   (*(__IO uint8_t *) RCC_CIR_BYTE2_ADDRESS = (__INTERRUPT__))
 Clear the RCC's interrupt pending bits (Perform Byte access to RCC_CIR[23:16] bits to clear the selected 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()   (RCC->CSR |= RCC_CSR_RMVF)
 Set RMVF bit to clear the reset flags: RCC_FLAG_PINRST, RCC_FLAG_PORRST, RCC_FLAG_SFTRST, RCC_FLAG_IWDGRST, RCC_FLAG_WWDGRST and RCC_FLAG_LPWRRST.
 
#define RCC_FLAG_MASK   ((uint8_t)0x1FU)
 Check RCC flag is set or not.
 
#define __HAL_RCC_GET_FLAG(__FLAG__)   (((((((__FLAG__) >> 5U) == 1U)? RCC->CR :((((__FLAG__) >> 5U) == 2U) ? RCC->BDCR :((((__FLAG__) >> 5U) == 3U)? RCC->CSR :RCC->CIR))) & (1U << ((__FLAG__) & RCC_FLAG_MASK)))!= 0U)? 1U : 0U)
 
#define __HAL_RCC_ENABLE_IT(__INTERRUPT__)   (*(__IO uint8_t *) RCC_CIR_BYTE1_ADDRESS |= (__INTERRUPT__))
 Enable RCC interrupt (Perform Byte access to RCC_CIR[14:8] bits to enable the selected interrupts).
 
#define __HAL_RCC_DISABLE_IT(__INTERRUPT__)   (*(__IO uint8_t *) RCC_CIR_BYTE1_ADDRESS &= (uint8_t)(~(__INTERRUPT__)))
 Disable RCC interrupt (Perform Byte access to RCC_CIR[14:8] bits to disable the selected interrupts).
 
#define __HAL_RCC_CLEAR_IT(__INTERRUPT__)   (*(__IO uint8_t *) RCC_CIR_BYTE2_ADDRESS = (__INTERRUPT__))
 Clear the RCC's interrupt pending bits (Perform Byte access to RCC_CIR[23:16] bits to clear the selected 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()   (RCC->CSR |= RCC_CSR_RMVF)
 Set RMVF bit to clear the reset flags: RCC_FLAG_PINRST, RCC_FLAG_PORRST, RCC_FLAG_SFTRST, RCC_FLAG_IWDGRST, RCC_FLAG_WWDGRST and RCC_FLAG_LPWRRST.
 
#define RCC_FLAG_MASK   ((uint8_t)0x1F)
 Check RCC flag is set or not.
 
#define __HAL_RCC_GET_FLAG(__FLAG__)   (((((((__FLAG__) >> 5) == 1)? RCC->CR :((((__FLAG__) >> 5) == 2) ? RCC->BDCR :((((__FLAG__) >> 5) == 3)? RCC->CSR :RCC->CIR))) & ((uint32_t)1 << ((__FLAG__) & RCC_FLAG_MASK)))!= 0)? 1 : 0)
 
#define __HAL_RCC_ENABLE_IT(__INTERRUPT__)   SET_BIT(RCC->CIER, (__INTERRUPT__))
 Enable RCC interrupt.
 
#define __HAL_RCC_DISABLE_IT(__INTERRUPT__)   CLEAR_BIT(RCC->CIER, (__INTERRUPT__))
 Disable RCC interrupt.
 
#define __HAL_RCC_CLEAR_IT(__INTERRUPT__)   (RCC->CICR = (__INTERRUPT__))
 Clear the RCC's interrupt pending bits.
 
#define __HAL_RCC_GET_IT(__INTERRUPT__)   ((RCC->CIFR & (__INTERRUPT__)) == (__INTERRUPT__))
 Check the RCC's interrupt has occurred or not.
 
#define __HAL_RCC_CLEAR_RESET_FLAGS()   (RCC->RSR |= RCC_RSR_RMVF)
 Set RMVF bit to clear the reset flags.
 
#define RCC_FLAG_MASK   ((uint8_t)0x1F)
 Check RCC flag is set or not.
 
#define __HAL_RCC_GET_FLAG(__FLAG__)
 

Macro Definition Documentation

◆ __HAL_RCC_CLEAR_IT [1/5]

#define __HAL_RCC_CLEAR_IT ( __INTERRUPT__)    (*(__IO uint8_t *) RCC_CIR_BYTE2_ADDRESS = (__INTERRUPT__))

Clear the RCC's interrupt pending bits (Perform Byte access to RCC_CIR[23:16] bits to clear the selected interrupt pending bits.

Parameters
__INTERRUPT__specifies the interrupt pending bit to clear. This parameter can be any combination of the following values:
__INTERRUPT__specifies the interrupt pending bit to clear. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt.
  • RCC_IT_LSERDY: LSE ready interrupt.
  • RCC_IT_HSIRDY: HSI ready interrupt.
  • RCC_IT_HSERDY: HSE ready interrupt.
  • RCC_IT_PLLRDY: Main PLL ready interrupt.
  • RCC_IT_PLLI2SRDY: PLLI2S ready interrupt.
  • RCC_IT_CSS: Clock Security System interrupt
__INTERRUPT__specifies the interrupt pending bit to clear. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt.
  • RCC_IT_LSERDY: LSE ready interrupt.
  • RCC_IT_HSIRDY: HSI ready interrupt.
  • RCC_IT_HSERDY: HSE ready interrupt.
  • RCC_IT_PLLRDY: Main PLL ready interrupt.
  • RCC_IT_PLLI2SRDY: PLLI2S ready interrupt.
  • RCC_IT_CSS: Clock Security System interrupt
__INTERRUPT__specifies the interrupt pending bit to clear. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt
  • RCC_IT_LSERDY: LSE ready interrupt
  • RCC_IT_CSIRDY: CSI ready interrupt
  • RCC_IT_HSIRDY: HSI ready interrupt
  • RCC_IT_HSERDY: HSE ready interrupt
  • RCC_IT_HSI48RDY: HSI48 ready interrupt
  • RCC_IT_PLLRDY: main PLL ready interrupt
  • RCC_IT_PLL2RDY: PLL2 ready interrupt
  • RCC_IT_PLL3RDY: PLL3 ready interrupt
  • RCC_IT_HSECSS: HSE Clock Security interrupt
  • RCC_IT_LSECSS: Clock security system interrupt

◆ __HAL_RCC_CLEAR_IT [2/5]

#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:
  • RCC_IT_LSIRDY: LSI ready interrupt.
  • RCC_IT_LSERDY: LSE ready interrupt.
  • RCC_IT_HSIRDY: HSI ready interrupt.
  • RCC_IT_HSERDY: HSE ready interrupt.
  • RCC_IT_PLLRDY: Main PLL ready interrupt.
  • RCC_IT_PLLI2SRDY: PLLI2S ready interrupt.
  • RCC_IT_CSS: Clock Security System interrupt
__INTERRUPT__specifies the interrupt pending bit to clear. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt.
  • RCC_IT_LSERDY: LSE ready interrupt.
  • RCC_IT_HSIRDY: HSI ready interrupt.
  • RCC_IT_HSERDY: HSE ready interrupt.
  • RCC_IT_PLLRDY: Main PLL ready interrupt.
  • RCC_IT_PLLI2SRDY: PLLI2S ready interrupt.
  • RCC_IT_CSS: Clock Security System interrupt
__INTERRUPT__specifies the interrupt pending bit to clear. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt
  • RCC_IT_LSERDY: LSE ready interrupt
  • RCC_IT_CSIRDY: CSI ready interrupt
  • RCC_IT_HSIRDY: HSI ready interrupt
  • RCC_IT_HSERDY: HSE ready interrupt
  • RCC_IT_HSI48RDY: HSI48 ready interrupt
  • RCC_IT_PLLRDY: main PLL ready interrupt
  • RCC_IT_PLL2RDY: PLL2 ready interrupt
  • RCC_IT_PLL3RDY: PLL3 ready interrupt
  • RCC_IT_HSECSS: HSE Clock Security interrupt
  • RCC_IT_LSECSS: Clock security system interrupt

◆ __HAL_RCC_CLEAR_IT [3/5]

#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:
  • RCC_IT_LSIRDY: LSI ready interrupt.
  • RCC_IT_LSERDY: LSE ready interrupt.
  • RCC_IT_HSIRDY: HSI ready interrupt.
  • RCC_IT_HSERDY: HSE ready interrupt.
  • RCC_IT_PLLRDY: Main PLL ready interrupt.
  • RCC_IT_PLLI2SRDY: PLLI2S ready interrupt.
  • RCC_IT_CSS: Clock Security System interrupt
__INTERRUPT__specifies the interrupt pending bit to clear. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt.
  • RCC_IT_LSERDY: LSE ready interrupt.
  • RCC_IT_HSIRDY: HSI ready interrupt.
  • RCC_IT_HSERDY: HSE ready interrupt.
  • RCC_IT_PLLRDY: Main PLL ready interrupt.
  • RCC_IT_PLLI2SRDY: PLLI2S ready interrupt.
  • RCC_IT_CSS: Clock Security System interrupt
__INTERRUPT__specifies the interrupt pending bit to clear. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt
  • RCC_IT_LSERDY: LSE ready interrupt
  • RCC_IT_CSIRDY: CSI ready interrupt
  • RCC_IT_HSIRDY: HSI ready interrupt
  • RCC_IT_HSERDY: HSE ready interrupt
  • RCC_IT_HSI48RDY: HSI48 ready interrupt
  • RCC_IT_PLLRDY: main PLL ready interrupt
  • RCC_IT_PLL2RDY: PLL2 ready interrupt
  • RCC_IT_PLL3RDY: PLL3 ready interrupt
  • RCC_IT_HSECSS: HSE Clock Security interrupt
  • RCC_IT_LSECSS: Clock security system interrupt

◆ __HAL_RCC_CLEAR_IT [4/5]

#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:
  • RCC_IT_LSIRDY: LSI ready interrupt.
  • RCC_IT_LSERDY: LSE ready interrupt.
  • RCC_IT_HSIRDY: HSI ready interrupt.
  • RCC_IT_HSERDY: HSE ready interrupt.
  • RCC_IT_PLLRDY: Main PLL ready interrupt.
  • RCC_IT_PLLI2SRDY: PLLI2S ready interrupt.
  • RCC_IT_CSS: Clock Security System interrupt
__INTERRUPT__specifies the interrupt pending bit to clear. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt
  • RCC_IT_LSERDY: LSE ready interrupt
  • RCC_IT_CSIRDY: CSI ready interrupt
  • RCC_IT_HSIRDY: HSI ready interrupt
  • RCC_IT_HSERDY: HSE ready interrupt
  • RCC_IT_HSI48RDY: HSI48 ready interrupt
  • RCC_IT_PLLRDY: main PLL ready interrupt
  • RCC_IT_PLL2RDY: PLL2 ready interrupt
  • RCC_IT_PLL3RDY: PLL3 ready interrupt
  • RCC_IT_HSECSS: HSE Clock Security interrupt
  • RCC_IT_LSECSS: Clock security system interrupt

◆ __HAL_RCC_CLEAR_IT [5/5]

#define __HAL_RCC_CLEAR_IT ( __INTERRUPT__)    (RCC->CICR = (__INTERRUPT__))
Parameters
__INTERRUPT__specifies the interrupt pending bit to clear. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt
  • RCC_IT_LSERDY: LSE ready interrupt
  • RCC_IT_CSIRDY: CSI ready interrupt
  • RCC_IT_HSIRDY: HSI ready interrupt
  • RCC_IT_HSERDY: HSE ready interrupt
  • RCC_IT_HSI48RDY: HSI48 ready interrupt
  • RCC_IT_PLLRDY: main PLL ready interrupt
  • RCC_IT_PLL2RDY: PLL2 ready interrupt
  • RCC_IT_PLL3RDY: PLL3 ready interrupt
  • RCC_IT_HSECSS: HSE Clock Security interrupt
  • RCC_IT_LSECSS: Clock security system interrupt

◆ __HAL_RCC_CLEAR_RESET_FLAGS [1/4]

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

Set RMVF bit to clear the reset flags.

Set RMVF bit to clear the reset flags: RCC_FLAG_PINRST, RCC_FLAG_PORRST, RCC_FLAG_SFTRST, RCC_FLAG_IWDGRST, RCC_FLAG_WWDGRST and RCC_FLAG_LPWRRST.

◆ __HAL_RCC_CLEAR_RESET_FLAGS [2/4]

#define __HAL_RCC_CLEAR_RESET_FLAGS ( )    (RCC->CSR |= RCC_CSR_RMVF)

Set RMVF bit to clear the reset flags.

◆ __HAL_RCC_CLEAR_RESET_FLAGS [3/4]

#define __HAL_RCC_CLEAR_RESET_FLAGS ( )    (RCC->CSR |= RCC_CSR_RMVF)

Set RMVF bit to clear the reset flags.

◆ __HAL_RCC_CLEAR_RESET_FLAGS [4/4]

#define __HAL_RCC_CLEAR_RESET_FLAGS ( )    (RCC->CSR |= RCC_CSR_RMVF)

Set RMVF bit to clear the reset flags.

◆ __HAL_RCC_DISABLE_IT [1/5]

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

Disable RCC interrupt (Perform Byte access to RCC_CIR[14:8] bits to disable the selected interrupts).

Parameters
__INTERRUPT__specifies the RCC interrupt sources to be disabled. This parameter can be any combination of the following values:
__INTERRUPT__specifies the RCC interrupt sources to be disabled. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt.
  • RCC_IT_LSERDY: LSE ready interrupt.
  • RCC_IT_HSIRDY: HSI ready interrupt.
  • RCC_IT_HSERDY: HSE ready interrupt.
  • RCC_IT_PLLRDY: Main PLL ready interrupt.
  • RCC_IT_PLLI2SRDY: PLLI2S ready interrupt.
__INTERRUPT__specifies the RCC interrupt sources to be disabled. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt
  • RCC_IT_LSERDY: LSE ready interrupt
  • RCC_IT_CSIRDY: HSI ready interrupt
  • RCC_IT_HSIRDY: HSI ready interrupt
  • RCC_IT_HSERDY: HSE ready interrupt
  • RCC_IT_HSI48RDY: HSI48 ready interrupt
  • RCC_IT_PLLRDY: main PLL ready interrupt
  • RCC_IT_PLL2RDY: PLL2 ready interrupt
  • RCC_IT_PLL3RDY: PLL3 ready interrupt
  • RCC_IT_LSECSS: Clock security system interrupt

◆ __HAL_RCC_DISABLE_IT [2/5]

#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:
  • RCC_IT_LSIRDY: LSI ready interrupt.
  • RCC_IT_LSERDY: LSE ready interrupt.
  • RCC_IT_HSIRDY: HSI ready interrupt.
  • RCC_IT_HSERDY: HSE ready interrupt.
  • RCC_IT_PLLRDY: Main PLL ready interrupt.
  • RCC_IT_PLLI2SRDY: PLLI2S ready interrupt.
__INTERRUPT__specifies the RCC interrupt sources to be disabled. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt
  • RCC_IT_LSERDY: LSE ready interrupt
  • RCC_IT_CSIRDY: HSI ready interrupt
  • RCC_IT_HSIRDY: HSI ready interrupt
  • RCC_IT_HSERDY: HSE ready interrupt
  • RCC_IT_HSI48RDY: HSI48 ready interrupt
  • RCC_IT_PLLRDY: main PLL ready interrupt
  • RCC_IT_PLL2RDY: PLL2 ready interrupt
  • RCC_IT_PLL3RDY: PLL3 ready interrupt
  • RCC_IT_LSECSS: Clock security system interrupt

◆ __HAL_RCC_DISABLE_IT [3/5]

#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:
  • RCC_IT_LSIRDY: LSI ready interrupt.
  • RCC_IT_LSERDY: LSE ready interrupt.
  • RCC_IT_HSIRDY: HSI ready interrupt.
  • RCC_IT_HSERDY: HSE ready interrupt.
  • RCC_IT_PLLRDY: Main PLL ready interrupt.
  • RCC_IT_PLLI2SRDY: PLLI2S ready interrupt.
__INTERRUPT__specifies the RCC interrupt sources to be disabled. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt
  • RCC_IT_LSERDY: LSE ready interrupt
  • RCC_IT_CSIRDY: HSI ready interrupt
  • RCC_IT_HSIRDY: HSI ready interrupt
  • RCC_IT_HSERDY: HSE ready interrupt
  • RCC_IT_HSI48RDY: HSI48 ready interrupt
  • RCC_IT_PLLRDY: main PLL ready interrupt
  • RCC_IT_PLL2RDY: PLL2 ready interrupt
  • RCC_IT_PLL3RDY: PLL3 ready interrupt
  • RCC_IT_LSECSS: Clock security system interrupt

◆ __HAL_RCC_DISABLE_IT [4/5]

#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:
  • RCC_IT_LSIRDY: LSI ready interrupt.
  • RCC_IT_LSERDY: LSE ready interrupt.
  • RCC_IT_HSIRDY: HSI ready interrupt.
  • RCC_IT_HSERDY: HSE ready interrupt.
  • RCC_IT_PLLRDY: Main PLL ready interrupt.
  • RCC_IT_PLLI2SRDY: PLLI2S ready interrupt.
__INTERRUPT__specifies the RCC interrupt sources to be disabled. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt
  • RCC_IT_LSERDY: LSE ready interrupt
  • RCC_IT_CSIRDY: HSI ready interrupt
  • RCC_IT_HSIRDY: HSI ready interrupt
  • RCC_IT_HSERDY: HSE ready interrupt
  • RCC_IT_HSI48RDY: HSI48 ready interrupt
  • RCC_IT_PLLRDY: main PLL ready interrupt
  • RCC_IT_PLL2RDY: PLL2 ready interrupt
  • RCC_IT_PLL3RDY: PLL3 ready interrupt
  • RCC_IT_LSECSS: Clock security system interrupt

◆ __HAL_RCC_DISABLE_IT [5/5]

#define __HAL_RCC_DISABLE_IT ( __INTERRUPT__)    CLEAR_BIT(RCC->CIER, (__INTERRUPT__))
Parameters
__INTERRUPT__specifies the RCC interrupt sources to be disabled. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt
  • RCC_IT_LSERDY: LSE ready interrupt
  • RCC_IT_CSIRDY: HSI ready interrupt
  • RCC_IT_HSIRDY: HSI ready interrupt
  • RCC_IT_HSERDY: HSE ready interrupt
  • RCC_IT_HSI48RDY: HSI48 ready interrupt
  • RCC_IT_PLLRDY: main PLL ready interrupt
  • RCC_IT_PLL2RDY: PLL2 ready interrupt
  • RCC_IT_PLL3RDY: PLL3 ready interrupt
  • RCC_IT_LSECSS: Clock security system interrupt

◆ __HAL_RCC_ENABLE_IT [1/5]

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

Enable RCC interrupt (Perform Byte access to RCC_CIR[14:8] bits to enable the selected interrupts).

Parameters
__INTERRUPT__specifies the RCC interrupt sources to be enabled. This parameter can be any combination of the following values:
__INTERRUPT__specifies the RCC interrupt sources to be enabled. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt.
  • RCC_IT_LSERDY: LSE ready interrupt.
  • RCC_IT_HSIRDY: HSI ready interrupt.
  • RCC_IT_HSERDY: HSE ready interrupt.
  • RCC_IT_PLLRDY: Main PLL ready interrupt.
  • RCC_IT_PLLI2SRDY: PLLI2S ready interrupt.
__INTERRUPT__specifies the RCC interrupt sources to be enabled. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt
  • RCC_IT_LSERDY: LSE ready interrupt
  • RCC_IT_CSIRDY: HSI ready interrupt
  • RCC_IT_HSIRDY: HSI ready interrupt
  • RCC_IT_HSERDY: HSE ready interrupt
  • RCC_IT_HSI48RDY: HSI48 ready interrupt
  • RCC_IT_PLLRDY: main PLL ready interrupt
  • RCC_IT_PLL2RDY: PLL2 ready interrupt
  • RCC_IT_PLL3RDY: PLL3 ready interrupt
  • RCC_IT_LSECSS: Clock security system interrupt

◆ __HAL_RCC_ENABLE_IT [2/5]

#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:
  • RCC_IT_LSIRDY: LSI ready interrupt.
  • RCC_IT_LSERDY: LSE ready interrupt.
  • RCC_IT_HSIRDY: HSI ready interrupt.
  • RCC_IT_HSERDY: HSE ready interrupt.
  • RCC_IT_PLLRDY: Main PLL ready interrupt.
  • RCC_IT_PLLI2SRDY: PLLI2S ready interrupt.
__INTERRUPT__specifies the RCC interrupt sources to be enabled. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt
  • RCC_IT_LSERDY: LSE ready interrupt
  • RCC_IT_CSIRDY: HSI ready interrupt
  • RCC_IT_HSIRDY: HSI ready interrupt
  • RCC_IT_HSERDY: HSE ready interrupt
  • RCC_IT_HSI48RDY: HSI48 ready interrupt
  • RCC_IT_PLLRDY: main PLL ready interrupt
  • RCC_IT_PLL2RDY: PLL2 ready interrupt
  • RCC_IT_PLL3RDY: PLL3 ready interrupt
  • RCC_IT_LSECSS: Clock security system interrupt

◆ __HAL_RCC_ENABLE_IT [3/5]

#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:
  • RCC_IT_LSIRDY: LSI ready interrupt.
  • RCC_IT_LSERDY: LSE ready interrupt.
  • RCC_IT_HSIRDY: HSI ready interrupt.
  • RCC_IT_HSERDY: HSE ready interrupt.
  • RCC_IT_PLLRDY: Main PLL ready interrupt.
  • RCC_IT_PLLI2SRDY: PLLI2S ready interrupt.
__INTERRUPT__specifies the RCC interrupt sources to be enabled. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt
  • RCC_IT_LSERDY: LSE ready interrupt
  • RCC_IT_CSIRDY: HSI ready interrupt
  • RCC_IT_HSIRDY: HSI ready interrupt
  • RCC_IT_HSERDY: HSE ready interrupt
  • RCC_IT_HSI48RDY: HSI48 ready interrupt
  • RCC_IT_PLLRDY: main PLL ready interrupt
  • RCC_IT_PLL2RDY: PLL2 ready interrupt
  • RCC_IT_PLL3RDY: PLL3 ready interrupt
  • RCC_IT_LSECSS: Clock security system interrupt

◆ __HAL_RCC_ENABLE_IT [4/5]

#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:
  • RCC_IT_LSIRDY: LSI ready interrupt.
  • RCC_IT_LSERDY: LSE ready interrupt.
  • RCC_IT_HSIRDY: HSI ready interrupt.
  • RCC_IT_HSERDY: HSE ready interrupt.
  • RCC_IT_PLLRDY: Main PLL ready interrupt.
  • RCC_IT_PLLI2SRDY: PLLI2S ready interrupt.
__INTERRUPT__specifies the RCC interrupt sources to be enabled. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt
  • RCC_IT_LSERDY: LSE ready interrupt
  • RCC_IT_CSIRDY: HSI ready interrupt
  • RCC_IT_HSIRDY: HSI ready interrupt
  • RCC_IT_HSERDY: HSE ready interrupt
  • RCC_IT_HSI48RDY: HSI48 ready interrupt
  • RCC_IT_PLLRDY: main PLL ready interrupt
  • RCC_IT_PLL2RDY: PLL2 ready interrupt
  • RCC_IT_PLL3RDY: PLL3 ready interrupt
  • RCC_IT_LSECSS: Clock security system interrupt

◆ __HAL_RCC_ENABLE_IT [5/5]

#define __HAL_RCC_ENABLE_IT ( __INTERRUPT__)    SET_BIT(RCC->CIER, (__INTERRUPT__))
Parameters
__INTERRUPT__specifies the RCC interrupt sources to be enabled. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt
  • RCC_IT_LSERDY: LSE ready interrupt
  • RCC_IT_CSIRDY: HSI ready interrupt
  • RCC_IT_HSIRDY: HSI ready interrupt
  • RCC_IT_HSERDY: HSE ready interrupt
  • RCC_IT_HSI48RDY: HSI48 ready interrupt
  • RCC_IT_PLLRDY: main PLL ready interrupt
  • RCC_IT_PLL2RDY: PLL2 ready interrupt
  • RCC_IT_PLL3RDY: PLL3 ready interrupt
  • RCC_IT_LSECSS: Clock security system interrupt

◆ __HAL_RCC_GET_FLAG [1/2]

#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)))
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_FLAG [2/2]

#define __HAL_RCC_GET_FLAG ( __FLAG__)
Value:
(((((((__FLAG__) >> 5U) == 1U)? RCC->CR :((((__FLAG__) >> 5U) == 2U) ? RCC->BDCR : \
((((__FLAG__) >> 5U) == 3U)? RCC->CSR : ((((__FLAG__) >> 5U) == 4U)? RCC->RSR :RCC->CIFR)))) & (1UL << ((__FLAG__) & RCC_FLAG_MASK)))!= 0U)? 1U : 0U)
#define RCC_FLAG_MASK
Check RCC flag is set or not.
Definition stm32h7xx_hal_rcc.h:7944

◆ __HAL_RCC_GET_IT [1/5]

#define __HAL_RCC_GET_IT ( __INTERRUPT__)    ((RCC->CIR & (__INTERRUPT__)) == (__INTERRUPT__))
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).
Parameters
__INTERRUPT__specifies the RCC interrupt source to check. This parameter can be one of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt.
  • RCC_IT_LSERDY: LSE ready interrupt.
  • RCC_IT_HSIRDY: HSI ready interrupt.
  • RCC_IT_HSERDY: HSE ready interrupt.
  • RCC_IT_PLLRDY: Main PLL ready interrupt.
  • RCC_IT_PLLI2SRDY: PLLI2S ready interrupt.
  • RCC_IT_CSS: Clock Security System interrupt
Return values
Thenew state of INTERRUPT (TRUE or FALSE).
Parameters
__INTERRUPT__specifies the RCC interrupt source to check. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt
  • RCC_IT_LSERDY: LSE ready interrupt
  • RCC_IT_CSIRDY: CSI ready interrupt
  • RCC_IT_HSIRDY: HSI ready interrupt
  • RCC_IT_HSERDY: HSE ready interrupt
  • RCC_IT_HSI48RDY: HSI48 ready interrupt
  • RCC_IT_PLLRDY: main PLL ready interrupt
  • RCC_IT_PLL2RDY: PLL2 ready interrupt
  • RCC_IT_PLL3RDY: PLL3 ready interrupt
  • RCC_IT_HSECSS: HSE Clock Security interrupt
  • RCC_IT_LSECSS: Clock security system interrupt
Return values
Thenew state of INTERRUPT (TRUE or FALSE).

◆ __HAL_RCC_GET_IT [2/5]

#define __HAL_RCC_GET_IT ( __INTERRUPT__)    ((RCC->CIR & (__INTERRUPT__)) == (__INTERRUPT__))
Parameters
__INTERRUPT__specifies the RCC interrupt source to check. This parameter can be one of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt.
  • RCC_IT_LSERDY: LSE ready interrupt.
  • RCC_IT_HSIRDY: HSI ready interrupt.
  • RCC_IT_HSERDY: HSE ready interrupt.
  • RCC_IT_PLLRDY: Main PLL ready interrupt.
  • RCC_IT_PLLI2SRDY: PLLI2S ready interrupt.
  • RCC_IT_CSS: Clock Security System interrupt
Return values
Thenew state of INTERRUPT (TRUE or FALSE).
Parameters
__INTERRUPT__specifies the RCC interrupt source to check. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt
  • RCC_IT_LSERDY: LSE ready interrupt
  • RCC_IT_CSIRDY: CSI ready interrupt
  • RCC_IT_HSIRDY: HSI ready interrupt
  • RCC_IT_HSERDY: HSE ready interrupt
  • RCC_IT_HSI48RDY: HSI48 ready interrupt
  • RCC_IT_PLLRDY: main PLL ready interrupt
  • RCC_IT_PLL2RDY: PLL2 ready interrupt
  • RCC_IT_PLL3RDY: PLL3 ready interrupt
  • RCC_IT_HSECSS: HSE Clock Security interrupt
  • RCC_IT_LSECSS: Clock security system interrupt
Return values
Thenew state of INTERRUPT (TRUE or FALSE).

◆ __HAL_RCC_GET_IT [3/5]

#define __HAL_RCC_GET_IT ( __INTERRUPT__)    ((RCC->CIR & (__INTERRUPT__)) == (__INTERRUPT__))
Parameters
__INTERRUPT__specifies the RCC interrupt source to check. This parameter can be one of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt.
  • RCC_IT_LSERDY: LSE ready interrupt.
  • RCC_IT_HSIRDY: HSI ready interrupt.
  • RCC_IT_HSERDY: HSE ready interrupt.
  • RCC_IT_PLLRDY: Main PLL ready interrupt.
  • RCC_IT_PLLI2SRDY: PLLI2S ready interrupt.
  • RCC_IT_CSS: Clock Security System interrupt
Return values
Thenew state of INTERRUPT (TRUE or FALSE).
Parameters
__INTERRUPT__specifies the RCC interrupt source to check. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt
  • RCC_IT_LSERDY: LSE ready interrupt
  • RCC_IT_CSIRDY: CSI ready interrupt
  • RCC_IT_HSIRDY: HSI ready interrupt
  • RCC_IT_HSERDY: HSE ready interrupt
  • RCC_IT_HSI48RDY: HSI48 ready interrupt
  • RCC_IT_PLLRDY: main PLL ready interrupt
  • RCC_IT_PLL2RDY: PLL2 ready interrupt
  • RCC_IT_PLL3RDY: PLL3 ready interrupt
  • RCC_IT_HSECSS: HSE Clock Security interrupt
  • RCC_IT_LSECSS: Clock security system interrupt
Return values
Thenew state of INTERRUPT (TRUE or FALSE).

◆ __HAL_RCC_GET_IT [4/5]

#define __HAL_RCC_GET_IT ( __INTERRUPT__)    ((RCC->CIR & (__INTERRUPT__)) == (__INTERRUPT__))
Parameters
__INTERRUPT__specifies the RCC interrupt source to check. This parameter can be one of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt.
  • RCC_IT_LSERDY: LSE ready interrupt.
  • RCC_IT_HSIRDY: HSI ready interrupt.
  • RCC_IT_HSERDY: HSE ready interrupt.
  • RCC_IT_PLLRDY: Main PLL ready interrupt.
  • RCC_IT_PLLI2SRDY: PLLI2S ready interrupt.
  • RCC_IT_CSS: Clock Security System interrupt
Return values
Thenew state of INTERRUPT (TRUE or FALSE).
Parameters
__INTERRUPT__specifies the RCC interrupt source to check. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt
  • RCC_IT_LSERDY: LSE ready interrupt
  • RCC_IT_CSIRDY: CSI ready interrupt
  • RCC_IT_HSIRDY: HSI ready interrupt
  • RCC_IT_HSERDY: HSE ready interrupt
  • RCC_IT_HSI48RDY: HSI48 ready interrupt
  • RCC_IT_PLLRDY: main PLL ready interrupt
  • RCC_IT_PLL2RDY: PLL2 ready interrupt
  • RCC_IT_PLL3RDY: PLL3 ready interrupt
  • RCC_IT_HSECSS: HSE Clock Security interrupt
  • RCC_IT_LSECSS: Clock security system interrupt
Return values
Thenew state of INTERRUPT (TRUE or FALSE).

◆ __HAL_RCC_GET_IT [5/5]

#define __HAL_RCC_GET_IT ( __INTERRUPT__)    ((RCC->CIFR & (__INTERRUPT__)) == (__INTERRUPT__))
Parameters
__INTERRUPT__specifies the RCC interrupt source to check. This parameter can be any combination of the following values:
  • RCC_IT_LSIRDY: LSI ready interrupt
  • RCC_IT_LSERDY: LSE ready interrupt
  • RCC_IT_CSIRDY: CSI ready interrupt
  • RCC_IT_HSIRDY: HSI ready interrupt
  • RCC_IT_HSERDY: HSE ready interrupt
  • RCC_IT_HSI48RDY: HSI48 ready interrupt
  • RCC_IT_PLLRDY: main PLL ready interrupt
  • RCC_IT_PLL2RDY: PLL2 ready interrupt
  • RCC_IT_PLL3RDY: PLL3 ready interrupt
  • RCC_IT_HSECSS: HSE Clock Security interrupt
  • RCC_IT_LSECSS: Clock security system interrupt
Return values
Thenew state of INTERRUPT (TRUE or FALSE).

◆ RCC_FLAG_MASK [1/4]

#define RCC_FLAG_MASK   ((uint8_t)0x1FU)
Parameters
__FLAG__specifies the flag to check. This parameter can be one of the following values:
  • RCC_FLAG_HSIRDY: HSI oscillator clock ready.
  • RCC_FLAG_HSERDY: HSE oscillator clock ready.
  • RCC_FLAG_PLLRDY: Main PLL clock ready.
  • RCC_FLAG_PLLI2SRDY: PLLI2S clock ready.
  • RCC_FLAG_LSERDY: LSE oscillator clock ready.
  • RCC_FLAG_LSIRDY: LSI oscillator clock ready.
  • RCC_FLAG_BORRST: POR/PDR or BOR reset.
  • RCC_FLAG_PINRST: Pin reset.
  • RCC_FLAG_PORRST: POR/PDR reset.
  • RCC_FLAG_SFTRST: Software reset.
  • RCC_FLAG_IWDGRST: Independent Watchdog reset.
  • RCC_FLAG_WWDGRST: Window Watchdog reset.
  • RCC_FLAG_LPWRRST: Low Power reset.
Return values
Thenew state of FLAG (TRUE or FALSE).
Parameters
__FLAG__specifies the flag to check. This parameter can be one of the following values:
  • RCC_FLAG_HSIRDY: HSI oscillator clock ready
  • RCC_FLAG_HSIDIV: HSI divider flag
  • RCC_FLAG_CSIRDY: CSI oscillator clock ready
  • RCC_FLAG_HSI48RDY: HSI48 oscillator clock ready
  • RCC_FLAG_HSERDY: HSE oscillator clock ready
  • RCC_FLAG_D1CKRDY: Domain1 clock ready (*)
  • RCC_FLAG_D2CKRDY: Domain2 clock ready (*)
  • RCC_FLAG_CPUCKRDY: CPU Domain clock ready (CPU, APB3, bus matrix1 and related memories) (*)
  • RCC_FLAG_CDCKRDY: CPU Domain clock ready (*)
  • RCC_FLAG_PLLRDY: PLL1 clock ready
  • RCC_FLAG_PLL2RDY: PLL2 clock ready
  • RCC_FLAG_PLL3RDY: PLL3 clock ready
  • RCC_FLAG_LSERDY: LSE oscillator clock ready
  • RCC_FLAG_LSIRDY: LSI oscillator clock ready
  • RCC_FLAG_CPURST: CPU reset flag
  • RCC_FLAG_D1RST: D1 domain power switch reset flag (*)
  • RCC_FLAG_D2RST: D2 domain power switch reset flag (*)
  • RCC_FLAG_CDRST: CD domain power switch reset flag (*)
  • RCC_FLAG_BORRST: BOR reset flag
  • RCC_FLAG_PINRST: Pin reset
  • RCC_FLAG_PORRST: POR/PDR reset
  • RCC_FLAG_SFTRST: System reset from CPU reset flag
  • RCC_FLAG_BORRST: D2 domain power switch reset flag
  • RCC_FLAG_IWDG1RST: CPU Independent Watchdog reset
  • RCC_FLAG_WWDG1RST: Window Watchdog1 reset
  • RCC_FLAG_LPWR1RST: Reset due to illegal D1 DSTANDBY or CPU CSTOP flag
  • RCC_FLAG_LPWR2RST: Reset due to illegal D2 DSTANDBY flag
Return values
Thenew state of FLAG (TRUE or FALSE).

(*) Available on some STM32H7 lines only.

◆ RCC_FLAG_MASK [2/4]

#define RCC_FLAG_MASK   ((uint8_t)0x1FU)
Parameters
__FLAG__specifies the flag to check. This parameter can be one of the following values:
  • RCC_FLAG_HSIRDY: HSI oscillator clock ready.
  • RCC_FLAG_HSERDY: HSE oscillator clock ready.
  • RCC_FLAG_PLLRDY: Main PLL clock ready.
  • RCC_FLAG_PLLI2SRDY: PLLI2S clock ready.
  • RCC_FLAG_LSERDY: LSE oscillator clock ready.
  • RCC_FLAG_LSIRDY: LSI oscillator clock ready.
  • RCC_FLAG_BORRST: POR/PDR or BOR reset.
  • RCC_FLAG_PINRST: Pin reset.
  • RCC_FLAG_PORRST: POR/PDR reset.
  • RCC_FLAG_SFTRST: Software reset.
  • RCC_FLAG_IWDGRST: Independent Watchdog reset.
  • RCC_FLAG_WWDGRST: Window Watchdog reset.
  • RCC_FLAG_LPWRRST: Low Power reset.
Return values
Thenew state of FLAG (TRUE or FALSE).
Parameters
__FLAG__specifies the flag to check. This parameter can be one of the following values:
  • RCC_FLAG_HSIRDY: HSI oscillator clock ready
  • RCC_FLAG_HSIDIV: HSI divider flag
  • RCC_FLAG_CSIRDY: CSI oscillator clock ready
  • RCC_FLAG_HSI48RDY: HSI48 oscillator clock ready
  • RCC_FLAG_HSERDY: HSE oscillator clock ready
  • RCC_FLAG_D1CKRDY: Domain1 clock ready (*)
  • RCC_FLAG_D2CKRDY: Domain2 clock ready (*)
  • RCC_FLAG_CPUCKRDY: CPU Domain clock ready (CPU, APB3, bus matrix1 and related memories) (*)
  • RCC_FLAG_CDCKRDY: CPU Domain clock ready (*)
  • RCC_FLAG_PLLRDY: PLL1 clock ready
  • RCC_FLAG_PLL2RDY: PLL2 clock ready
  • RCC_FLAG_PLL3RDY: PLL3 clock ready
  • RCC_FLAG_LSERDY: LSE oscillator clock ready
  • RCC_FLAG_LSIRDY: LSI oscillator clock ready
  • RCC_FLAG_CPURST: CPU reset flag
  • RCC_FLAG_D1RST: D1 domain power switch reset flag (*)
  • RCC_FLAG_D2RST: D2 domain power switch reset flag (*)
  • RCC_FLAG_CDRST: CD domain power switch reset flag (*)
  • RCC_FLAG_BORRST: BOR reset flag
  • RCC_FLAG_PINRST: Pin reset
  • RCC_FLAG_PORRST: POR/PDR reset
  • RCC_FLAG_SFTRST: System reset from CPU reset flag
  • RCC_FLAG_BORRST: D2 domain power switch reset flag
  • RCC_FLAG_IWDG1RST: CPU Independent Watchdog reset
  • RCC_FLAG_WWDG1RST: Window Watchdog1 reset
  • RCC_FLAG_LPWR1RST: Reset due to illegal D1 DSTANDBY or CPU CSTOP flag
  • RCC_FLAG_LPWR2RST: Reset due to illegal D2 DSTANDBY flag
Return values
Thenew state of FLAG (TRUE or FALSE).

(*) Available on some STM32H7 lines only.

◆ RCC_FLAG_MASK [3/4]

#define RCC_FLAG_MASK   ((uint8_t)0x1F)
Parameters
__FLAG__specifies the flag to check. This parameter can be one of the following values:
  • RCC_FLAG_HSIRDY: HSI oscillator clock ready.
  • RCC_FLAG_HSERDY: HSE oscillator clock ready.
  • RCC_FLAG_PLLRDY: Main PLL clock ready.
  • RCC_FLAG_PLLI2SRDY: PLLI2S clock ready.
  • RCC_FLAG_LSERDY: LSE oscillator clock ready.
  • RCC_FLAG_LSIRDY: LSI oscillator clock ready.
  • RCC_FLAG_BORRST: POR/PDR or BOR reset.
  • RCC_FLAG_PINRST: Pin reset.
  • RCC_FLAG_PORRST: POR/PDR reset.
  • RCC_FLAG_SFTRST: Software reset.
  • RCC_FLAG_IWDGRST: Independent Watchdog reset.
  • RCC_FLAG_WWDGRST: Window Watchdog reset.
  • RCC_FLAG_LPWRRST: Low Power reset.
Return values
Thenew state of FLAG (TRUE or FALSE).
Parameters
__FLAG__specifies the flag to check. This parameter can be one of the following values:
  • RCC_FLAG_HSIRDY: HSI oscillator clock ready
  • RCC_FLAG_HSIDIV: HSI divider flag
  • RCC_FLAG_CSIRDY: CSI oscillator clock ready
  • RCC_FLAG_HSI48RDY: HSI48 oscillator clock ready
  • RCC_FLAG_HSERDY: HSE oscillator clock ready
  • RCC_FLAG_D1CKRDY: Domain1 clock ready (*)
  • RCC_FLAG_D2CKRDY: Domain2 clock ready (*)
  • RCC_FLAG_CPUCKRDY: CPU Domain clock ready (CPU, APB3, bus matrix1 and related memories) (*)
  • RCC_FLAG_CDCKRDY: CPU Domain clock ready (*)
  • RCC_FLAG_PLLRDY: PLL1 clock ready
  • RCC_FLAG_PLL2RDY: PLL2 clock ready
  • RCC_FLAG_PLL3RDY: PLL3 clock ready
  • RCC_FLAG_LSERDY: LSE oscillator clock ready
  • RCC_FLAG_LSIRDY: LSI oscillator clock ready
  • RCC_FLAG_CPURST: CPU reset flag
  • RCC_FLAG_D1RST: D1 domain power switch reset flag (*)
  • RCC_FLAG_D2RST: D2 domain power switch reset flag (*)
  • RCC_FLAG_CDRST: CD domain power switch reset flag (*)
  • RCC_FLAG_BORRST: BOR reset flag
  • RCC_FLAG_PINRST: Pin reset
  • RCC_FLAG_PORRST: POR/PDR reset
  • RCC_FLAG_SFTRST: System reset from CPU reset flag
  • RCC_FLAG_BORRST: D2 domain power switch reset flag
  • RCC_FLAG_IWDG1RST: CPU Independent Watchdog reset
  • RCC_FLAG_WWDG1RST: Window Watchdog1 reset
  • RCC_FLAG_LPWR1RST: Reset due to illegal D1 DSTANDBY or CPU CSTOP flag
  • RCC_FLAG_LPWR2RST: Reset due to illegal D2 DSTANDBY flag
Return values
Thenew state of FLAG (TRUE or FALSE).

(*) Available on some STM32H7 lines only.

◆ RCC_FLAG_MASK [4/4]

#define RCC_FLAG_MASK   ((uint8_t)0x1F)
Parameters
__FLAG__specifies the flag to check. This parameter can be one of the following values:
  • RCC_FLAG_HSIRDY: HSI oscillator clock ready
  • RCC_FLAG_HSIDIV: HSI divider flag
  • RCC_FLAG_CSIRDY: CSI oscillator clock ready
  • RCC_FLAG_HSI48RDY: HSI48 oscillator clock ready
  • RCC_FLAG_HSERDY: HSE oscillator clock ready
  • RCC_FLAG_D1CKRDY: Domain1 clock ready (*)
  • RCC_FLAG_D2CKRDY: Domain2 clock ready (*)
  • RCC_FLAG_CPUCKRDY: CPU Domain clock ready (CPU, APB3, bus matrix1 and related memories) (*)
  • RCC_FLAG_CDCKRDY: CPU Domain clock ready (*)
  • RCC_FLAG_PLLRDY: PLL1 clock ready
  • RCC_FLAG_PLL2RDY: PLL2 clock ready
  • RCC_FLAG_PLL3RDY: PLL3 clock ready
  • RCC_FLAG_LSERDY: LSE oscillator clock ready
  • RCC_FLAG_LSIRDY: LSI oscillator clock ready
  • RCC_FLAG_CPURST: CPU reset flag
  • RCC_FLAG_D1RST: D1 domain power switch reset flag (*)
  • RCC_FLAG_D2RST: D2 domain power switch reset flag (*)
  • RCC_FLAG_CDRST: CD domain power switch reset flag (*)
  • RCC_FLAG_BORRST: BOR reset flag
  • RCC_FLAG_PINRST: Pin reset
  • RCC_FLAG_PORRST: POR/PDR reset
  • RCC_FLAG_SFTRST: System reset from CPU reset flag
  • RCC_FLAG_BORRST: D2 domain power switch reset flag
  • RCC_FLAG_IWDG1RST: CPU Independent Watchdog reset
  • RCC_FLAG_WWDG1RST: Window Watchdog1 reset
  • RCC_FLAG_LPWR1RST: Reset due to illegal D1 DSTANDBY or CPU CSTOP flag
  • RCC_FLAG_LPWR2RST: Reset due to illegal D2 DSTANDBY flag
Return values
Thenew state of FLAG (TRUE or FALSE).

(*) Available on some STM32H7 lines only.