Macros

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_ADC1_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_ADC1LPEN))
 
#define __HAL_RCC_ADC1_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_ADC1LPEN))
 
#define __HAL_RCC_ADC1_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_ADC1LPEN))
 
#define __HAL_RCC_ADC1_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_ADC1LPEN))
 
#define __HAL_RCC_ADC1_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_ADC1LPEN))
 
#define __HAL_RCC_ADC1_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_ADC1LPEN))
 
#define __HAL_RCC_SPI1_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI1LPEN))
 
#define __HAL_RCC_SPI1_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI1LPEN))
 
#define __HAL_RCC_SPI1_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI1LPEN))
 
#define __HAL_RCC_SPI1_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI1LPEN))
 
#define __HAL_RCC_SPI1_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI1LPEN))
 
#define __HAL_RCC_SPI1_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI1LPEN))
 
#define __HAL_RCC_SYSCFG_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SYSCFGLPEN))
 
#define __HAL_RCC_SYSCFG_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SYSCFGLPEN))
 
#define __HAL_RCC_SYSCFG_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SYSCFGLPEN))
 
#define __HAL_RCC_SYSCFG_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_SYSCFGLPEN))
 
#define __HAL_RCC_SYSCFG_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_SYSCFGLPEN))
 
#define __HAL_RCC_SYSCFG_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_SYSCFGLPEN))
 
#define __HAL_RCC_TIM11_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM11LPEN))
 
#define __HAL_RCC_TIM11_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM11LPEN))
 
#define __HAL_RCC_TIM11_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM11LPEN))
 
#define __HAL_RCC_TIM11_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM11LPEN))
 
#define __HAL_RCC_TIM11_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM11LPEN))
 
#define __HAL_RCC_TIM11_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM11LPEN))
 
#define __HAL_RCC_TIM1_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM1LPEN))
 
#define __HAL_RCC_TIM1_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM1LPEN))
 
#define __HAL_RCC_TIM1_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM1LPEN))
 
#define __HAL_RCC_TIM1_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM1LPEN))
 
#define __HAL_RCC_TIM1_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM1LPEN))
 
#define __HAL_RCC_TIM1_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM1LPEN))
 
#define __HAL_RCC_TIM9_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM9LPEN))
 
#define __HAL_RCC_TIM9_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM9LPEN))
 
#define __HAL_RCC_TIM9_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM9LPEN))
 
#define __HAL_RCC_TIM9_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM9LPEN))
 
#define __HAL_RCC_TIM9_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM9LPEN))
 
#define __HAL_RCC_TIM9_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM9LPEN))
 
#define __HAL_RCC_USART1_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_USART1LPEN))
 
#define __HAL_RCC_USART1_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_USART1LPEN))
 
#define __HAL_RCC_USART1_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_USART1LPEN))
 
#define __HAL_RCC_USART1_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_USART1LPEN))
 
#define __HAL_RCC_USART1_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_USART1LPEN))
 
#define __HAL_RCC_USART1_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_USART1LPEN))
 
#define __HAL_RCC_USART6_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_USART6LPEN))
 
#define __HAL_RCC_USART6_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_USART6LPEN))
 
#define __HAL_RCC_USART6_CLK_SLEEP_DISABLE()   (RCC->APB2LPENR &= ~(RCC_APB2LPENR_USART6LPEN))
 
#define __HAL_RCC_USART6_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_USART6LPEN))
 
#define __HAL_RCC_USART6_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_USART6LPEN))
 
#define __HAL_RCC_USART6_CLK_SLEEP_ENABLE()   (RCC->APB2LPENR |= (RCC_APB2LPENR_USART6LPEN))
 

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_ADC1_CLK_SLEEP_DISABLE [1/3]

#define __HAL_RCC_ADC1_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_ADC1LPEN))

◆ __HAL_RCC_ADC1_CLK_SLEEP_DISABLE [2/3]

#define __HAL_RCC_ADC1_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_ADC1LPEN))

◆ __HAL_RCC_ADC1_CLK_SLEEP_DISABLE [3/3]

#define __HAL_RCC_ADC1_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_ADC1LPEN))

◆ __HAL_RCC_ADC1_CLK_SLEEP_ENABLE [1/3]

#define __HAL_RCC_ADC1_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_ADC1LPEN))

◆ __HAL_RCC_ADC1_CLK_SLEEP_ENABLE [2/3]

#define __HAL_RCC_ADC1_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_ADC1LPEN))

◆ __HAL_RCC_ADC1_CLK_SLEEP_ENABLE [3/3]

#define __HAL_RCC_ADC1_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_ADC1LPEN))

◆ __HAL_RCC_SPI1_CLK_SLEEP_DISABLE [1/3]

#define __HAL_RCC_SPI1_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI1LPEN))

◆ __HAL_RCC_SPI1_CLK_SLEEP_DISABLE [2/3]

#define __HAL_RCC_SPI1_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI1LPEN))

◆ __HAL_RCC_SPI1_CLK_SLEEP_DISABLE [3/3]

#define __HAL_RCC_SPI1_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI1LPEN))

◆ __HAL_RCC_SPI1_CLK_SLEEP_ENABLE [1/3]

#define __HAL_RCC_SPI1_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI1LPEN))

◆ __HAL_RCC_SPI1_CLK_SLEEP_ENABLE [2/3]

#define __HAL_RCC_SPI1_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI1LPEN))

◆ __HAL_RCC_SPI1_CLK_SLEEP_ENABLE [3/3]

#define __HAL_RCC_SPI1_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI1LPEN))

◆ __HAL_RCC_SYSCFG_CLK_SLEEP_DISABLE [1/3]

#define __HAL_RCC_SYSCFG_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SYSCFGLPEN))

◆ __HAL_RCC_SYSCFG_CLK_SLEEP_DISABLE [2/3]

#define __HAL_RCC_SYSCFG_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SYSCFGLPEN))

◆ __HAL_RCC_SYSCFG_CLK_SLEEP_DISABLE [3/3]

#define __HAL_RCC_SYSCFG_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SYSCFGLPEN))

◆ __HAL_RCC_SYSCFG_CLK_SLEEP_ENABLE [1/3]

#define __HAL_RCC_SYSCFG_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_SYSCFGLPEN))

◆ __HAL_RCC_SYSCFG_CLK_SLEEP_ENABLE [2/3]

#define __HAL_RCC_SYSCFG_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_SYSCFGLPEN))

◆ __HAL_RCC_SYSCFG_CLK_SLEEP_ENABLE [3/3]

#define __HAL_RCC_SYSCFG_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_SYSCFGLPEN))

◆ __HAL_RCC_TIM11_CLK_SLEEP_DISABLE [1/3]

#define __HAL_RCC_TIM11_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM11LPEN))

◆ __HAL_RCC_TIM11_CLK_SLEEP_DISABLE [2/3]

#define __HAL_RCC_TIM11_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM11LPEN))

◆ __HAL_RCC_TIM11_CLK_SLEEP_DISABLE [3/3]

#define __HAL_RCC_TIM11_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM11LPEN))

◆ __HAL_RCC_TIM11_CLK_SLEEP_ENABLE [1/3]

#define __HAL_RCC_TIM11_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM11LPEN))

◆ __HAL_RCC_TIM11_CLK_SLEEP_ENABLE [2/3]

#define __HAL_RCC_TIM11_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM11LPEN))

◆ __HAL_RCC_TIM11_CLK_SLEEP_ENABLE [3/3]

#define __HAL_RCC_TIM11_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM11LPEN))

◆ __HAL_RCC_TIM1_CLK_SLEEP_DISABLE [1/3]

#define __HAL_RCC_TIM1_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM1LPEN))

◆ __HAL_RCC_TIM1_CLK_SLEEP_DISABLE [2/3]

#define __HAL_RCC_TIM1_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM1LPEN))

◆ __HAL_RCC_TIM1_CLK_SLEEP_DISABLE [3/3]

#define __HAL_RCC_TIM1_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM1LPEN))

◆ __HAL_RCC_TIM1_CLK_SLEEP_ENABLE [1/3]

#define __HAL_RCC_TIM1_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM1LPEN))

◆ __HAL_RCC_TIM1_CLK_SLEEP_ENABLE [2/3]

#define __HAL_RCC_TIM1_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM1LPEN))

◆ __HAL_RCC_TIM1_CLK_SLEEP_ENABLE [3/3]

#define __HAL_RCC_TIM1_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM1LPEN))

◆ __HAL_RCC_TIM9_CLK_SLEEP_DISABLE [1/3]

#define __HAL_RCC_TIM9_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM9LPEN))

◆ __HAL_RCC_TIM9_CLK_SLEEP_DISABLE [2/3]

#define __HAL_RCC_TIM9_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM9LPEN))

◆ __HAL_RCC_TIM9_CLK_SLEEP_DISABLE [3/3]

#define __HAL_RCC_TIM9_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM9LPEN))

◆ __HAL_RCC_TIM9_CLK_SLEEP_ENABLE [1/3]

#define __HAL_RCC_TIM9_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM9LPEN))

◆ __HAL_RCC_TIM9_CLK_SLEEP_ENABLE [2/3]

#define __HAL_RCC_TIM9_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM9LPEN))

◆ __HAL_RCC_TIM9_CLK_SLEEP_ENABLE [3/3]

#define __HAL_RCC_TIM9_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM9LPEN))

◆ __HAL_RCC_USART1_CLK_SLEEP_DISABLE [1/3]

#define __HAL_RCC_USART1_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_USART1LPEN))

◆ __HAL_RCC_USART1_CLK_SLEEP_DISABLE [2/3]

#define __HAL_RCC_USART1_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_USART1LPEN))

◆ __HAL_RCC_USART1_CLK_SLEEP_DISABLE [3/3]

#define __HAL_RCC_USART1_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_USART1LPEN))

◆ __HAL_RCC_USART1_CLK_SLEEP_ENABLE [1/3]

#define __HAL_RCC_USART1_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_USART1LPEN))

◆ __HAL_RCC_USART1_CLK_SLEEP_ENABLE [2/3]

#define __HAL_RCC_USART1_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_USART1LPEN))

◆ __HAL_RCC_USART1_CLK_SLEEP_ENABLE [3/3]

#define __HAL_RCC_USART1_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_USART1LPEN))

◆ __HAL_RCC_USART6_CLK_SLEEP_DISABLE [1/3]

#define __HAL_RCC_USART6_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_USART6LPEN))

◆ __HAL_RCC_USART6_CLK_SLEEP_DISABLE [2/3]

#define __HAL_RCC_USART6_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_USART6LPEN))

◆ __HAL_RCC_USART6_CLK_SLEEP_DISABLE [3/3]

#define __HAL_RCC_USART6_CLK_SLEEP_DISABLE ( )    (RCC->APB2LPENR &= ~(RCC_APB2LPENR_USART6LPEN))

◆ __HAL_RCC_USART6_CLK_SLEEP_ENABLE [1/3]

#define __HAL_RCC_USART6_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_USART6LPEN))

◆ __HAL_RCC_USART6_CLK_SLEEP_ENABLE [2/3]

#define __HAL_RCC_USART6_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_USART6LPEN))

◆ __HAL_RCC_USART6_CLK_SLEEP_ENABLE [3/3]

#define __HAL_RCC_USART6_CLK_SLEEP_ENABLE ( )    (RCC->APB2LPENR |= (RCC_APB2LPENR_USART6LPEN))


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:06