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_TIM1_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_USART1_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_USART6_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_ADC1_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_SPI1_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_SYSCFG_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_TIM9_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_TIM11_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_TIM1_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_USART1_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_USART6_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_ADC1_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_SPI1_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_SYSCFG_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_TIM9_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_TIM11_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 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_TIM1_CLK_SLEEP_ENABLE

#define __HAL_RCC_TIM1_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc.h>

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

Definition at line 791 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_USART1_CLK_SLEEP_ENABLE

#define __HAL_RCC_USART1_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc.h>

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

Definition at line 792 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_USART6_CLK_SLEEP_ENABLE

#define __HAL_RCC_USART6_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc.h>

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

Definition at line 793 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_ADC1_CLK_SLEEP_ENABLE

#define __HAL_RCC_ADC1_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc.h>

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

Definition at line 794 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_SPI1_CLK_SLEEP_ENABLE

#define __HAL_RCC_SPI1_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc.h>

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

Definition at line 795 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_SYSCFG_CLK_SLEEP_ENABLE

#define __HAL_RCC_SYSCFG_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc.h>

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

Definition at line 796 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_TIM9_CLK_SLEEP_ENABLE

#define __HAL_RCC_TIM9_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc.h>

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

Definition at line 797 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_TIM11_CLK_SLEEP_ENABLE

#define __HAL_RCC_TIM11_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc.h>

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

Definition at line 798 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_TIM1_CLK_SLEEP_DISABLE

#define __HAL_RCC_TIM1_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc.h>

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

Definition at line 800 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_USART1_CLK_SLEEP_DISABLE

#define __HAL_RCC_USART1_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc.h>

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

Definition at line 801 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_USART6_CLK_SLEEP_DISABLE

#define __HAL_RCC_USART6_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc.h>

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

Definition at line 802 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_ADC1_CLK_SLEEP_DISABLE

#define __HAL_RCC_ADC1_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc.h>

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

Definition at line 803 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_SPI1_CLK_SLEEP_DISABLE

#define __HAL_RCC_SPI1_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc.h>

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

Definition at line 804 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_SYSCFG_CLK_SLEEP_DISABLE

#define __HAL_RCC_SYSCFG_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc.h>

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

Definition at line 805 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_TIM9_CLK_SLEEP_DISABLE

#define __HAL_RCC_TIM9_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc.h>

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

Definition at line 806 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_TIM11_CLK_SLEEP_DISABLE

#define __HAL_RCC_TIM11_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc.h>

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

Definition at line 807 of file stm32f4xx_hal_rcc.h.