STM32L443xx HAL User Manual
Defines
APB1 Peripheral Clock Enabled or Disabled Status
RCC Exported Macros

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

Defines

#define __HAL_RCC_TIM2_IS_CLK_ENABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_TIM2EN) != 0U)
#define __HAL_RCC_TIM6_IS_CLK_ENABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_TIM6EN) != 0U)
#define __HAL_RCC_TIM7_IS_CLK_ENABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_TIM7EN) != 0U)
#define __HAL_RCC_LCD_IS_CLK_ENABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_LCDEN) != 0U)
#define __HAL_RCC_RTCAPB_IS_CLK_ENABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_RTCAPBEN) != 0U)
#define __HAL_RCC_WWDG_IS_CLK_ENABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_WWDGEN) != 0U)
#define __HAL_RCC_SPI2_IS_CLK_ENABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_SPI2EN) != 0U)
#define __HAL_RCC_SPI3_IS_CLK_ENABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_SPI3EN) != 0U)
#define __HAL_RCC_USART2_IS_CLK_ENABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_USART2EN) != 0U)
#define __HAL_RCC_USART3_IS_CLK_ENABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_USART3EN) != 0U)
#define __HAL_RCC_I2C1_IS_CLK_ENABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_I2C1EN) != 0U)
#define __HAL_RCC_I2C2_IS_CLK_ENABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_I2C2EN) != 0U)
#define __HAL_RCC_I2C3_IS_CLK_ENABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_I2C3EN) != 0U)
#define __HAL_RCC_CRS_IS_CLK_ENABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_CRSEN) != 0U)
#define __HAL_RCC_CAN1_IS_CLK_ENABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_CAN1EN) != 0U)
#define __HAL_RCC_USB_IS_CLK_ENABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_USBFSEN) != 0U)
#define __HAL_RCC_PWR_IS_CLK_ENABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_PWREN) != 0U)
#define __HAL_RCC_DAC1_IS_CLK_ENABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_DAC1EN) != 0U)
#define __HAL_RCC_OPAMP_IS_CLK_ENABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_OPAMPEN) != 0U)
#define __HAL_RCC_LPTIM1_IS_CLK_ENABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_LPTIM1EN) != 0U)
#define __HAL_RCC_LPUART1_IS_CLK_ENABLED()   (READ_BIT(RCC->APB1ENR2, RCC_APB1ENR2_LPUART1EN) != 0U)
#define __HAL_RCC_SWPMI1_IS_CLK_ENABLED()   (READ_BIT(RCC->APB1ENR2, RCC_APB1ENR2_SWPMI1EN) != 0U)
#define __HAL_RCC_LPTIM2_IS_CLK_ENABLED()   (READ_BIT(RCC->APB1ENR2, RCC_APB1ENR2_LPTIM2EN) != 0U)
#define __HAL_RCC_TIM2_IS_CLK_DISABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_TIM2EN) == 0U)
#define __HAL_RCC_TIM6_IS_CLK_DISABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_TIM6EN) == 0U)
#define __HAL_RCC_TIM7_IS_CLK_DISABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_TIM7EN) == 0U)
#define __HAL_RCC_LCD_IS_CLK_DISABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_LCDEN) == 0U)
#define __HAL_RCC_RTCAPB_IS_CLK_DISABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_RTCAPBEN) == 0U)
#define __HAL_RCC_WWDG_IS_CLK_DISABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_WWDGEN) == 0U)
#define __HAL_RCC_SPI2_IS_CLK_DISABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_SPI2EN) == 0U)
#define __HAL_RCC_SPI3_IS_CLK_DISABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_SPI3EN) == 0U)
#define __HAL_RCC_USART2_IS_CLK_DISABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_USART2EN) == 0U)
#define __HAL_RCC_USART3_IS_CLK_DISABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_USART3EN) == 0U)
#define __HAL_RCC_I2C1_IS_CLK_DISABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_I2C1EN) == 0U)
#define __HAL_RCC_I2C2_IS_CLK_DISABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_I2C2EN) == 0U)
#define __HAL_RCC_I2C3_IS_CLK_DISABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_I2C3EN) == 0U)
#define __HAL_RCC_CRS_IS_CLK_DISABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_CRSEN) == 0U)
#define __HAL_RCC_CAN1_IS_CLK_DISABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_CAN1EN) == 0U)
#define __HAL_RCC_USB_IS_CLK_DISABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_USBFSEN) == 0U)
#define __HAL_RCC_PWR_IS_CLK_DISABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_PWREN) == 0U)
#define __HAL_RCC_DAC1_IS_CLK_DISABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_DAC1EN) == 0U)
#define __HAL_RCC_OPAMP_IS_CLK_DISABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_OPAMPEN) == 0U)
#define __HAL_RCC_LPTIM1_IS_CLK_DISABLED()   (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_LPTIM1EN) == 0U)
#define __HAL_RCC_LPUART1_IS_CLK_DISABLED()   (READ_BIT(RCC->APB1ENR2, RCC_APB1ENR2_LPUART1EN) == 0U)
#define __HAL_RCC_SWPMI1_IS_CLK_DISABLED()   (READ_BIT(RCC->APB1ENR2, RCC_APB1ENR2_SWPMI1EN) == 0U)
#define __HAL_RCC_LPTIM2_IS_CLK_DISABLED()   (READ_BIT(RCC->APB1ENR2, RCC_APB1ENR2_LPTIM2EN) == 0U)

Detailed Description

Check whether the APB1 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_CAN1_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_CAN1EN) == 0U)

Definition at line 2056 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_CAN1_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_CAN1EN) != 0U)

Definition at line 1957 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_CRS_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_CRSEN) == 0U)

Definition at line 2052 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_CRS_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_CRSEN) != 0U)

Definition at line 1953 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_DAC1_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_DAC1EN) == 0U)

Definition at line 2070 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_DAC1_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_DAC1EN) != 0U)

Definition at line 1971 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_I2C1_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_I2C1EN) == 0U)

Definition at line 2039 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_I2C1_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_I2C1EN) != 0U)

Definition at line 1940 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_I2C2_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_I2C2EN) == 0U)

Definition at line 2042 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_I2C2_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_I2C2EN) != 0U)

Definition at line 1943 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_I2C3_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_I2C3EN) == 0U)

Definition at line 2045 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_I2C3_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_I2C3EN) != 0U)

Definition at line 1946 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_LCD_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_LCDEN) == 0U)

Definition at line 2008 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_LCD_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_LCDEN) != 0U)

Definition at line 1909 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_LPTIM1_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_LPTIM1EN) == 0U)

Definition at line 2075 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_LPTIM1_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_LPTIM1EN) != 0U)

Definition at line 1976 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_LPTIM2_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB1ENR2, RCC_APB1ENR2_LPTIM2EN) == 0U)

Definition at line 2083 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_LPTIM2_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB1ENR2, RCC_APB1ENR2_LPTIM2EN) != 0U)

Definition at line 1984 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_LPUART1_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB1ENR2, RCC_APB1ENR2_LPUART1EN) == 0U)

Definition at line 2077 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_LPUART1_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB1ENR2, RCC_APB1ENR2_LPUART1EN) != 0U)

Definition at line 1978 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_OPAMP_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_OPAMPEN) == 0U)

Definition at line 2073 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_OPAMP_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_OPAMPEN) != 0U)

Definition at line 1974 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_PWR_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_PWREN) == 0U)
#define __HAL_RCC_PWR_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_PWREN) != 0U)

Definition at line 1968 of file stm32l4xx_hal_rcc.h.

Referenced by RCC_SetFlashLatencyFromMSIRange().

#define __HAL_RCC_RTCAPB_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_RTCAPBEN) == 0U)

Definition at line 2012 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_RTCAPB_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_RTCAPBEN) != 0U)

Definition at line 1913 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_SPI2_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_SPI2EN) == 0U)

Definition at line 2018 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_SPI2_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_SPI2EN) != 0U)

Definition at line 1919 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_SPI3_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_SPI3EN) == 0U)

Definition at line 2022 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_SPI3_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_SPI3EN) != 0U)

Definition at line 1923 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_SWPMI1_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB1ENR2, RCC_APB1ENR2_SWPMI1EN) == 0U)

Definition at line 2080 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_SWPMI1_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB1ENR2, RCC_APB1ENR2_SWPMI1EN) != 0U)

Definition at line 1981 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_TIM2_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_TIM2EN) == 0U)

Definition at line 1987 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_TIM2_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_TIM2EN) != 0U)

Definition at line 1888 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_TIM6_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_TIM6EN) == 0U)

Definition at line 2001 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_TIM6_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_TIM6EN) != 0U)

Definition at line 1902 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_TIM7_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_TIM7EN) == 0U)

Definition at line 2004 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_TIM7_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_TIM7EN) != 0U)

Definition at line 1905 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_USART2_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_USART2EN) == 0U)

Definition at line 2025 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_USART2_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_USART2EN) != 0U)

Definition at line 1926 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_USART3_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_USART3EN) == 0U)

Definition at line 2028 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_USART3_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_USART3EN) != 0U)

Definition at line 1929 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_USB_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_USBFSEN) == 0U)

Definition at line 2064 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_USB_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_USBFSEN) != 0U)

Definition at line 1965 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_WWDG_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_WWDGEN) == 0U)

Definition at line 2015 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_WWDG_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB1ENR1, RCC_APB1ENR1_WWDGEN) != 0U)

Definition at line 1916 of file stm32l4xx_hal_rcc.h.