Enable or disable the AHB1 peripheral clock.
More...
Enable or disable the AHB1 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.
◆ __HAL_RCC_GPIOA_CLK_ENABLE
#define __HAL_RCC_GPIOA_CLK_ENABLE |
( |
| ) |
|
Value:do { \
__IO uint32_t tmpreg = 0x00U; \
SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOAEN);\
\
tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOAEN);\
UNUSED(tmpreg); \
} while(0U)
◆ __HAL_RCC_GPIOB_CLK_ENABLE
#define __HAL_RCC_GPIOB_CLK_ENABLE |
( |
| ) |
|
Value:do { \
__IO uint32_t tmpreg = 0x00U; \
SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOBEN);\
\
tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOBEN);\
UNUSED(tmpreg); \
} while(0U)
◆ __HAL_RCC_GPIOC_CLK_ENABLE
#define __HAL_RCC_GPIOC_CLK_ENABLE |
( |
| ) |
|
Value:do { \
__IO uint32_t tmpreg = 0x00U; \
SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOCEN);\
\
tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOCEN);\
UNUSED(tmpreg); \
} while(0U)
◆ __HAL_RCC_GPIOH_CLK_ENABLE
#define __HAL_RCC_GPIOH_CLK_ENABLE |
( |
| ) |
|
Value:do { \
__IO uint32_t tmpreg = 0x00U; \
SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOHEN);\
\
tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOHEN);\
UNUSED(tmpreg); \
} while(0U)
◆ __HAL_RCC_DMA1_CLK_ENABLE
#define __HAL_RCC_DMA1_CLK_ENABLE |
( |
| ) |
|
Value:do { \
__IO uint32_t tmpreg = 0x00U; \
SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_DMA1EN);\
\
tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_DMA1EN);\
UNUSED(tmpreg); \
} while(0U)
◆ __HAL_RCC_DMA2_CLK_ENABLE
#define __HAL_RCC_DMA2_CLK_ENABLE |
( |
| ) |
|
Value:do { \
__IO uint32_t tmpreg = 0x00U; \
SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_DMA2EN);\
\
tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_DMA2EN);\
UNUSED(tmpreg); \
} while(0U)
◆ __HAL_RCC_GPIOA_CLK_DISABLE
#define __HAL_RCC_GPIOA_CLK_DISABLE |
( |
| ) |
(RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOAEN)) |
◆ __HAL_RCC_GPIOB_CLK_DISABLE
#define __HAL_RCC_GPIOB_CLK_DISABLE |
( |
| ) |
(RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOBEN)) |
◆ __HAL_RCC_GPIOC_CLK_DISABLE
#define __HAL_RCC_GPIOC_CLK_DISABLE |
( |
| ) |
(RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOCEN)) |
◆ __HAL_RCC_GPIOH_CLK_DISABLE
#define __HAL_RCC_GPIOH_CLK_DISABLE |
( |
| ) |
(RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOHEN)) |
◆ __HAL_RCC_DMA1_CLK_DISABLE
#define __HAL_RCC_DMA1_CLK_DISABLE |
( |
| ) |
(RCC->AHB1ENR &= ~(RCC_AHB1ENR_DMA1EN)) |
◆ __HAL_RCC_DMA2_CLK_DISABLE
#define __HAL_RCC_DMA2_CLK_DISABLE |
( |
| ) |
(RCC->AHB1ENR &= ~(RCC_AHB1ENR_DMA2EN)) |