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

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

Defines

#define __HAL_RCC_TIM1_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM1LPEN))
#define __HAL_RCC_USART1_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_USART1LPEN))
#define __HAL_RCC_USART6_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_USART6LPEN))
#define __HAL_RCC_ADC1_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_ADC1LPEN))
#define __HAL_RCC_SPI1_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI1LPEN))
#define __HAL_RCC_SYSCFG_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_SYSCFGLPEN))
#define __HAL_RCC_TIM9_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM9LPEN))
#define __HAL_RCC_TIM11_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM11LPEN))
#define __HAL_RCC_TIM1_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM1LPEN))
#define __HAL_RCC_USART1_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_USART1LPEN))
#define __HAL_RCC_USART6_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_USART6LPEN))
#define __HAL_RCC_ADC1_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_ADC1LPEN))
#define __HAL_RCC_SPI1_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI1LPEN))
#define __HAL_RCC_SYSCFG_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SYSCFGLPEN))
#define __HAL_RCC_TIM9_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM9LPEN))
#define __HAL_RCC_TIM11_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM11LPEN))

Detailed Description

Enable or disable the APB2 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_ADC1_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_ADC1LPEN))

Definition at line 824 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_ADC1_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_ADC1LPEN))

Definition at line 815 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_SPI1_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI1LPEN))

Definition at line 825 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_SPI1_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI1LPEN))

Definition at line 816 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_SYSCFG_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SYSCFGLPEN))

Definition at line 826 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_SYSCFG_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_SYSCFGLPEN))

Definition at line 817 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_TIM11_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM11LPEN))

Definition at line 828 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_TIM11_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM11LPEN))

Definition at line 819 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_TIM1_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM1LPEN))

Definition at line 821 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_TIM1_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM1LPEN))

Definition at line 812 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_TIM9_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM9LPEN))

Definition at line 827 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_TIM9_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM9LPEN))

Definition at line 818 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_USART1_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_USART1LPEN))

Definition at line 822 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_USART1_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_USART1LPEN))

Definition at line 813 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_USART6_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_USART6LPEN))

Definition at line 823 of file stm32f4xx_hal_rcc.h.

#define __HAL_RCC_USART6_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_USART6LPEN))

Definition at line 814 of file stm32f4xx_hal_rcc.h.