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

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

Defines

#define __HAL_RCC_TIM8_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM8LPEN))
#define __HAL_RCC_ADC2_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_ADC2LPEN))
#define __HAL_RCC_ADC3_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_ADC3LPEN))
#define __HAL_RCC_SPI5_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI5LPEN))
#define __HAL_RCC_SPI6_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI6LPEN))
#define __HAL_RCC_SAI1_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_SAI1LPEN))
#define __HAL_RCC_SDIO_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_SDIOLPEN))
#define __HAL_RCC_SPI4_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI4LPEN))
#define __HAL_RCC_TIM10_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM10LPEN))
#define __HAL_RCC_SDIO_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SDIOLPEN))
#define __HAL_RCC_SPI4_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI4LPEN))
#define __HAL_RCC_TIM10_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM10LPEN))
#define __HAL_RCC_TIM8_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM8LPEN))
#define __HAL_RCC_ADC2_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_ADC2LPEN))
#define __HAL_RCC_ADC3_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_ADC3LPEN))
#define __HAL_RCC_SPI5_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI5LPEN))
#define __HAL_RCC_SPI6_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI6LPEN))
#define __HAL_RCC_SAI1_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SAI1LPEN))
#define __HAL_RCC_LTDC_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_LTDCLPEN))
#define __HAL_RCC_LTDC_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_LTDCLPEN))

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 wakeup from SLEEP mode, the peripheral clock is enabled again.
By default, all peripheral clocks are enabled during SLEEP mode.

Define Documentation

#define __HAL_RCC_ADC2_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_ADC2LPEN))

Definition at line 2003 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_ADC2_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_ADC2LPEN))

Definition at line 1990 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_ADC3_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_ADC3LPEN))

Definition at line 2004 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_ADC3_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_ADC3LPEN))

Definition at line 1991 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_LTDC_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_LTDCLPEN))

Definition at line 2012 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_LTDC_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_LTDCLPEN))

Definition at line 2010 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_SAI1_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SAI1LPEN))

Definition at line 2007 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_SAI1_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_SAI1LPEN))

Definition at line 1994 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_SDIO_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SDIOLPEN))

Definition at line 1999 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_SDIO_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_SDIOLPEN))

Definition at line 1995 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_SPI4_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI4LPEN))

Definition at line 2000 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_SPI4_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI4LPEN))

Definition at line 1996 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_SPI5_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI5LPEN))

Definition at line 2005 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_SPI5_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI5LPEN))

Definition at line 1992 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_SPI6_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI6LPEN))

Definition at line 2006 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_SPI6_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI6LPEN))

Definition at line 1993 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM10_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM10LPEN))

Definition at line 2001 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM10_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM10LPEN))

Definition at line 1997 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM8_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM8LPEN))

Definition at line 2002 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM8_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM8LPEN))

Definition at line 1989 of file stm32f4xx_hal_rcc_ex.h.