STM32F103xB HAL User Manual
Defines
APB2 Peripheral Clock Enable Disable Status
RCCEx Exported Macros

Get the enable or disable status of the APB2 peripheral clock. More...

Defines

#define __HAL_RCC_ADC2_IS_CLK_ENABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_ADC2EN)) != RESET)
#define __HAL_RCC_ADC2_IS_CLK_DISABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_ADC2EN)) == RESET)
#define __HAL_RCC_GPIOE_IS_CLK_ENABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_IOPEEN)) != RESET)
#define __HAL_RCC_GPIOE_IS_CLK_DISABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_IOPEEN)) == RESET)

Detailed Description

Get the enable or disable status of the APB2 peripheral clock.

Note:
After reset, the peripheral clock (used for registers read/write access) is disabled and the application software has to enable this clock before using it.

Define Documentation

#define __HAL_RCC_ADC2_IS_CLK_DISABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_ADC2EN)) == RESET)

Definition at line 1333 of file stm32f1xx_hal_rcc_ex.h.

#define __HAL_RCC_ADC2_IS_CLK_ENABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_ADC2EN)) != RESET)

Definition at line 1332 of file stm32f1xx_hal_rcc_ex.h.

#define __HAL_RCC_GPIOE_IS_CLK_DISABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_IOPEEN)) == RESET)

Definition at line 1348 of file stm32f1xx_hal_rcc_ex.h.

#define __HAL_RCC_GPIOE_IS_CLK_ENABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_IOPEEN)) != RESET)

Definition at line 1347 of file stm32f1xx_hal_rcc_ex.h.