Prusa MINI Firmware overview
AHB1 Peripheral Low Power Enable Disable

Enable or disable the AHB1 peripheral clock during Low Power (Sleep) mode. More...

Collaboration diagram for AHB1 Peripheral Low Power Enable Disable:

Macros

#define __HAL_RCC_GPIOA_CLK_SLEEP_ENABLE()   (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOALPEN))
 
#define __HAL_RCC_GPIOB_CLK_SLEEP_ENABLE()   (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOBLPEN))
 
#define __HAL_RCC_GPIOC_CLK_SLEEP_ENABLE()   (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOCLPEN))
 
#define __HAL_RCC_GPIOH_CLK_SLEEP_ENABLE()   (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOHLPEN))
 
#define __HAL_RCC_DMA1_CLK_SLEEP_ENABLE()   (RCC->AHB1LPENR |= (RCC_AHB1LPENR_DMA1LPEN))
 
#define __HAL_RCC_DMA2_CLK_SLEEP_ENABLE()   (RCC->AHB1LPENR |= (RCC_AHB1LPENR_DMA2LPEN))
 
#define __HAL_RCC_GPIOA_CLK_SLEEP_DISABLE()   (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOALPEN))
 
#define __HAL_RCC_GPIOB_CLK_SLEEP_DISABLE()   (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOBLPEN))
 
#define __HAL_RCC_GPIOC_CLK_SLEEP_DISABLE()   (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOCLPEN))
 
#define __HAL_RCC_GPIOH_CLK_SLEEP_DISABLE()   (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOHLPEN))
 
#define __HAL_RCC_DMA1_CLK_SLEEP_DISABLE()   (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_DMA1LPEN))
 
#define __HAL_RCC_DMA2_CLK_SLEEP_DISABLE()   (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_DMA2LPEN))
 

Detailed Description

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.

Macro Definition Documentation

◆ __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))