STM32L486xx HAL User Manual
Defines
APB2 Peripheral Clock Enabled or Disabled Status
RCC Exported Macros

Check whether the APB2 peripheral clock is enabled or not. More...

Defines

#define __HAL_RCC_SYSCFG_IS_CLK_ENABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SYSCFGEN) != RESET)
#define __HAL_RCC_FIREWALL_IS_CLK_ENABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_FWEN) != RESET)
#define __HAL_RCC_SDMMC1_IS_CLK_ENABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SDMMC1EN) != RESET)
#define __HAL_RCC_TIM1_IS_CLK_ENABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM1EN) != RESET)
#define __HAL_RCC_SPI1_IS_CLK_ENABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI1EN) != RESET)
#define __HAL_RCC_TIM8_IS_CLK_ENABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM8EN) != RESET)
#define __HAL_RCC_USART1_IS_CLK_ENABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_USART1EN) != RESET)
#define __HAL_RCC_TIM15_IS_CLK_ENABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM15EN) != RESET)
#define __HAL_RCC_TIM16_IS_CLK_ENABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM16EN) != RESET)
#define __HAL_RCC_TIM17_IS_CLK_ENABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM17EN) != RESET)
#define __HAL_RCC_SAI1_IS_CLK_ENABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SAI1EN) != RESET)
#define __HAL_RCC_SAI2_IS_CLK_ENABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SAI2EN) != RESET)
#define __HAL_RCC_DFSDM1_IS_CLK_ENABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_DFSDM1EN) != RESET)
#define __HAL_RCC_SYSCFG_IS_CLK_DISABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SYSCFGEN) == RESET)
#define __HAL_RCC_SDMMC1_IS_CLK_DISABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SDMMC1EN) == RESET)
#define __HAL_RCC_TIM1_IS_CLK_DISABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM1EN) == RESET)
#define __HAL_RCC_SPI1_IS_CLK_DISABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI1EN) == RESET)
#define __HAL_RCC_TIM8_IS_CLK_DISABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM8EN) == RESET)
#define __HAL_RCC_USART1_IS_CLK_DISABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_USART1EN) == RESET)
#define __HAL_RCC_TIM15_IS_CLK_DISABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM15EN) == RESET)
#define __HAL_RCC_TIM16_IS_CLK_DISABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM16EN) == RESET)
#define __HAL_RCC_TIM17_IS_CLK_DISABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM17EN) == RESET)
#define __HAL_RCC_SAI1_IS_CLK_DISABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SAI1EN) == RESET)
#define __HAL_RCC_SAI2_IS_CLK_DISABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SAI2EN) == RESET)
#define __HAL_RCC_DFSDM1_IS_CLK_DISABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_DFSDM1EN) == RESET)

Detailed Description

Check whether the APB2 peripheral clock is enabled or not.

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_DFSDM1_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_DFSDM1EN) == RESET)

Definition at line 2049 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_DFSDM1_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_DFSDM1EN) != RESET)

Definition at line 2006 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_FIREWALL_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_FWEN) != RESET)

Definition at line 1975 of file stm32l4xx_hal_rcc.h.

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

Definition at line 2042 of file stm32l4xx_hal_rcc.h.

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

Definition at line 1999 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_SAI2_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SAI2EN) == RESET)

Definition at line 2045 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_SAI2_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SAI2EN) != RESET)

Definition at line 2002 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_SDMMC1_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SDMMC1EN) == RESET)

Definition at line 2021 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_SDMMC1_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SDMMC1EN) != RESET)

Definition at line 1978 of file stm32l4xx_hal_rcc.h.

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

Definition at line 2026 of file stm32l4xx_hal_rcc.h.

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

Definition at line 1983 of file stm32l4xx_hal_rcc.h.

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

Definition at line 2018 of file stm32l4xx_hal_rcc.h.

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

Definition at line 1973 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_TIM15_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM15EN) == RESET)

Definition at line 2034 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_TIM15_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM15EN) != RESET)

Definition at line 1991 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_TIM16_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM16EN) == RESET)

Definition at line 2036 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_TIM16_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM16EN) != RESET)

Definition at line 1993 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_TIM17_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM17EN) == RESET)

Definition at line 2039 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_TIM17_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM17EN) != RESET)

Definition at line 1996 of file stm32l4xx_hal_rcc.h.

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

Definition at line 2024 of file stm32l4xx_hal_rcc.h.

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

Definition at line 1981 of file stm32l4xx_hal_rcc.h.

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

Definition at line 2029 of file stm32l4xx_hal_rcc.h.

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

Definition at line 1986 of file stm32l4xx_hal_rcc.h.

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

Definition at line 2032 of file stm32l4xx_hal_rcc.h.

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

Definition at line 1989 of file stm32l4xx_hal_rcc.h.