STM32F439xx HAL User Manual
Defines
APB1 Peripheral Low Power Enable Disable
RCC Exported Macros

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

Defines

#define __HAL_RCC_TIM5_CLK_SLEEP_ENABLE()   (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM5LPEN))
#define __HAL_RCC_WWDG_CLK_SLEEP_ENABLE()   (RCC->APB1LPENR |= (RCC_APB1LPENR_WWDGLPEN))
#define __HAL_RCC_SPI2_CLK_SLEEP_ENABLE()   (RCC->APB1LPENR |= (RCC_APB1LPENR_SPI2LPEN))
#define __HAL_RCC_USART2_CLK_SLEEP_ENABLE()   (RCC->APB1LPENR |= (RCC_APB1LPENR_USART2LPEN))
#define __HAL_RCC_I2C1_CLK_SLEEP_ENABLE()   (RCC->APB1LPENR |= (RCC_APB1LPENR_I2C1LPEN))
#define __HAL_RCC_I2C2_CLK_SLEEP_ENABLE()   (RCC->APB1LPENR |= (RCC_APB1LPENR_I2C2LPEN))
#define __HAL_RCC_PWR_CLK_SLEEP_ENABLE()   (RCC->APB1LPENR |= (RCC_APB1LPENR_PWRLPEN))
#define __HAL_RCC_TIM5_CLK_SLEEP_DISABLE()   (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM5LPEN))
#define __HAL_RCC_WWDG_CLK_SLEEP_DISABLE()   (RCC->APB1LPENR &= ~(RCC_APB1LPENR_WWDGLPEN))
#define __HAL_RCC_SPI2_CLK_SLEEP_DISABLE()   (RCC->APB1LPENR &= ~(RCC_APB1LPENR_SPI2LPEN))
#define __HAL_RCC_USART2_CLK_SLEEP_DISABLE()   (RCC->APB1LPENR &= ~(RCC_APB1LPENR_USART2LPEN))
#define __HAL_RCC_I2C1_CLK_SLEEP_DISABLE()   (RCC->APB1LPENR &= ~(RCC_APB1LPENR_I2C1LPEN))
#define __HAL_RCC_I2C2_CLK_SLEEP_DISABLE()   (RCC->APB1LPENR &= ~(RCC_APB1LPENR_I2C2LPEN))
#define __HAL_RCC_PWR_CLK_SLEEP_DISABLE()   (RCC->APB1LPENR &= ~(RCC_APB1LPENR_PWRLPEN))

Detailed Description

Enable or disable the APB1 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.

Define Documentation

#define __HAL_RCC_I2C1_CLK_SLEEP_DISABLE ( )    (RCC->APB1LPENR &= ~(RCC_APB1LPENR_I2C1LPEN))

Definition at line 797 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_I2C1_CLK_SLEEP_ENABLE ( )    (RCC->APB1LPENR |= (RCC_APB1LPENR_I2C1LPEN))

Definition at line 789 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_I2C2_CLK_SLEEP_DISABLE ( )    (RCC->APB1LPENR &= ~(RCC_APB1LPENR_I2C2LPEN))

Definition at line 798 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_I2C2_CLK_SLEEP_ENABLE ( )    (RCC->APB1LPENR |= (RCC_APB1LPENR_I2C2LPEN))

Definition at line 790 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_PWR_CLK_SLEEP_DISABLE ( )    (RCC->APB1LPENR &= ~(RCC_APB1LPENR_PWRLPEN))

Definition at line 799 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_PWR_CLK_SLEEP_ENABLE ( )    (RCC->APB1LPENR |= (RCC_APB1LPENR_PWRLPEN))

Definition at line 791 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_SPI2_CLK_SLEEP_DISABLE ( )    (RCC->APB1LPENR &= ~(RCC_APB1LPENR_SPI2LPEN))

Definition at line 795 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_SPI2_CLK_SLEEP_ENABLE ( )    (RCC->APB1LPENR |= (RCC_APB1LPENR_SPI2LPEN))

Definition at line 787 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_TIM5_CLK_SLEEP_DISABLE ( )    (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM5LPEN))

Definition at line 793 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_TIM5_CLK_SLEEP_ENABLE ( )    (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM5LPEN))

Definition at line 785 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_USART2_CLK_SLEEP_DISABLE ( )    (RCC->APB1LPENR &= ~(RCC_APB1LPENR_USART2LPEN))

Definition at line 796 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_USART2_CLK_SLEEP_ENABLE ( )    (RCC->APB1LPENR |= (RCC_APB1LPENR_USART2LPEN))

Definition at line 788 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_WWDG_CLK_SLEEP_DISABLE ( )    (RCC->APB1LPENR &= ~(RCC_APB1LPENR_WWDGLPEN))

Definition at line 794 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_WWDG_CLK_SLEEP_ENABLE ( )    (RCC->APB1LPENR |= (RCC_APB1LPENR_WWDGLPEN))

Definition at line 786 of file stm32f4xx_hal_rcc.h.