STM32L443xx HAL User Manual
Defines
AHB2 Peripheral Clock Enable Disable
RCC Exported Macros

Enable or disable the AHB2 peripheral clock. More...

Defines

#define __HAL_RCC_GPIOA_CLK_ENABLE()
#define __HAL_RCC_GPIOB_CLK_ENABLE()
#define __HAL_RCC_GPIOC_CLK_ENABLE()
#define __HAL_RCC_GPIOD_CLK_ENABLE()
#define __HAL_RCC_GPIOE_CLK_ENABLE()
#define __HAL_RCC_GPIOH_CLK_ENABLE()
#define __HAL_RCC_ADC_CLK_ENABLE()
#define __HAL_RCC_AES_CLK_ENABLE()
#define __HAL_RCC_RNG_CLK_ENABLE()
#define __HAL_RCC_GPIOA_CLK_DISABLE()   CLEAR_BIT(RCC->AHB2ENR, RCC_AHB2ENR_GPIOAEN)
#define __HAL_RCC_GPIOB_CLK_DISABLE()   CLEAR_BIT(RCC->AHB2ENR, RCC_AHB2ENR_GPIOBEN)
#define __HAL_RCC_GPIOC_CLK_DISABLE()   CLEAR_BIT(RCC->AHB2ENR, RCC_AHB2ENR_GPIOCEN)
#define __HAL_RCC_GPIOD_CLK_DISABLE()   CLEAR_BIT(RCC->AHB2ENR, RCC_AHB2ENR_GPIODEN)
#define __HAL_RCC_GPIOE_CLK_DISABLE()   CLEAR_BIT(RCC->AHB2ENR, RCC_AHB2ENR_GPIOEEN)
#define __HAL_RCC_GPIOH_CLK_DISABLE()   CLEAR_BIT(RCC->AHB2ENR, RCC_AHB2ENR_GPIOHEN)
#define __HAL_RCC_ADC_CLK_DISABLE()   CLEAR_BIT(RCC->AHB2ENR, RCC_AHB2ENR_ADCEN)
#define __HAL_RCC_AES_CLK_DISABLE()   CLEAR_BIT(RCC->AHB2ENR, RCC_AHB2ENR_AESEN);
#define __HAL_RCC_RNG_CLK_DISABLE()   CLEAR_BIT(RCC->AHB2ENR, RCC_AHB2ENR_RNGEN)

Detailed Description

Enable or disable the AHB2 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_ADC_CLK_DISABLE ( )    CLEAR_BIT(RCC->AHB2ENR, RCC_AHB2ENR_ADCEN)

Definition at line 953 of file stm32l4xx_hal_rcc.h.

Value:
do { \
                                                 __IO uint32_t tmpreg; \
                                                 SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_ADCEN); \
                                                 /* Delay after an RCC peripheral clock enabling */ \
                                                 tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_ADCEN); \
                                                 UNUSED(tmpreg); \
                                               } while(0)

Definition at line 834 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_AES_CLK_DISABLE ( )    CLEAR_BIT(RCC->AHB2ENR, RCC_AHB2ENR_AESEN);

Definition at line 964 of file stm32l4xx_hal_rcc.h.

Value:
do { \
                                                 __IO uint32_t tmpreg; \
                                                 SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_AESEN); \
                                                 /* Delay after an RCC peripheral clock enabling */ \
                                                 tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_AESEN); \
                                                 UNUSED(tmpreg); \
                                               } while(0)

Definition at line 863 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_GPIOA_CLK_DISABLE ( )    CLEAR_BIT(RCC->AHB2ENR, RCC_AHB2ENR_GPIOAEN)

Definition at line 921 of file stm32l4xx_hal_rcc.h.

Value:
do { \
                                                 __IO uint32_t tmpreg; \
                                                 SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_GPIOAEN); \
                                                 /* Delay after an RCC peripheral clock enabling */ \
                                                 tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_GPIOAEN); \
                                                 UNUSED(tmpreg); \
                                               } while(0)

Definition at line 742 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_GPIOB_CLK_DISABLE ( )    CLEAR_BIT(RCC->AHB2ENR, RCC_AHB2ENR_GPIOBEN)

Definition at line 923 of file stm32l4xx_hal_rcc.h.

Value:
do { \
                                                 __IO uint32_t tmpreg; \
                                                 SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_GPIOBEN); \
                                                 /* Delay after an RCC peripheral clock enabling */ \
                                                 tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_GPIOBEN); \
                                                 UNUSED(tmpreg); \
                                               } while(0)

Definition at line 750 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_GPIOC_CLK_DISABLE ( )    CLEAR_BIT(RCC->AHB2ENR, RCC_AHB2ENR_GPIOCEN)

Definition at line 925 of file stm32l4xx_hal_rcc.h.

Value:
do { \
                                                 __IO uint32_t tmpreg; \
                                                 SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_GPIOCEN); \
                                                 /* Delay after an RCC peripheral clock enabling */ \
                                                 tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_GPIOCEN); \
                                                 UNUSED(tmpreg); \
                                               } while(0)

Definition at line 758 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_GPIOD_CLK_DISABLE ( )    CLEAR_BIT(RCC->AHB2ENR, RCC_AHB2ENR_GPIODEN)

Definition at line 928 of file stm32l4xx_hal_rcc.h.

Value:
do { \
                                                 __IO uint32_t tmpreg; \
                                                 SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_GPIODEN); \
                                                 /* Delay after an RCC peripheral clock enabling */ \
                                                 tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_GPIODEN); \
                                                 UNUSED(tmpreg); \
                                               } while(0)

Definition at line 767 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_GPIOE_CLK_DISABLE ( )    CLEAR_BIT(RCC->AHB2ENR, RCC_AHB2ENR_GPIOEEN)

Definition at line 932 of file stm32l4xx_hal_rcc.h.

Value:
do { \
                                                 __IO uint32_t tmpreg; \
                                                 SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_GPIOEEN); \
                                                 /* Delay after an RCC peripheral clock enabling */ \
                                                 tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_GPIOEEN); \
                                                 UNUSED(tmpreg); \
                                               } while(0)

Definition at line 777 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_GPIOH_CLK_DISABLE ( )    CLEAR_BIT(RCC->AHB2ENR, RCC_AHB2ENR_GPIOHEN)

Definition at line 943 of file stm32l4xx_hal_rcc.h.

Value:
do { \
                                                 __IO uint32_t tmpreg; \
                                                 SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_GPIOHEN); \
                                                 /* Delay after an RCC peripheral clock enabling */ \
                                                 tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_GPIOHEN); \
                                                 UNUSED(tmpreg); \
                                               } while(0)

Definition at line 806 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_RNG_CLK_DISABLE ( )    CLEAR_BIT(RCC->AHB2ENR, RCC_AHB2ENR_RNGEN)

Definition at line 971 of file stm32l4xx_hal_rcc.h.

Value:
do { \
                                                 __IO uint32_t tmpreg; \
                                                 SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_RNGEN); \
                                                 /* Delay after an RCC peripheral clock enabling */ \
                                                 tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_RNGEN); \
                                                 UNUSED(tmpreg); \
                                               } while(0)

Definition at line 882 of file stm32l4xx_hal_rcc.h.