DIY Logging Volt/Ampmeter
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. More...
 
#define __HAL_RCC_DISABLE_IT(__INTERRUPT__)   (*(__IO uint8_t *) RCC_CIR_BYTE1_ADDRESS &= (uint8_t)(~(__INTERRUPT__)))
 Disable RCC interrupt. More...
 
#define __HAL_RCC_CLEAR_IT(__INTERRUPT__)   (*(__IO uint8_t *) RCC_CIR_BYTE2_ADDRESS = (__INTERRUPT__))
 Clear the RCC's interrupt pending bits. More...
 
#define __HAL_RCC_GET_IT(__INTERRUPT__)   ((RCC->CIR & (__INTERRUPT__)) == (__INTERRUPT__))
 Check the RCC's interrupt has occurred or not. More...
 
#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. More...
 
#define __HAL_RCC_GET_FLAG(__FLAG__)
 Check RCC flag is set or not. More...
 

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
<strong>INTERRUPT</strong>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.

◆ __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.

Definition at line 1106 of file stm32f1xx_hal_rcc.h.

◆ __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:

Definition at line 1061 of file stm32f1xx_hal_rcc.h.

◆ __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:

Definition at line 1043 of file stm32f1xx_hal_rcc.h.

◆ __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
Thenew state of FLAG (TRUE or FALSE).

Definition at line 1131 of file stm32f1xx_hal_rcc.h.

◆ __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
Thenew state of INTERRUPT (TRUE or FALSE).

Definition at line 1100 of file stm32f1xx_hal_rcc.h.

CR_REG_INDEX
#define CR_REG_INDEX
Definition: stm32f1xx_hal_rcc.h:1293
BDCR_REG_INDEX
#define BDCR_REG_INDEX
Definition: stm32f1xx_hal_rcc.h:1294
RCC
#define RCC
Definition: stm32f103xb.h:684
RCC_FLAG_MASK
#define RCC_FLAG_MASK
Definition: stm32f1xx_hal_rcc.h:1297