STM32F439xx 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 668 of file stm32f4xx_hal_rcc.h.

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

Definition at line 659 of file stm32f4xx_hal_rcc.h.

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

Definition at line 669 of file stm32f4xx_hal_rcc.h.

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

Definition at line 660 of file stm32f4xx_hal_rcc.h.

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

Definition at line 670 of file stm32f4xx_hal_rcc.h.

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

Definition at line 661 of file stm32f4xx_hal_rcc.h.

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

Definition at line 672 of file stm32f4xx_hal_rcc.h.

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

Definition at line 663 of file stm32f4xx_hal_rcc.h.

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

Definition at line 665 of file stm32f4xx_hal_rcc.h.

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

Definition at line 656 of file stm32f4xx_hal_rcc.h.

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

Definition at line 671 of file stm32f4xx_hal_rcc.h.

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

Definition at line 662 of file stm32f4xx_hal_rcc.h.

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

Definition at line 666 of file stm32f4xx_hal_rcc.h.

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

Definition at line 657 of file stm32f4xx_hal_rcc.h.

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

Definition at line 667 of file stm32f4xx_hal_rcc.h.

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

Definition at line 658 of file stm32f4xx_hal_rcc.h.