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

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

Collaboration diagram for APB1 Peripheral Low Power Enable Disable:

Macros

#define __HAL_RCC_TIM5_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_WWDG_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_SPI2_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_USART2_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_I2C1_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_I2C2_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_PWR_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_TIM5_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_WWDG_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_SPI2_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_USART2_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_I2C1_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_I2C2_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_PWR_CLK_SLEEP_DISABLE()
 

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.

Macro Definition Documentation

◆ __HAL_RCC_TIM5_CLK_SLEEP_ENABLE

#define __HAL_RCC_TIM5_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc.h>

Value:
(RCC->APB1LPENR |= (RCC_APB1LPENR_TIM5LPEN))

Definition at line 764 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_WWDG_CLK_SLEEP_ENABLE

#define __HAL_RCC_WWDG_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc.h>

Value:
(RCC->APB1LPENR |= (RCC_APB1LPENR_WWDGLPEN))

Definition at line 765 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_SPI2_CLK_SLEEP_ENABLE

#define __HAL_RCC_SPI2_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc.h>

Value:
(RCC->APB1LPENR |= (RCC_APB1LPENR_SPI2LPEN))

Definition at line 766 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_USART2_CLK_SLEEP_ENABLE

#define __HAL_RCC_USART2_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc.h>

Value:
(RCC->APB1LPENR |= (RCC_APB1LPENR_USART2LPEN))

Definition at line 767 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_I2C1_CLK_SLEEP_ENABLE

#define __HAL_RCC_I2C1_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc.h>

Value:
(RCC->APB1LPENR |= (RCC_APB1LPENR_I2C1LPEN))

Definition at line 768 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_I2C2_CLK_SLEEP_ENABLE

#define __HAL_RCC_I2C2_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc.h>

Value:
(RCC->APB1LPENR |= (RCC_APB1LPENR_I2C2LPEN))

Definition at line 769 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_PWR_CLK_SLEEP_ENABLE

#define __HAL_RCC_PWR_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc.h>

Value:
(RCC->APB1LPENR |= (RCC_APB1LPENR_PWRLPEN))

Definition at line 770 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_TIM5_CLK_SLEEP_DISABLE

#define __HAL_RCC_TIM5_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc.h>

Value:
(RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM5LPEN))

Definition at line 772 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_WWDG_CLK_SLEEP_DISABLE

#define __HAL_RCC_WWDG_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc.h>

Value:
(RCC->APB1LPENR &= ~(RCC_APB1LPENR_WWDGLPEN))

Definition at line 773 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_SPI2_CLK_SLEEP_DISABLE

#define __HAL_RCC_SPI2_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc.h>

Value:
(RCC->APB1LPENR &= ~(RCC_APB1LPENR_SPI2LPEN))

Definition at line 774 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_USART2_CLK_SLEEP_DISABLE

#define __HAL_RCC_USART2_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc.h>

Value:
(RCC->APB1LPENR &= ~(RCC_APB1LPENR_USART2LPEN))

Definition at line 775 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_I2C1_CLK_SLEEP_DISABLE

#define __HAL_RCC_I2C1_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc.h>

Value:
(RCC->APB1LPENR &= ~(RCC_APB1LPENR_I2C1LPEN))

Definition at line 776 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_I2C2_CLK_SLEEP_DISABLE

#define __HAL_RCC_I2C2_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc.h>

Value:
(RCC->APB1LPENR &= ~(RCC_APB1LPENR_I2C2LPEN))

Definition at line 777 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_PWR_CLK_SLEEP_DISABLE

#define __HAL_RCC_PWR_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc.h>

Value:
(RCC->APB1LPENR &= ~(RCC_APB1LPENR_PWRLPEN))

Definition at line 778 of file stm32f4xx_hal_rcc.h.