STM32F479xx HAL User Manual
Defines
APB1 Peripheral Low Power Enable Disable
RCCEx Exported Macros

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

Defines

#define __HAL_RCC_TIM6_CLK_SLEEP_ENABLE()   (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM6LPEN))
#define __HAL_RCC_TIM7_CLK_SLEEP_ENABLE()   (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM7LPEN))
#define __HAL_RCC_TIM12_CLK_SLEEP_ENABLE()   (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM12LPEN))
#define __HAL_RCC_TIM13_CLK_SLEEP_ENABLE()   (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM13LPEN))
#define __HAL_RCC_TIM14_CLK_SLEEP_ENABLE()   (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM14LPEN))
#define __HAL_RCC_USART3_CLK_SLEEP_ENABLE()   (RCC->APB1LPENR |= (RCC_APB1LPENR_USART3LPEN))
#define __HAL_RCC_UART4_CLK_SLEEP_ENABLE()   (RCC->APB1LPENR |= (RCC_APB1LPENR_UART4LPEN))
#define __HAL_RCC_UART5_CLK_SLEEP_ENABLE()   (RCC->APB1LPENR |= (RCC_APB1LPENR_UART5LPEN))
#define __HAL_RCC_CAN1_CLK_SLEEP_ENABLE()   (RCC->APB1LPENR |= (RCC_APB1LPENR_CAN1LPEN))
#define __HAL_RCC_CAN2_CLK_SLEEP_ENABLE()   (RCC->APB1LPENR |= (RCC_APB1LPENR_CAN2LPEN))
#define __HAL_RCC_DAC_CLK_SLEEP_ENABLE()   (RCC->APB1LPENR |= (RCC_APB1LPENR_DACLPEN))
#define __HAL_RCC_UART7_CLK_SLEEP_ENABLE()   (RCC->APB1LPENR |= (RCC_APB1LPENR_UART7LPEN))
#define __HAL_RCC_UART8_CLK_SLEEP_ENABLE()   (RCC->APB1LPENR |= (RCC_APB1LPENR_UART8LPEN))
#define __HAL_RCC_TIM2_CLK_SLEEP_ENABLE()   (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM2LPEN))
#define __HAL_RCC_TIM3_CLK_SLEEP_ENABLE()   (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM3LPEN))
#define __HAL_RCC_TIM4_CLK_SLEEP_ENABLE()   (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM4LPEN))
#define __HAL_RCC_SPI3_CLK_SLEEP_ENABLE()   (RCC->APB1LPENR |= (RCC_APB1LPENR_SPI3LPEN))
#define __HAL_RCC_I2C3_CLK_SLEEP_ENABLE()   (RCC->APB1LPENR |= (RCC_APB1LPENR_I2C3LPEN))
#define __HAL_RCC_TIM2_CLK_SLEEP_DISABLE()   (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM2LPEN))
#define __HAL_RCC_TIM3_CLK_SLEEP_DISABLE()   (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM3LPEN))
#define __HAL_RCC_TIM4_CLK_SLEEP_DISABLE()   (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM4LPEN))
#define __HAL_RCC_SPI3_CLK_SLEEP_DISABLE()   (RCC->APB1LPENR &= ~(RCC_APB1LPENR_SPI3LPEN))
#define __HAL_RCC_I2C3_CLK_SLEEP_DISABLE()   (RCC->APB1LPENR &= ~(RCC_APB1LPENR_I2C3LPEN))
#define __HAL_RCC_TIM6_CLK_SLEEP_DISABLE()   (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM6LPEN))
#define __HAL_RCC_TIM7_CLK_SLEEP_DISABLE()   (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM7LPEN))
#define __HAL_RCC_TIM12_CLK_SLEEP_DISABLE()   (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM12LPEN))
#define __HAL_RCC_TIM13_CLK_SLEEP_DISABLE()   (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM13LPEN))
#define __HAL_RCC_TIM14_CLK_SLEEP_DISABLE()   (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM14LPEN))
#define __HAL_RCC_USART3_CLK_SLEEP_DISABLE()   (RCC->APB1LPENR &= ~(RCC_APB1LPENR_USART3LPEN))
#define __HAL_RCC_UART4_CLK_SLEEP_DISABLE()   (RCC->APB1LPENR &= ~(RCC_APB1LPENR_UART4LPEN))
#define __HAL_RCC_UART5_CLK_SLEEP_DISABLE()   (RCC->APB1LPENR &= ~(RCC_APB1LPENR_UART5LPEN))
#define __HAL_RCC_CAN1_CLK_SLEEP_DISABLE()   (RCC->APB1LPENR &= ~(RCC_APB1LPENR_CAN1LPEN))
#define __HAL_RCC_CAN2_CLK_SLEEP_DISABLE()   (RCC->APB1LPENR &= ~(RCC_APB1LPENR_CAN2LPEN))
#define __HAL_RCC_DAC_CLK_SLEEP_DISABLE()   (RCC->APB1LPENR &= ~(RCC_APB1LPENR_DACLPEN))
#define __HAL_RCC_UART7_CLK_SLEEP_DISABLE()   (RCC->APB1LPENR &= ~(RCC_APB1LPENR_UART7LPEN))
#define __HAL_RCC_UART8_CLK_SLEEP_DISABLE()   (RCC->APB1LPENR &= ~(RCC_APB1LPENR_UART8LPEN))

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.

Define Documentation

#define __HAL_RCC_CAN1_CLK_SLEEP_DISABLE ( )    (RCC->APB1LPENR &= ~(RCC_APB1LPENR_CAN1LPEN))

Definition at line 1956 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_CAN1_CLK_SLEEP_ENABLE ( )    (RCC->APB1LPENR |= (RCC_APB1LPENR_CAN1LPEN))

Definition at line 1932 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_CAN2_CLK_SLEEP_DISABLE ( )    (RCC->APB1LPENR &= ~(RCC_APB1LPENR_CAN2LPEN))

Definition at line 1957 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_CAN2_CLK_SLEEP_ENABLE ( )    (RCC->APB1LPENR |= (RCC_APB1LPENR_CAN2LPEN))

Definition at line 1933 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_DAC_CLK_SLEEP_DISABLE ( )    (RCC->APB1LPENR &= ~(RCC_APB1LPENR_DACLPEN))

Definition at line 1958 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_DAC_CLK_SLEEP_ENABLE ( )    (RCC->APB1LPENR |= (RCC_APB1LPENR_DACLPEN))

Definition at line 1934 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_I2C3_CLK_SLEEP_DISABLE ( )    (RCC->APB1LPENR &= ~(RCC_APB1LPENR_I2C3LPEN))

Definition at line 1947 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_I2C3_CLK_SLEEP_ENABLE ( )    (RCC->APB1LPENR |= (RCC_APB1LPENR_I2C3LPEN))

Definition at line 1941 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_SPI3_CLK_SLEEP_DISABLE ( )    (RCC->APB1LPENR &= ~(RCC_APB1LPENR_SPI3LPEN))

Definition at line 1946 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_SPI3_CLK_SLEEP_ENABLE ( )    (RCC->APB1LPENR |= (RCC_APB1LPENR_SPI3LPEN))

Definition at line 1940 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM12_CLK_SLEEP_DISABLE ( )    (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM12LPEN))

Definition at line 1950 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM12_CLK_SLEEP_ENABLE ( )    (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM12LPEN))

Definition at line 1926 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM13_CLK_SLEEP_DISABLE ( )    (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM13LPEN))

Definition at line 1951 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM13_CLK_SLEEP_ENABLE ( )    (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM13LPEN))

Definition at line 1927 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM14_CLK_SLEEP_DISABLE ( )    (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM14LPEN))

Definition at line 1952 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM14_CLK_SLEEP_ENABLE ( )    (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM14LPEN))

Definition at line 1928 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM2_CLK_SLEEP_DISABLE ( )    (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM2LPEN))

Definition at line 1943 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM2_CLK_SLEEP_ENABLE ( )    (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM2LPEN))

Definition at line 1937 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM3_CLK_SLEEP_DISABLE ( )    (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM3LPEN))

Definition at line 1944 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM3_CLK_SLEEP_ENABLE ( )    (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM3LPEN))

Definition at line 1938 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM4_CLK_SLEEP_DISABLE ( )    (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM4LPEN))

Definition at line 1945 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM4_CLK_SLEEP_ENABLE ( )    (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM4LPEN))

Definition at line 1939 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM6_CLK_SLEEP_DISABLE ( )    (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM6LPEN))

Definition at line 1948 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM6_CLK_SLEEP_ENABLE ( )    (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM6LPEN))

Definition at line 1924 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM7_CLK_SLEEP_DISABLE ( )    (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM7LPEN))

Definition at line 1949 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM7_CLK_SLEEP_ENABLE ( )    (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM7LPEN))

Definition at line 1925 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_UART4_CLK_SLEEP_DISABLE ( )    (RCC->APB1LPENR &= ~(RCC_APB1LPENR_UART4LPEN))

Definition at line 1954 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_UART4_CLK_SLEEP_ENABLE ( )    (RCC->APB1LPENR |= (RCC_APB1LPENR_UART4LPEN))

Definition at line 1930 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_UART5_CLK_SLEEP_DISABLE ( )    (RCC->APB1LPENR &= ~(RCC_APB1LPENR_UART5LPEN))

Definition at line 1955 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_UART5_CLK_SLEEP_ENABLE ( )    (RCC->APB1LPENR |= (RCC_APB1LPENR_UART5LPEN))

Definition at line 1931 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_UART7_CLK_SLEEP_DISABLE ( )    (RCC->APB1LPENR &= ~(RCC_APB1LPENR_UART7LPEN))

Definition at line 1959 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_UART7_CLK_SLEEP_ENABLE ( )    (RCC->APB1LPENR |= (RCC_APB1LPENR_UART7LPEN))

Definition at line 1935 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_UART8_CLK_SLEEP_DISABLE ( )    (RCC->APB1LPENR &= ~(RCC_APB1LPENR_UART8LPEN))

Definition at line 1960 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_UART8_CLK_SLEEP_ENABLE ( )    (RCC->APB1LPENR |= (RCC_APB1LPENR_UART8LPEN))

Definition at line 1936 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_USART3_CLK_SLEEP_DISABLE ( )    (RCC->APB1LPENR &= ~(RCC_APB1LPENR_USART3LPEN))

Definition at line 1953 of file stm32f4xx_hal_rcc_ex.h.

#define __HAL_RCC_USART3_CLK_SLEEP_ENABLE ( )    (RCC->APB1LPENR |= (RCC_APB1LPENR_USART3LPEN))

Definition at line 1929 of file stm32f4xx_hal_rcc_ex.h.