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

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

Defines

#define __HAL_RCC_DMA1_IS_CLK_ENABLED()   (READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_DMA1EN) != RESET)
#define __HAL_RCC_DMA2_IS_CLK_ENABLED()   (READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_DMA2EN) != RESET)
#define __HAL_RCC_FLASH_IS_CLK_ENABLED()   (READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_FLASHEN) != RESET)
#define __HAL_RCC_CRC_IS_CLK_ENABLED()   (READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CRCEN) != RESET)
#define __HAL_RCC_TSC_IS_CLK_ENABLED()   (READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_TSCEN) != RESET)
#define __HAL_RCC_DMA1_IS_CLK_DISABLED()   (READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_DMA1EN) == RESET)
#define __HAL_RCC_DMA2_IS_CLK_DISABLED()   (READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_DMA2EN) == RESET)
#define __HAL_RCC_FLASH_IS_CLK_DISABLED()   (READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_FLASHEN) == RESET)
#define __HAL_RCC_CRC_IS_CLK_DISABLED()   (READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CRCEN) == RESET)
#define __HAL_RCC_TSC_IS_CLK_DISABLED()   (READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_TSCEN) == RESET)

Detailed Description

Check whether the AHB1 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_CRC_IS_CLK_DISABLED ( )    (READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CRCEN) == RESET)

Definition at line 1619 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_CRC_IS_CLK_ENABLED ( )    (READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CRCEN) != RESET)

Definition at line 1596 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_DMA1_IS_CLK_DISABLED ( )    (READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_DMA1EN) == RESET)

Definition at line 1609 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_DMA1_IS_CLK_ENABLED ( )    (READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_DMA1EN) != RESET)

Definition at line 1586 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_DMA2_IS_CLK_DISABLED ( )    (READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_DMA2EN) == RESET)

Definition at line 1611 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_DMA2_IS_CLK_ENABLED ( )    (READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_DMA2EN) != RESET)

Definition at line 1588 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_FLASH_IS_CLK_DISABLED ( )    (READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_FLASHEN) == RESET)

Definition at line 1617 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_FLASH_IS_CLK_ENABLED ( )    (READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_FLASHEN) != RESET)

Definition at line 1594 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_TSC_IS_CLK_DISABLED ( )    (READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_TSCEN) == RESET)

Definition at line 1621 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_TSC_IS_CLK_ENABLED ( )    (READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_TSCEN) != RESET)

Definition at line 1598 of file stm32l4xx_hal_rcc.h.