Enable or disable the AHB1 peripheral clock during Low Power (Sleep) mode.
More...
Enable or disable the AHB1 peripheral clock during Low Power (Sleep) mode.
- Note
- Peripheral clock gating in SLEEP mode can be used to further reduce power consumption.
-
After wake-up from SLEEP mode, the peripheral clock is enabled again.
-
By default, all peripheral clocks are enabled during SLEEP mode.
◆ __HAL_RCC_GPIOA_CLK_SLEEP_ENABLE
#define __HAL_RCC_GPIOA_CLK_SLEEP_ENABLE |
( |
| ) |
(RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOALPEN)) |
◆ __HAL_RCC_GPIOB_CLK_SLEEP_ENABLE
#define __HAL_RCC_GPIOB_CLK_SLEEP_ENABLE |
( |
| ) |
(RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOBLPEN)) |
◆ __HAL_RCC_GPIOC_CLK_SLEEP_ENABLE
#define __HAL_RCC_GPIOC_CLK_SLEEP_ENABLE |
( |
| ) |
(RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOCLPEN)) |
◆ __HAL_RCC_GPIOH_CLK_SLEEP_ENABLE
#define __HAL_RCC_GPIOH_CLK_SLEEP_ENABLE |
( |
| ) |
(RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOHLPEN)) |
◆ __HAL_RCC_DMA1_CLK_SLEEP_ENABLE
#define __HAL_RCC_DMA1_CLK_SLEEP_ENABLE |
( |
| ) |
(RCC->AHB1LPENR |= (RCC_AHB1LPENR_DMA1LPEN)) |
◆ __HAL_RCC_DMA2_CLK_SLEEP_ENABLE
#define __HAL_RCC_DMA2_CLK_SLEEP_ENABLE |
( |
| ) |
(RCC->AHB1LPENR |= (RCC_AHB1LPENR_DMA2LPEN)) |
◆ __HAL_RCC_GPIOA_CLK_SLEEP_DISABLE
#define __HAL_RCC_GPIOA_CLK_SLEEP_DISABLE |
( |
| ) |
(RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOALPEN)) |
◆ __HAL_RCC_GPIOB_CLK_SLEEP_DISABLE
#define __HAL_RCC_GPIOB_CLK_SLEEP_DISABLE |
( |
| ) |
(RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOBLPEN)) |
◆ __HAL_RCC_GPIOC_CLK_SLEEP_DISABLE
#define __HAL_RCC_GPIOC_CLK_SLEEP_DISABLE |
( |
| ) |
(RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOCLPEN)) |
◆ __HAL_RCC_GPIOH_CLK_SLEEP_DISABLE
#define __HAL_RCC_GPIOH_CLK_SLEEP_DISABLE |
( |
| ) |
(RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOHLPEN)) |
◆ __HAL_RCC_DMA1_CLK_SLEEP_DISABLE
#define __HAL_RCC_DMA1_CLK_SLEEP_DISABLE |
( |
| ) |
(RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_DMA1LPEN)) |
◆ __HAL_RCC_DMA2_CLK_SLEEP_DISABLE
#define __HAL_RCC_DMA2_CLK_SLEEP_DISABLE |
( |
| ) |
(RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_DMA2LPEN)) |