STM32F479xx HAL User Manual
Defines
APB2 Peripheral Clock Enable Disable Status
RCC Exported Macros

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

Defines

#define __HAL_RCC_TIM1_IS_CLK_ENABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_TIM1EN)) != RESET)
#define __HAL_RCC_USART1_IS_CLK_ENABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_USART1EN)) != RESET)
#define __HAL_RCC_USART6_IS_CLK_ENABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_USART6EN)) != RESET)
#define __HAL_RCC_ADC1_IS_CLK_ENABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_ADC1EN)) != RESET)
#define __HAL_RCC_SPI1_IS_CLK_ENABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_SPI1EN)) != RESET)
#define __HAL_RCC_SYSCFG_IS_CLK_ENABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_SYSCFGEN)) != RESET)
#define __HAL_RCC_TIM9_IS_CLK_ENABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_TIM9EN)) != RESET)
#define __HAL_RCC_TIM11_IS_CLK_ENABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_TIM11EN)) != RESET)
#define __HAL_RCC_TIM1_IS_CLK_DISABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_TIM1EN)) == RESET)
#define __HAL_RCC_USART1_IS_CLK_DISABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_USART1EN)) == RESET)
#define __HAL_RCC_USART6_IS_CLK_DISABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_USART6EN)) == RESET)
#define __HAL_RCC_ADC1_IS_CLK_DISABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_ADC1EN)) == RESET)
#define __HAL_RCC_SPI1_IS_CLK_DISABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_SPI1EN)) == RESET)
#define __HAL_RCC_SYSCFG_IS_CLK_DISABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_SYSCFGEN)) == RESET)
#define __HAL_RCC_TIM9_IS_CLK_DISABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_TIM9EN)) == RESET)
#define __HAL_RCC_TIM11_IS_CLK_DISABLED()   ((RCC->APB2ENR & (RCC_APB2ENR_TIM11EN)) == 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_ADC1_IS_CLK_DISABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_ADC1EN)) == RESET)

Definition at line 652 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_ADC1_IS_CLK_ENABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_ADC1EN)) != RESET)

Definition at line 643 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_SPI1_IS_CLK_DISABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_SPI1EN)) == RESET)

Definition at line 653 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_SPI1_IS_CLK_ENABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_SPI1EN)) != RESET)

Definition at line 644 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_SYSCFG_IS_CLK_DISABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_SYSCFGEN)) == RESET)

Definition at line 654 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_SYSCFG_IS_CLK_ENABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_SYSCFGEN)) != RESET)

Definition at line 645 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_TIM11_IS_CLK_DISABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_TIM11EN)) == RESET)

Definition at line 656 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_TIM11_IS_CLK_ENABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_TIM11EN)) != RESET)

Definition at line 647 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_TIM1_IS_CLK_DISABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_TIM1EN)) == RESET)

Definition at line 649 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_TIM1_IS_CLK_ENABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_TIM1EN)) != RESET)

Definition at line 640 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_TIM9_IS_CLK_DISABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_TIM9EN)) == RESET)

Definition at line 655 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_TIM9_IS_CLK_ENABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_TIM9EN)) != RESET)

Definition at line 646 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_USART1_IS_CLK_DISABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_USART1EN)) == RESET)

Definition at line 650 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_USART1_IS_CLK_ENABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_USART1EN)) != RESET)

Definition at line 641 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_USART6_IS_CLK_DISABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_USART6EN)) == RESET)

Definition at line 651 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_USART6_IS_CLK_ENABLED ( )    ((RCC->APB2ENR & (RCC_APB2ENR_USART6EN)) != RESET)

Definition at line 642 of file stm32f4xx_hal_rcc.h.