STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
APB2 Peripheral Low Power Enable Disable

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

Collaboration diagram for APB2 Peripheral Low Power Enable Disable:

Macros

#define __HAL_RCC_TIM8_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_ADC2_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_ADC3_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_SAI1_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_SAI2_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_SDIO_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_SPI4_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_TIM10_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_SDIO_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_SPI4_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_TIM10_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_TIM8_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_ADC2_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_ADC3_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_SAI1_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_SAI2_CLK_SLEEP_DISABLE()
 

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.

Macro Definition Documentation

◆ __HAL_RCC_TIM8_CLK_SLEEP_ENABLE

#define __HAL_RCC_TIM8_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

Value:
(RCC->APB2LPENR |= (RCC_APB2LPENR_TIM8LPEN))

Definition at line 4735 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_ADC2_CLK_SLEEP_ENABLE

#define __HAL_RCC_ADC2_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

Value:
(RCC->APB2LPENR |= (RCC_APB2LPENR_ADC2LPEN))

Definition at line 4736 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_ADC3_CLK_SLEEP_ENABLE

#define __HAL_RCC_ADC3_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

Value:
(RCC->APB2LPENR |= (RCC_APB2LPENR_ADC3LPEN))

Definition at line 4737 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_SAI1_CLK_SLEEP_ENABLE

#define __HAL_RCC_SAI1_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

Value:
(RCC->APB2LPENR |= (RCC_APB2LPENR_SAI1LPEN))

Definition at line 4738 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_SAI2_CLK_SLEEP_ENABLE

#define __HAL_RCC_SAI2_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

Value:
(RCC->APB2LPENR |= (RCC_APB2LPENR_SAI2LPEN))

Definition at line 4739 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_SDIO_CLK_SLEEP_ENABLE

#define __HAL_RCC_SDIO_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

Value:
(RCC->APB2LPENR |= (RCC_APB2LPENR_SDIOLPEN))

Definition at line 4740 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_SPI4_CLK_SLEEP_ENABLE

#define __HAL_RCC_SPI4_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

Value:
(RCC->APB2LPENR |= (RCC_APB2LPENR_SPI4LPEN))

Definition at line 4741 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_TIM10_CLK_SLEEP_ENABLE

#define __HAL_RCC_TIM10_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

Value:
(RCC->APB2LPENR |= (RCC_APB2LPENR_TIM10LPEN))

Definition at line 4742 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_SDIO_CLK_SLEEP_DISABLE

#define __HAL_RCC_SDIO_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

Value:
(RCC->APB2LPENR &= ~(RCC_APB2LPENR_SDIOLPEN))

Definition at line 4744 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_SPI4_CLK_SLEEP_DISABLE

#define __HAL_RCC_SPI4_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

Value:
(RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI4LPEN))

Definition at line 4745 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_TIM10_CLK_SLEEP_DISABLE

#define __HAL_RCC_TIM10_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

Value:
(RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM10LPEN))

Definition at line 4746 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_TIM8_CLK_SLEEP_DISABLE

#define __HAL_RCC_TIM8_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

Value:
(RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM8LPEN))

Definition at line 4747 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_ADC2_CLK_SLEEP_DISABLE

#define __HAL_RCC_ADC2_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

Value:
(RCC->APB2LPENR &= ~(RCC_APB2LPENR_ADC2LPEN))

Definition at line 4748 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_ADC3_CLK_SLEEP_DISABLE

#define __HAL_RCC_ADC3_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

Value:
(RCC->APB2LPENR &= ~(RCC_APB2LPENR_ADC3LPEN))

Definition at line 4749 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_SAI1_CLK_SLEEP_DISABLE

#define __HAL_RCC_SAI1_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

Value:
(RCC->APB2LPENR &= ~(RCC_APB2LPENR_SAI1LPEN))

Definition at line 4750 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_SAI2_CLK_SLEEP_DISABLE

#define __HAL_RCC_SAI2_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

Value:
(RCC->APB2LPENR &= ~(RCC_APB2LPENR_SAI2LPEN))

Definition at line 4751 of file stm32f4xx_hal_rcc_ex.h.