STM32F439xx 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_TIM8_IS_CLK_ENABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_TIM8EN)) != RESET)
#define __HAL_RCC_ADC2_IS_CLK_ENABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_ADC2EN)) != RESET)
#define __HAL_RCC_ADC3_IS_CLK_ENABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_ADC3EN)) != RESET)
#define __HAL_RCC_SPI5_IS_CLK_ENABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_SPI5EN)) != RESET)
#define __HAL_RCC_SPI6_IS_CLK_ENABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_SPI6EN)) != RESET)
#define __HAL_RCC_SAI1_IS_CLK_ENABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_SAI1EN)) != RESET)
#define __HAL_RCC_SDIO_IS_CLK_ENABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_SDIOEN)) != RESET)
#define __HAL_RCC_SPI4_IS_CLK_ENABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_SPI4EN)) != RESET)
#define __HAL_RCC_TIM10_IS_CLK_ENABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_TIM10EN))!= RESET)
#define __HAL_RCC_SDIO_IS_CLK_DISABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_SDIOEN)) == RESET)
#define __HAL_RCC_SPI4_IS_CLK_DISABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_SPI4EN)) == RESET)
#define __HAL_RCC_TIM10_IS_CLK_DISABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_TIM10EN))== RESET)
#define __HAL_RCC_TIM8_IS_CLK_DISABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_TIM8EN)) == RESET)
#define __HAL_RCC_ADC2_IS_CLK_DISABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_ADC2EN)) == RESET)
#define __HAL_RCC_ADC3_IS_CLK_DISABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_ADC3EN)) == RESET)
#define __HAL_RCC_SPI5_IS_CLK_DISABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_SPI5EN)) == RESET)
#define __HAL_RCC_SPI6_IS_CLK_DISABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_SPI6EN)) == RESET)
#define __HAL_RCC_SAI1_IS_CLK_DISABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_SAI1EN)) == RESET)
#define __HAL_RCC_LTDC_IS_CLK_ENABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_LTDCEN)) != RESET)
#define __HAL_RCC_LTDC_IS_CLK_DISABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_LTDCEN)) == 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 1663 of file stm32f4xx_hal_rcc_ex.h.

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

Definition at line 1650 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_ADC3_IS_CLK_DISABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_ADC3EN)) == RESET)

Definition at line 1664 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_ADC3_IS_CLK_ENABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_ADC3EN)) != RESET)

Definition at line 1651 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_LTDC_IS_CLK_DISABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_LTDCEN)) == RESET)

Definition at line 1671 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_LTDC_IS_CLK_ENABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_LTDCEN)) != RESET)

Definition at line 1670 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_SAI1_IS_CLK_DISABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_SAI1EN)) == RESET)

Definition at line 1667 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_SAI1_IS_CLK_ENABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_SAI1EN)) != RESET)

Definition at line 1654 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_SDIO_IS_CLK_DISABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_SDIOEN)) == RESET)

Definition at line 1659 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_SDIO_IS_CLK_ENABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_SDIOEN)) != RESET)

Definition at line 1655 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_SPI4_IS_CLK_DISABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_SPI4EN)) == RESET)

Definition at line 1660 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_SPI4_IS_CLK_ENABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_SPI4EN)) != RESET)

Definition at line 1656 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_SPI5_IS_CLK_DISABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_SPI5EN)) == RESET)

Definition at line 1665 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_SPI5_IS_CLK_ENABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_SPI5EN)) != RESET)

Definition at line 1652 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_SPI6_IS_CLK_DISABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_SPI6EN)) == RESET)

Definition at line 1666 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_SPI6_IS_CLK_ENABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_SPI6EN)) != RESET)

Definition at line 1653 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM10_IS_CLK_DISABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_TIM10EN))== RESET)

Definition at line 1661 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM10_IS_CLK_ENABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_TIM10EN))!= RESET)

Definition at line 1657 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM8_IS_CLK_DISABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_TIM8EN)) == RESET)

Definition at line 1662 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM8_IS_CLK_ENABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_TIM8EN)) != RESET)

Definition at line 1649 of file stm32f4xx_hal_rcc_ex.h.