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_TIM6_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_TIM7_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_TIM12_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_TIM13_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_TIM14_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_SPDIFRX_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_USART3_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_UART4_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_UART5_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_FMPI2C1_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_CAN1_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_CAN2_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_CEC_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_DAC_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_TIM2_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_TIM3_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_TIM4_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_SPI3_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_I2C3_CLK_SLEEP_ENABLE()
 
#define __HAL_RCC_TIM2_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_TIM3_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_TIM4_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_SPI3_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_I2C3_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_TIM6_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_TIM7_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_TIM12_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_TIM13_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_TIM14_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_SPDIFRX_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_USART3_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_UART4_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_UART5_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_FMPI2C1_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_CAN1_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_CAN2_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_CEC_CLK_SLEEP_DISABLE()
 
#define __HAL_RCC_DAC_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 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_TIM6_CLK_SLEEP_ENABLE

#define __HAL_RCC_TIM6_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4684 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_TIM7_CLK_SLEEP_ENABLE

#define __HAL_RCC_TIM7_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4685 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_TIM12_CLK_SLEEP_ENABLE

#define __HAL_RCC_TIM12_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4686 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_TIM13_CLK_SLEEP_ENABLE

#define __HAL_RCC_TIM13_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4687 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_TIM14_CLK_SLEEP_ENABLE

#define __HAL_RCC_TIM14_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4688 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_SPDIFRX_CLK_SLEEP_ENABLE

#define __HAL_RCC_SPDIFRX_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4689 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_USART3_CLK_SLEEP_ENABLE

#define __HAL_RCC_USART3_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4690 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_UART4_CLK_SLEEP_ENABLE

#define __HAL_RCC_UART4_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4691 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_UART5_CLK_SLEEP_ENABLE

#define __HAL_RCC_UART5_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4692 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_FMPI2C1_CLK_SLEEP_ENABLE

#define __HAL_RCC_FMPI2C1_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4693 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_CAN1_CLK_SLEEP_ENABLE

#define __HAL_RCC_CAN1_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4694 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_CAN2_CLK_SLEEP_ENABLE

#define __HAL_RCC_CAN2_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4695 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_CEC_CLK_SLEEP_ENABLE

#define __HAL_RCC_CEC_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4696 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_DAC_CLK_SLEEP_ENABLE

#define __HAL_RCC_DAC_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4697 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_TIM2_CLK_SLEEP_ENABLE

#define __HAL_RCC_TIM2_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4698 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_TIM3_CLK_SLEEP_ENABLE

#define __HAL_RCC_TIM3_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4699 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_TIM4_CLK_SLEEP_ENABLE

#define __HAL_RCC_TIM4_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4700 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_SPI3_CLK_SLEEP_ENABLE

#define __HAL_RCC_SPI3_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4701 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_I2C3_CLK_SLEEP_ENABLE

#define __HAL_RCC_I2C3_CLK_SLEEP_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4702 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_TIM2_CLK_SLEEP_DISABLE

#define __HAL_RCC_TIM2_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4704 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_TIM3_CLK_SLEEP_DISABLE

#define __HAL_RCC_TIM3_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4705 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_TIM4_CLK_SLEEP_DISABLE

#define __HAL_RCC_TIM4_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4706 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_SPI3_CLK_SLEEP_DISABLE

#define __HAL_RCC_SPI3_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4707 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_I2C3_CLK_SLEEP_DISABLE

#define __HAL_RCC_I2C3_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4708 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_TIM6_CLK_SLEEP_DISABLE

#define __HAL_RCC_TIM6_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4709 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_TIM7_CLK_SLEEP_DISABLE

#define __HAL_RCC_TIM7_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4710 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_TIM12_CLK_SLEEP_DISABLE

#define __HAL_RCC_TIM12_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4711 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_TIM13_CLK_SLEEP_DISABLE

#define __HAL_RCC_TIM13_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4712 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_TIM14_CLK_SLEEP_DISABLE

#define __HAL_RCC_TIM14_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4713 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_SPDIFRX_CLK_SLEEP_DISABLE

#define __HAL_RCC_SPDIFRX_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4714 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_USART3_CLK_SLEEP_DISABLE

#define __HAL_RCC_USART3_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4715 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_UART4_CLK_SLEEP_DISABLE

#define __HAL_RCC_UART4_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4716 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_UART5_CLK_SLEEP_DISABLE

#define __HAL_RCC_UART5_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4717 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_FMPI2C1_CLK_SLEEP_DISABLE

#define __HAL_RCC_FMPI2C1_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4718 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_CAN1_CLK_SLEEP_DISABLE

#define __HAL_RCC_CAN1_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4719 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_CAN2_CLK_SLEEP_DISABLE

#define __HAL_RCC_CAN2_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4720 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_CEC_CLK_SLEEP_DISABLE

#define __HAL_RCC_CEC_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4721 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_DAC_CLK_SLEEP_DISABLE

#define __HAL_RCC_DAC_CLK_SLEEP_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

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

Definition at line 4722 of file stm32f4xx_hal_rcc_ex.h.