STM32L4xx_HAL_Driver  1.14.0

Functions

__STATIC_INLINE void LL_APB1_GRP1_EnableClock (uint32_t Periphs)
 Enable APB1 peripherals clock. APB1ENR1 TIM2EN LL_APB1_GRP1_EnableClock
APB1ENR1 TIM3EN LL_APB1_GRP1_EnableClock
APB1ENR1 TIM4EN LL_APB1_GRP1_EnableClock
APB1ENR1 TIM5EN LL_APB1_GRP1_EnableClock
APB1ENR1 TIM6EN LL_APB1_GRP1_EnableClock
APB1ENR1 TIM7EN LL_APB1_GRP1_EnableClock
APB1ENR1 LCDEN LL_APB1_GRP1_EnableClock
APB1ENR1 RTCAPBEN LL_APB1_GRP1_EnableClock
APB1ENR1 WWDGEN LL_APB1_GRP1_EnableClock
APB1ENR1 SPI2EN LL_APB1_GRP1_EnableClock
APB1ENR1 SPI3EN LL_APB1_GRP1_EnableClock
APB1ENR1 USART2EN LL_APB1_GRP1_EnableClock
APB1ENR1 USART3EN LL_APB1_GRP1_EnableClock
APB1ENR1 UART4EN LL_APB1_GRP1_EnableClock
APB1ENR1 UART5EN LL_APB1_GRP1_EnableClock
APB1ENR1 I2C1EN LL_APB1_GRP1_EnableClock
APB1ENR1 I2C2EN LL_APB1_GRP1_EnableClock
APB1ENR1 I2C3EN LL_APB1_GRP1_EnableClock
APB1ENR1 CRSEN LL_APB1_GRP1_EnableClock
APB1ENR1 CAN1EN LL_APB1_GRP1_EnableClock
APB1ENR1 USBFSEN LL_APB1_GRP1_EnableClock
APB1ENR1 CAN2EN LL_APB1_GRP1_EnableClock
APB1ENR1 PWREN LL_APB1_GRP1_EnableClock
APB1ENR1 DAC1EN LL_APB1_GRP1_EnableClock
APB1ENR1 OPAMPEN LL_APB1_GRP1_EnableClock
APB1ENR1 LPTIM1EN LL_APB1_GRP1_EnableClock. More...
 
__STATIC_INLINE void LL_APB1_GRP2_EnableClock (uint32_t Periphs)
 Enable APB1 peripherals clock. APB1ENR2 LPUART1EN LL_APB1_GRP2_EnableClock
APB1ENR2 I2C4EN LL_APB1_GRP2_EnableClock
APB1ENR2 SWPMI1EN LL_APB1_GRP2_EnableClock
APB1ENR2 LPTIM2EN LL_APB1_GRP2_EnableClock. More...
 
__STATIC_INLINE uint32_t LL_APB1_GRP1_IsEnabledClock (uint32_t Periphs)
 Check if APB1 peripheral clock is enabled or not APB1ENR1 TIM2EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 TIM3EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 TIM4EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 TIM5EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 TIM6EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 TIM7EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 LCDEN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 RTCAPBEN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 WWDGEN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 SPI2EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 SPI3EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 USART2EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 USART3EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 UART4EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 UART5EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 I2C1EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 I2C2EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 I2C3EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 CRSEN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 CAN1EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 USBFSEN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 CAN2EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 PWREN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 DAC1EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 OPAMPEN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 LPTIM1EN LL_APB1_GRP1_IsEnabledClock. More...
 
__STATIC_INLINE uint32_t LL_APB1_GRP2_IsEnabledClock (uint32_t Periphs)
 Check if APB1 peripheral clock is enabled or not APB1ENR2 LPUART1EN LL_APB1_GRP2_IsEnabledClock
APB1ENR2 I2C4EN LL_APB1_GRP2_IsEnabledClock
APB1ENR2 SWPMI1EN LL_APB1_GRP2_IsEnabledClock
APB1ENR2 LPTIM2EN LL_APB1_GRP2_IsEnabledClock. More...
 
__STATIC_INLINE void LL_APB1_GRP1_DisableClock (uint32_t Periphs)
 Disable APB1 peripherals clock. APB1ENR1 TIM2EN LL_APB1_GRP1_DisableClock
APB1ENR1 TIM3EN LL_APB1_GRP1_DisableClock
APB1ENR1 TIM4EN LL_APB1_GRP1_DisableClock
APB1ENR1 TIM5EN LL_APB1_GRP1_DisableClock
APB1ENR1 TIM6EN LL_APB1_GRP1_DisableClock
APB1ENR1 TIM7EN LL_APB1_GRP1_DisableClock
APB1ENR1 LCDEN LL_APB1_GRP1_DisableClock
APB1ENR1 RTCAPBEN LL_APB1_GRP1_DisableClock
APB1ENR1 WWDGEN LL_APB1_GRP1_DisableClock
APB1ENR1 SPI2EN LL_APB1_GRP1_DisableClock
APB1ENR1 SPI3EN LL_APB1_GRP1_DisableClock
APB1ENR1 USART2EN LL_APB1_GRP1_DisableClock
APB1ENR1 USART3EN LL_APB1_GRP1_DisableClock
APB1ENR1 UART4EN LL_APB1_GRP1_DisableClock
APB1ENR1 UART5EN LL_APB1_GRP1_DisableClock
APB1ENR1 I2C1EN LL_APB1_GRP1_DisableClock
APB1ENR1 I2C2EN LL_APB1_GRP1_DisableClock
APB1ENR1 I2C3EN LL_APB1_GRP1_DisableClock
APB1ENR1 CRSEN LL_APB1_GRP1_DisableClock
APB1ENR1 CAN1EN LL_APB1_GRP1_DisableClock
APB1ENR1 USBFSEN LL_APB1_GRP1_DisableClock
APB1ENR1 CAN2EN LL_APB1_GRP1_DisableClock
APB1ENR1 PWREN LL_APB1_GRP1_DisableClock
APB1ENR1 DAC1EN LL_APB1_GRP1_DisableClock
APB1ENR1 OPAMPEN LL_APB1_GRP1_DisableClock
APB1ENR1 LPTIM1EN LL_APB1_GRP1_DisableClock. More...
 
__STATIC_INLINE void LL_APB1_GRP2_DisableClock (uint32_t Periphs)
 Disable APB1 peripherals clock. APB1ENR2 LPUART1EN LL_APB1_GRP2_DisableClock
APB1ENR2 I2C4EN LL_APB1_GRP2_DisableClock
APB1ENR2 SWPMI1EN LL_APB1_GRP2_DisableClock
APB1ENR2 LPTIM2EN LL_APB1_GRP2_DisableClock. More...
 
__STATIC_INLINE void LL_APB1_GRP1_ForceReset (uint32_t Periphs)
 Force APB1 peripherals reset. APB1RSTR1 TIM2RST LL_APB1_GRP1_ForceReset
APB1RSTR1 TIM3RST LL_APB1_GRP1_ForceReset
APB1RSTR1 TIM4RST LL_APB1_GRP1_ForceReset
APB1RSTR1 TIM5RST LL_APB1_GRP1_ForceReset
APB1RSTR1 TIM6RST LL_APB1_GRP1_ForceReset
APB1RSTR1 TIM7RST LL_APB1_GRP1_ForceReset
APB1RSTR1 LCDRST LL_APB1_GRP1_ForceReset
APB1RSTR1 SPI2RST LL_APB1_GRP1_ForceReset
APB1RSTR1 SPI3RST LL_APB1_GRP1_ForceReset
APB1RSTR1 USART2RST LL_APB1_GRP1_ForceReset
APB1RSTR1 USART3RST LL_APB1_GRP1_ForceReset
APB1RSTR1 UART4RST LL_APB1_GRP1_ForceReset
APB1RSTR1 UART5RST LL_APB1_GRP1_ForceReset
APB1RSTR1 I2C1RST LL_APB1_GRP1_ForceReset
APB1RSTR1 I2C2RST LL_APB1_GRP1_ForceReset
APB1RSTR1 I2C3RST LL_APB1_GRP1_ForceReset
APB1RSTR1 CRSRST LL_APB1_GRP1_ForceReset
APB1RSTR1 CAN1RST LL_APB1_GRP1_ForceReset
APB1RSTR1 USBFSRST LL_APB1_GRP1_ForceReset
APB1RSTR1 CAN2RST LL_APB1_GRP1_ForceReset
APB1RSTR1 PWRRST LL_APB1_GRP1_ForceReset
APB1RSTR1 DAC1RST LL_APB1_GRP1_ForceReset
APB1RSTR1 OPAMPRST LL_APB1_GRP1_ForceReset
APB1RSTR1 LPTIM1RST LL_APB1_GRP1_ForceReset. More...
 
__STATIC_INLINE void LL_APB1_GRP2_ForceReset (uint32_t Periphs)
 Force APB1 peripherals reset. APB1RSTR2 LPUART1RST LL_APB1_GRP2_ForceReset
APB1RSTR2 I2C4RST LL_APB1_GRP2_ForceReset
APB1RSTR2 SWPMI1RST LL_APB1_GRP2_ForceReset
APB1RSTR2 LPTIM2RST LL_APB1_GRP2_ForceReset. More...
 
__STATIC_INLINE void LL_APB1_GRP1_ReleaseReset (uint32_t Periphs)
 Release APB1 peripherals reset. APB1RSTR1 TIM2RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 TIM3RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 TIM4RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 TIM5RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 TIM6RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 TIM7RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 LCDRST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 SPI2RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 SPI3RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 USART2RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 USART3RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 UART4RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 UART5RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 I2C1RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 I2C2RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 I2C3RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 CRSRST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 CAN1RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 USBFSRST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 CAN2RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 PWRRST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 DAC1RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 OPAMPRST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 LPTIM1RST LL_APB1_GRP1_ReleaseReset. More...
 
__STATIC_INLINE void LL_APB1_GRP2_ReleaseReset (uint32_t Periphs)
 Release APB1 peripherals reset. APB1RSTR2 LPUART1RST LL_APB1_GRP2_ReleaseReset
APB1RSTR2 I2C4RST LL_APB1_GRP2_ReleaseReset
APB1RSTR2 SWPMI1RST LL_APB1_GRP2_ReleaseReset
APB1RSTR2 LPTIM2RST LL_APB1_GRP2_ReleaseReset. More...
 
__STATIC_INLINE void LL_APB1_GRP1_EnableClockStopSleep (uint32_t Periphs)
 Enable APB1 peripheral clocks in Sleep and Stop modes APB1SMENR1 TIM2SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 TIM3SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 TIM4SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 TIM5SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 TIM6SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 TIM7SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 LCDSMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 RTCAPBSMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 WWDGSMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 SPI2SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 SPI3SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 USART2SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 USART3SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 UART4SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 UART5SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 I2C1SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 I2C2SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 I2C3SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 CRSSMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 CAN1SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 USBFSSMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 CAN2SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 PWRSMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 DAC1SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 OPAMPSMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 LPTIM1SMEN LL_APB1_GRP1_EnableClockStopSleep. More...
 
__STATIC_INLINE void LL_APB1_GRP2_EnableClockStopSleep (uint32_t Periphs)
 Enable APB1 peripheral clocks in Sleep and Stop modes APB1SMENR2 LPUART1SMEN LL_APB1_GRP2_EnableClockStopSleep
APB1SMENR2 I2C4SMEN LL_APB1_GRP2_EnableClockStopSleep
APB1SMENR2 SWPMI1SMEN LL_APB1_GRP2_EnableClockStopSleep
APB1SMENR2 LPTIM2SMEN LL_APB1_GRP2_EnableClockStopSleep. More...
 
__STATIC_INLINE void LL_APB1_GRP1_DisableClockStopSleep (uint32_t Periphs)
 Disable APB1 peripheral clocks in Sleep and Stop modes APB1SMENR1 TIM2SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 TIM3SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 TIM4SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 TIM5SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 TIM6SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 TIM7SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 LCDSMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 RTCAPBSMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 WWDGSMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 SPI2SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 SPI3SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 USART2SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 USART3SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 UART4SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 UART5SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 I2C1SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 I2C2SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 I2C3SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 CRSSMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 CAN1SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 USBFSSMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 CAN2SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 PWRSMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 DAC1SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 OPAMPSMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 LPTIM1SMEN LL_APB1_GRP1_DisableClockStopSleep. More...
 
__STATIC_INLINE void LL_APB1_GRP2_DisableClockStopSleep (uint32_t Periphs)
 Disable APB1 peripheral clocks in Sleep and Stop modes APB1SMENR2 LPUART1SMEN LL_APB1_GRP2_DisableClockStopSleep
APB1SMENR2 I2C4SMEN LL_APB1_GRP2_DisableClockStopSleep
APB1SMENR2 SWPMI1SMEN LL_APB1_GRP2_DisableClockStopSleep
APB1SMENR2 LPTIM2SMEN LL_APB1_GRP2_DisableClockStopSleep. More...
 

Detailed Description

Function Documentation

◆ LL_APB1_GRP1_DisableClock()

__STATIC_INLINE void LL_APB1_GRP1_DisableClock ( uint32_t  Periphs)

Disable APB1 peripherals clock. APB1ENR1 TIM2EN LL_APB1_GRP1_DisableClock
APB1ENR1 TIM3EN LL_APB1_GRP1_DisableClock
APB1ENR1 TIM4EN LL_APB1_GRP1_DisableClock
APB1ENR1 TIM5EN LL_APB1_GRP1_DisableClock
APB1ENR1 TIM6EN LL_APB1_GRP1_DisableClock
APB1ENR1 TIM7EN LL_APB1_GRP1_DisableClock
APB1ENR1 LCDEN LL_APB1_GRP1_DisableClock
APB1ENR1 RTCAPBEN LL_APB1_GRP1_DisableClock
APB1ENR1 WWDGEN LL_APB1_GRP1_DisableClock
APB1ENR1 SPI2EN LL_APB1_GRP1_DisableClock
APB1ENR1 SPI3EN LL_APB1_GRP1_DisableClock
APB1ENR1 USART2EN LL_APB1_GRP1_DisableClock
APB1ENR1 USART3EN LL_APB1_GRP1_DisableClock
APB1ENR1 UART4EN LL_APB1_GRP1_DisableClock
APB1ENR1 UART5EN LL_APB1_GRP1_DisableClock
APB1ENR1 I2C1EN LL_APB1_GRP1_DisableClock
APB1ENR1 I2C2EN LL_APB1_GRP1_DisableClock
APB1ENR1 I2C3EN LL_APB1_GRP1_DisableClock
APB1ENR1 CRSEN LL_APB1_GRP1_DisableClock
APB1ENR1 CAN1EN LL_APB1_GRP1_DisableClock
APB1ENR1 USBFSEN LL_APB1_GRP1_DisableClock
APB1ENR1 CAN2EN LL_APB1_GRP1_DisableClock
APB1ENR1 PWREN LL_APB1_GRP1_DisableClock
APB1ENR1 DAC1EN LL_APB1_GRP1_DisableClock
APB1ENR1 OPAMPEN LL_APB1_GRP1_DisableClock
APB1ENR1 LPTIM1EN LL_APB1_GRP1_DisableClock.

Parameters
PeriphsThis parameter can be a combination of the following values:
  • LL_APB1_GRP1_PERIPH_TIM2
  • LL_APB1_GRP1_PERIPH_TIM3 (*)
  • LL_APB1_GRP1_PERIPH_TIM4 (*)
  • LL_APB1_GRP1_PERIPH_TIM5 (*)
  • LL_APB1_GRP1_PERIPH_TIM6
  • LL_APB1_GRP1_PERIPH_TIM7
  • LL_APB1_GRP1_PERIPH_LCD (*)
  • LL_APB1_GRP1_PERIPH_RTCAPB (*)
  • LL_APB1_GRP1_PERIPH_WWDG
  • LL_APB1_GRP1_PERIPH_SPI2 (*)
  • LL_APB1_GRP1_PERIPH_SPI3
  • LL_APB1_GRP1_PERIPH_USART2
  • LL_APB1_GRP1_PERIPH_USART3 (*)
  • LL_APB1_GRP1_PERIPH_UART4 (*)
  • LL_APB1_GRP1_PERIPH_UART5 (*)
  • LL_APB1_GRP1_PERIPH_I2C1
  • LL_APB1_GRP1_PERIPH_I2C2 (*)
  • LL_APB1_GRP1_PERIPH_I2C3
  • LL_APB1_GRP1_PERIPH_CRS (*)
  • LL_APB1_GRP1_PERIPH_CAN1
  • LL_APB1_GRP1_PERIPH_CAN2 (*)
  • LL_APB1_GRP1_PERIPH_USB (*)
  • LL_APB1_GRP1_PERIPH_PWR
  • LL_APB1_GRP1_PERIPH_DAC1
  • LL_APB1_GRP1_PERIPH_OPAMP
  • LL_APB1_GRP1_PERIPH_LPTIM1
(*) value not defined in all devices.
Return values
None

Definition at line 1262 of file stm32l4xx_ll_bus.h.

1263 {
1264  CLEAR_BIT(RCC->APB1ENR1, Periphs);
1265 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_APB1_GRP1_DisableClockStopSleep()

__STATIC_INLINE void LL_APB1_GRP1_DisableClockStopSleep ( uint32_t  Periphs)

Disable APB1 peripheral clocks in Sleep and Stop modes APB1SMENR1 TIM2SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 TIM3SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 TIM4SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 TIM5SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 TIM6SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 TIM7SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 LCDSMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 RTCAPBSMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 WWDGSMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 SPI2SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 SPI3SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 USART2SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 USART3SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 UART4SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 UART5SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 I2C1SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 I2C2SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 I2C3SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 CRSSMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 CAN1SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 USBFSSMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 CAN2SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 PWRSMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 DAC1SMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 OPAMPSMEN LL_APB1_GRP1_DisableClockStopSleep
APB1SMENR1 LPTIM1SMEN LL_APB1_GRP1_DisableClockStopSleep.

Parameters
PeriphsThis parameter can be a combination of the following values:
  • LL_APB1_GRP1_PERIPH_TIM2
  • LL_APB1_GRP1_PERIPH_TIM3 (*)
  • LL_APB1_GRP1_PERIPH_TIM4 (*)
  • LL_APB1_GRP1_PERIPH_TIM5 (*)
  • LL_APB1_GRP1_PERIPH_TIM6
  • LL_APB1_GRP1_PERIPH_TIM7
  • LL_APB1_GRP1_PERIPH_LCD (*)
  • LL_APB1_GRP1_PERIPH_RTCAPB (*)
  • LL_APB1_GRP1_PERIPH_WWDG
  • LL_APB1_GRP1_PERIPH_SPI2 (*)
  • LL_APB1_GRP1_PERIPH_SPI3
  • LL_APB1_GRP1_PERIPH_USART2
  • LL_APB1_GRP1_PERIPH_USART3 (*)
  • LL_APB1_GRP1_PERIPH_UART4 (*)
  • LL_APB1_GRP1_PERIPH_UART5 (*)
  • LL_APB1_GRP1_PERIPH_I2C1
  • LL_APB1_GRP1_PERIPH_I2C2 (*)
  • LL_APB1_GRP1_PERIPH_I2C3
  • LL_APB1_GRP1_PERIPH_CRS (*)
  • LL_APB1_GRP1_PERIPH_CAN1
  • LL_APB1_GRP1_PERIPH_CAN2 (*)
  • LL_APB1_GRP1_PERIPH_USB (*)
  • LL_APB1_GRP1_PERIPH_PWR
  • LL_APB1_GRP1_PERIPH_DAC1
  • LL_APB1_GRP1_PERIPH_OPAMP
  • LL_APB1_GRP1_PERIPH_LPTIM1
(*) value not defined in all devices.
Return values
None

Definition at line 1602 of file stm32l4xx_ll_bus.h.

1603 {
1604  CLEAR_BIT(RCC->APB1SMENR1, Periphs);
1605 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_APB1_GRP1_EnableClock()

__STATIC_INLINE void LL_APB1_GRP1_EnableClock ( uint32_t  Periphs)

Enable APB1 peripherals clock. APB1ENR1 TIM2EN LL_APB1_GRP1_EnableClock
APB1ENR1 TIM3EN LL_APB1_GRP1_EnableClock
APB1ENR1 TIM4EN LL_APB1_GRP1_EnableClock
APB1ENR1 TIM5EN LL_APB1_GRP1_EnableClock
APB1ENR1 TIM6EN LL_APB1_GRP1_EnableClock
APB1ENR1 TIM7EN LL_APB1_GRP1_EnableClock
APB1ENR1 LCDEN LL_APB1_GRP1_EnableClock
APB1ENR1 RTCAPBEN LL_APB1_GRP1_EnableClock
APB1ENR1 WWDGEN LL_APB1_GRP1_EnableClock
APB1ENR1 SPI2EN LL_APB1_GRP1_EnableClock
APB1ENR1 SPI3EN LL_APB1_GRP1_EnableClock
APB1ENR1 USART2EN LL_APB1_GRP1_EnableClock
APB1ENR1 USART3EN LL_APB1_GRP1_EnableClock
APB1ENR1 UART4EN LL_APB1_GRP1_EnableClock
APB1ENR1 UART5EN LL_APB1_GRP1_EnableClock
APB1ENR1 I2C1EN LL_APB1_GRP1_EnableClock
APB1ENR1 I2C2EN LL_APB1_GRP1_EnableClock
APB1ENR1 I2C3EN LL_APB1_GRP1_EnableClock
APB1ENR1 CRSEN LL_APB1_GRP1_EnableClock
APB1ENR1 CAN1EN LL_APB1_GRP1_EnableClock
APB1ENR1 USBFSEN LL_APB1_GRP1_EnableClock
APB1ENR1 CAN2EN LL_APB1_GRP1_EnableClock
APB1ENR1 PWREN LL_APB1_GRP1_EnableClock
APB1ENR1 DAC1EN LL_APB1_GRP1_EnableClock
APB1ENR1 OPAMPEN LL_APB1_GRP1_EnableClock
APB1ENR1 LPTIM1EN LL_APB1_GRP1_EnableClock.

Parameters
PeriphsThis parameter can be a combination of the following values:
  • LL_APB1_GRP1_PERIPH_TIM2
  • LL_APB1_GRP1_PERIPH_TIM3 (*)
  • LL_APB1_GRP1_PERIPH_TIM4 (*)
  • LL_APB1_GRP1_PERIPH_TIM5 (*)
  • LL_APB1_GRP1_PERIPH_TIM6
  • LL_APB1_GRP1_PERIPH_TIM7
  • LL_APB1_GRP1_PERIPH_LCD (*)
  • LL_APB1_GRP1_PERIPH_RTCAPB (*)
  • LL_APB1_GRP1_PERIPH_WWDG
  • LL_APB1_GRP1_PERIPH_SPI2 (*)
  • LL_APB1_GRP1_PERIPH_SPI3
  • LL_APB1_GRP1_PERIPH_USART2
  • LL_APB1_GRP1_PERIPH_USART3 (*)
  • LL_APB1_GRP1_PERIPH_UART4 (*)
  • LL_APB1_GRP1_PERIPH_UART5 (*)
  • LL_APB1_GRP1_PERIPH_I2C1
  • LL_APB1_GRP1_PERIPH_I2C2 (*)
  • LL_APB1_GRP1_PERIPH_I2C3
  • LL_APB1_GRP1_PERIPH_CRS (*)
  • LL_APB1_GRP1_PERIPH_CAN1
  • LL_APB1_GRP1_PERIPH_CAN2 (*)
  • LL_APB1_GRP1_PERIPH_USB (*)
  • LL_APB1_GRP1_PERIPH_PWR
  • LL_APB1_GRP1_PERIPH_DAC1
  • LL_APB1_GRP1_PERIPH_OPAMP
  • LL_APB1_GRP1_PERIPH_LPTIM1
(*) value not defined in all devices.
Return values
None

Definition at line 1086 of file stm32l4xx_ll_bus.h.

1087 {
1088  __IO uint32_t tmpreg;
1089  SET_BIT(RCC->APB1ENR1, Periphs);
1090  /* Delay after an RCC peripheral clock enabling */
1091  tmpreg = READ_BIT(RCC->APB1ENR1, Periphs);
1092  (void)tmpreg;
1093 }

◆ LL_APB1_GRP1_EnableClockStopSleep()

__STATIC_INLINE void LL_APB1_GRP1_EnableClockStopSleep ( uint32_t  Periphs)

Enable APB1 peripheral clocks in Sleep and Stop modes APB1SMENR1 TIM2SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 TIM3SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 TIM4SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 TIM5SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 TIM6SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 TIM7SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 LCDSMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 RTCAPBSMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 WWDGSMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 SPI2SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 SPI3SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 USART2SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 USART3SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 UART4SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 UART5SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 I2C1SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 I2C2SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 I2C3SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 CRSSMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 CAN1SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 USBFSSMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 CAN2SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 PWRSMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 DAC1SMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 OPAMPSMEN LL_APB1_GRP1_EnableClockStopSleep
APB1SMENR1 LPTIM1SMEN LL_APB1_GRP1_EnableClockStopSleep.

Parameters
PeriphsThis parameter can be a combination of the following values:
  • LL_APB1_GRP1_PERIPH_TIM2
  • LL_APB1_GRP1_PERIPH_TIM3 (*)
  • LL_APB1_GRP1_PERIPH_TIM4 (*)
  • LL_APB1_GRP1_PERIPH_TIM5 (*)
  • LL_APB1_GRP1_PERIPH_TIM6
  • LL_APB1_GRP1_PERIPH_TIM7
  • LL_APB1_GRP1_PERIPH_LCD (*)
  • LL_APB1_GRP1_PERIPH_RTCAPB (*)
  • LL_APB1_GRP1_PERIPH_WWDG
  • LL_APB1_GRP1_PERIPH_SPI2 (*)
  • LL_APB1_GRP1_PERIPH_SPI3
  • LL_APB1_GRP1_PERIPH_USART2
  • LL_APB1_GRP1_PERIPH_USART3 (*)
  • LL_APB1_GRP1_PERIPH_UART4 (*)
  • LL_APB1_GRP1_PERIPH_UART5 (*)
  • LL_APB1_GRP1_PERIPH_I2C1
  • LL_APB1_GRP1_PERIPH_I2C2 (*)
  • LL_APB1_GRP1_PERIPH_I2C3
  • LL_APB1_GRP1_PERIPH_CRS (*)
  • LL_APB1_GRP1_PERIPH_CAN1
  • LL_APB1_GRP1_PERIPH_CAN2 (*)
  • LL_APB1_GRP1_PERIPH_USB (*)
  • LL_APB1_GRP1_PERIPH_PWR
  • LL_APB1_GRP1_PERIPH_DAC1
  • LL_APB1_GRP1_PERIPH_OPAMP
  • LL_APB1_GRP1_PERIPH_LPTIM1
(*) value not defined in all devices.
Return values
None

Definition at line 1510 of file stm32l4xx_ll_bus.h.

1511 {
1512  __IO uint32_t tmpreg;
1513  SET_BIT(RCC->APB1SMENR1, Periphs);
1514  /* Delay after an RCC peripheral clock enabling */
1515  tmpreg = READ_BIT(RCC->APB1SMENR1, Periphs);
1516  (void)tmpreg;
1517 }

◆ LL_APB1_GRP1_ForceReset()

__STATIC_INLINE void LL_APB1_GRP1_ForceReset ( uint32_t  Periphs)

Force APB1 peripherals reset. APB1RSTR1 TIM2RST LL_APB1_GRP1_ForceReset
APB1RSTR1 TIM3RST LL_APB1_GRP1_ForceReset
APB1RSTR1 TIM4RST LL_APB1_GRP1_ForceReset
APB1RSTR1 TIM5RST LL_APB1_GRP1_ForceReset
APB1RSTR1 TIM6RST LL_APB1_GRP1_ForceReset
APB1RSTR1 TIM7RST LL_APB1_GRP1_ForceReset
APB1RSTR1 LCDRST LL_APB1_GRP1_ForceReset
APB1RSTR1 SPI2RST LL_APB1_GRP1_ForceReset
APB1RSTR1 SPI3RST LL_APB1_GRP1_ForceReset
APB1RSTR1 USART2RST LL_APB1_GRP1_ForceReset
APB1RSTR1 USART3RST LL_APB1_GRP1_ForceReset
APB1RSTR1 UART4RST LL_APB1_GRP1_ForceReset
APB1RSTR1 UART5RST LL_APB1_GRP1_ForceReset
APB1RSTR1 I2C1RST LL_APB1_GRP1_ForceReset
APB1RSTR1 I2C2RST LL_APB1_GRP1_ForceReset
APB1RSTR1 I2C3RST LL_APB1_GRP1_ForceReset
APB1RSTR1 CRSRST LL_APB1_GRP1_ForceReset
APB1RSTR1 CAN1RST LL_APB1_GRP1_ForceReset
APB1RSTR1 USBFSRST LL_APB1_GRP1_ForceReset
APB1RSTR1 CAN2RST LL_APB1_GRP1_ForceReset
APB1RSTR1 PWRRST LL_APB1_GRP1_ForceReset
APB1RSTR1 DAC1RST LL_APB1_GRP1_ForceReset
APB1RSTR1 OPAMPRST LL_APB1_GRP1_ForceReset
APB1RSTR1 LPTIM1RST LL_APB1_GRP1_ForceReset.

Parameters
PeriphsThis parameter can be a combination of the following values:
  • LL_APB1_GRP1_PERIPH_ALL
  • LL_APB1_GRP1_PERIPH_TIM2
  • LL_APB1_GRP1_PERIPH_TIM3 (*)
  • LL_APB1_GRP1_PERIPH_TIM4 (*)
  • LL_APB1_GRP1_PERIPH_TIM5 (*)
  • LL_APB1_GRP1_PERIPH_TIM6
  • LL_APB1_GRP1_PERIPH_TIM7
  • LL_APB1_GRP1_PERIPH_LCD (*)
  • LL_APB1_GRP1_PERIPH_SPI2 (*)
  • LL_APB1_GRP1_PERIPH_SPI3
  • LL_APB1_GRP1_PERIPH_USART2
  • LL_APB1_GRP1_PERIPH_USART3 (*)
  • LL_APB1_GRP1_PERIPH_UART4 (*)
  • LL_APB1_GRP1_PERIPH_UART5 (*)
  • LL_APB1_GRP1_PERIPH_I2C1
  • LL_APB1_GRP1_PERIPH_I2C2 (*)
  • LL_APB1_GRP1_PERIPH_I2C3
  • LL_APB1_GRP1_PERIPH_CRS (*)
  • LL_APB1_GRP1_PERIPH_CAN1
  • LL_APB1_GRP1_PERIPH_CAN2 (*)
  • LL_APB1_GRP1_PERIPH_USB (*)
  • LL_APB1_GRP1_PERIPH_PWR
  • LL_APB1_GRP1_PERIPH_DAC1
  • LL_APB1_GRP1_PERIPH_OPAMP
  • LL_APB1_GRP1_PERIPH_LPTIM1
(*) value not defined in all devices.
Return values
None

Definition at line 1343 of file stm32l4xx_ll_bus.h.

1344 {
1345  SET_BIT(RCC->APB1RSTR1, Periphs);
1346 }

◆ LL_APB1_GRP1_IsEnabledClock()

__STATIC_INLINE uint32_t LL_APB1_GRP1_IsEnabledClock ( uint32_t  Periphs)

Check if APB1 peripheral clock is enabled or not APB1ENR1 TIM2EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 TIM3EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 TIM4EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 TIM5EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 TIM6EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 TIM7EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 LCDEN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 RTCAPBEN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 WWDGEN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 SPI2EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 SPI3EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 USART2EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 USART3EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 UART4EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 UART5EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 I2C1EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 I2C2EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 I2C3EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 CRSEN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 CAN1EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 USBFSEN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 CAN2EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 PWREN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 DAC1EN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 OPAMPEN LL_APB1_GRP1_IsEnabledClock
APB1ENR1 LPTIM1EN LL_APB1_GRP1_IsEnabledClock.

Parameters
PeriphsThis parameter can be a combination of the following values:
  • LL_APB1_GRP1_PERIPH_TIM2
  • LL_APB1_GRP1_PERIPH_TIM3 (*)
  • LL_APB1_GRP1_PERIPH_TIM4 (*)
  • LL_APB1_GRP1_PERIPH_TIM5 (*)
  • LL_APB1_GRP1_PERIPH_TIM6
  • LL_APB1_GRP1_PERIPH_TIM7
  • LL_APB1_GRP1_PERIPH_LCD (*)
  • LL_APB1_GRP1_PERIPH_RTCAPB (*)
  • LL_APB1_GRP1_PERIPH_WWDG
  • LL_APB1_GRP1_PERIPH_SPI2 (*)
  • LL_APB1_GRP1_PERIPH_SPI3
  • LL_APB1_GRP1_PERIPH_USART2
  • LL_APB1_GRP1_PERIPH_USART3 (*)
  • LL_APB1_GRP1_PERIPH_UART4 (*)
  • LL_APB1_GRP1_PERIPH_UART5 (*)
  • LL_APB1_GRP1_PERIPH_I2C1
  • LL_APB1_GRP1_PERIPH_I2C2 (*)
  • LL_APB1_GRP1_PERIPH_I2C3
  • LL_APB1_GRP1_PERIPH_CRS (*)
  • LL_APB1_GRP1_PERIPH_CAN1
  • LL_APB1_GRP1_PERIPH_CAN2 (*)
  • LL_APB1_GRP1_PERIPH_USB (*)
  • LL_APB1_GRP1_PERIPH_PWR
  • LL_APB1_GRP1_PERIPH_DAC1
  • LL_APB1_GRP1_PERIPH_OPAMP
  • LL_APB1_GRP1_PERIPH_LPTIM1
(*) value not defined in all devices.
Return values
Stateof Periphs (1 or 0).

Definition at line 1178 of file stm32l4xx_ll_bus.h.

1179 {
1180  return ((READ_BIT(RCC->APB1ENR1, Periphs) == Periphs) ? 1UL : 0UL);
1181 }

◆ LL_APB1_GRP1_ReleaseReset()

__STATIC_INLINE void LL_APB1_GRP1_ReleaseReset ( uint32_t  Periphs)

Release APB1 peripherals reset. APB1RSTR1 TIM2RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 TIM3RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 TIM4RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 TIM5RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 TIM6RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 TIM7RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 LCDRST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 SPI2RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 SPI3RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 USART2RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 USART3RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 UART4RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 UART5RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 I2C1RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 I2C2RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 I2C3RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 CRSRST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 CAN1RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 USBFSRST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 CAN2RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 PWRRST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 DAC1RST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 OPAMPRST LL_APB1_GRP1_ReleaseReset
APB1RSTR1 LPTIM1RST LL_APB1_GRP1_ReleaseReset.

Parameters
PeriphsThis parameter can be a combination of the following values:
  • LL_APB1_GRP1_PERIPH_ALL
  • LL_APB1_GRP1_PERIPH_TIM2
  • LL_APB1_GRP1_PERIPH_TIM3 (*)
  • LL_APB1_GRP1_PERIPH_TIM4 (*)
  • LL_APB1_GRP1_PERIPH_TIM5 (*)
  • LL_APB1_GRP1_PERIPH_TIM6
  • LL_APB1_GRP1_PERIPH_TIM7
  • LL_APB1_GRP1_PERIPH_LCD (*)
  • LL_APB1_GRP1_PERIPH_SPI2 (*)
  • LL_APB1_GRP1_PERIPH_SPI3
  • LL_APB1_GRP1_PERIPH_USART2
  • LL_APB1_GRP1_PERIPH_USART3 (*)
  • LL_APB1_GRP1_PERIPH_UART4 (*)
  • LL_APB1_GRP1_PERIPH_UART5 (*)
  • LL_APB1_GRP1_PERIPH_I2C1
  • LL_APB1_GRP1_PERIPH_I2C2 (*)
  • LL_APB1_GRP1_PERIPH_I2C3
  • LL_APB1_GRP1_PERIPH_CRS (*)
  • LL_APB1_GRP1_PERIPH_CAN1
  • LL_APB1_GRP1_PERIPH_CAN2 (*)
  • LL_APB1_GRP1_PERIPH_USB (*)
  • LL_APB1_GRP1_PERIPH_PWR
  • LL_APB1_GRP1_PERIPH_DAC1
  • LL_APB1_GRP1_PERIPH_OPAMP
  • LL_APB1_GRP1_PERIPH_LPTIM1
(*) value not defined in all devices.
Return values
None

Definition at line 1425 of file stm32l4xx_ll_bus.h.

1426 {
1427  CLEAR_BIT(RCC->APB1RSTR1, Periphs);
1428 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_APB1_GRP2_DisableClock()

__STATIC_INLINE void LL_APB1_GRP2_DisableClock ( uint32_t  Periphs)

Disable APB1 peripherals clock. APB1ENR2 LPUART1EN LL_APB1_GRP2_DisableClock
APB1ENR2 I2C4EN LL_APB1_GRP2_DisableClock
APB1ENR2 SWPMI1EN LL_APB1_GRP2_DisableClock
APB1ENR2 LPTIM2EN LL_APB1_GRP2_DisableClock.

Parameters
PeriphsThis parameter can be a combination of the following values:
  • LL_APB1_GRP2_PERIPH_LPUART1
  • LL_APB1_GRP2_PERIPH_I2C4 (*)
  • LL_APB1_GRP2_PERIPH_SWPMI1 (*)
  • LL_APB1_GRP2_PERIPH_LPTIM2
(*) value not defined in all devices.
Return values
None

Definition at line 1282 of file stm32l4xx_ll_bus.h.

1283 {
1284  CLEAR_BIT(RCC->APB1ENR2, Periphs);
1285 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_APB1_GRP2_DisableClockStopSleep()

__STATIC_INLINE void LL_APB1_GRP2_DisableClockStopSleep ( uint32_t  Periphs)

Disable APB1 peripheral clocks in Sleep and Stop modes APB1SMENR2 LPUART1SMEN LL_APB1_GRP2_DisableClockStopSleep
APB1SMENR2 I2C4SMEN LL_APB1_GRP2_DisableClockStopSleep
APB1SMENR2 SWPMI1SMEN LL_APB1_GRP2_DisableClockStopSleep
APB1SMENR2 LPTIM2SMEN LL_APB1_GRP2_DisableClockStopSleep.

Parameters
PeriphsThis parameter can be a combination of the following values:
  • LL_APB1_GRP2_PERIPH_LPUART1
  • LL_APB1_GRP2_PERIPH_I2C4 (*)
  • LL_APB1_GRP2_PERIPH_SWPMI1 (*)
  • LL_APB1_GRP2_PERIPH_LPTIM2
(*) value not defined in all devices.
Return values
None

Definition at line 1622 of file stm32l4xx_ll_bus.h.

1623 {
1624  CLEAR_BIT(RCC->APB1SMENR2, Periphs);
1625 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_APB1_GRP2_EnableClock()

__STATIC_INLINE void LL_APB1_GRP2_EnableClock ( uint32_t  Periphs)

Enable APB1 peripherals clock. APB1ENR2 LPUART1EN LL_APB1_GRP2_EnableClock
APB1ENR2 I2C4EN LL_APB1_GRP2_EnableClock
APB1ENR2 SWPMI1EN LL_APB1_GRP2_EnableClock
APB1ENR2 LPTIM2EN LL_APB1_GRP2_EnableClock.

Parameters
PeriphsThis parameter can be a combination of the following values:
  • LL_APB1_GRP2_PERIPH_LPUART1
  • LL_APB1_GRP2_PERIPH_I2C4 (*)
  • LL_APB1_GRP2_PERIPH_SWPMI1 (*)
  • LL_APB1_GRP2_PERIPH_LPTIM2
(*) value not defined in all devices.
Return values
None

Definition at line 1110 of file stm32l4xx_ll_bus.h.

1111 {
1112  __IO uint32_t tmpreg;
1113  SET_BIT(RCC->APB1ENR2, Periphs);
1114  /* Delay after an RCC peripheral clock enabling */
1115  tmpreg = READ_BIT(RCC->APB1ENR2, Periphs);
1116  (void)tmpreg;
1117 }

◆ LL_APB1_GRP2_EnableClockStopSleep()

__STATIC_INLINE void LL_APB1_GRP2_EnableClockStopSleep ( uint32_t  Periphs)

Enable APB1 peripheral clocks in Sleep and Stop modes APB1SMENR2 LPUART1SMEN LL_APB1_GRP2_EnableClockStopSleep
APB1SMENR2 I2C4SMEN LL_APB1_GRP2_EnableClockStopSleep
APB1SMENR2 SWPMI1SMEN LL_APB1_GRP2_EnableClockStopSleep
APB1SMENR2 LPTIM2SMEN LL_APB1_GRP2_EnableClockStopSleep.

Parameters
PeriphsThis parameter can be a combination of the following values:
  • LL_APB1_GRP2_PERIPH_LPUART1
  • LL_APB1_GRP2_PERIPH_I2C4 (*)
  • LL_APB1_GRP2_PERIPH_SWPMI1 (*)
  • LL_APB1_GRP2_PERIPH_LPTIM2
(*) value not defined in all devices.
Return values
None

Definition at line 1534 of file stm32l4xx_ll_bus.h.

1535 {
1536  __IO uint32_t tmpreg;
1537  SET_BIT(RCC->APB1SMENR2, Periphs);
1538  /* Delay after an RCC peripheral clock enabling */
1539  tmpreg = READ_BIT(RCC->APB1SMENR2, Periphs);
1540  (void)tmpreg;
1541 }

◆ LL_APB1_GRP2_ForceReset()

__STATIC_INLINE void LL_APB1_GRP2_ForceReset ( uint32_t  Periphs)

Force APB1 peripherals reset. APB1RSTR2 LPUART1RST LL_APB1_GRP2_ForceReset
APB1RSTR2 I2C4RST LL_APB1_GRP2_ForceReset
APB1RSTR2 SWPMI1RST LL_APB1_GRP2_ForceReset
APB1RSTR2 LPTIM2RST LL_APB1_GRP2_ForceReset.

Parameters
PeriphsThis parameter can be a combination of the following values:
  • LL_APB1_GRP2_PERIPH_ALL
  • LL_APB1_GRP2_PERIPH_LPUART1
  • LL_APB1_GRP2_PERIPH_I2C4 (*)
  • LL_APB1_GRP2_PERIPH_SWPMI1 (*)
  • LL_APB1_GRP2_PERIPH_LPTIM2
(*) value not defined in all devices.
Return values
None

Definition at line 1364 of file stm32l4xx_ll_bus.h.

1365 {
1366  SET_BIT(RCC->APB1RSTR2, Periphs);
1367 }

◆ LL_APB1_GRP2_IsEnabledClock()

__STATIC_INLINE uint32_t LL_APB1_GRP2_IsEnabledClock ( uint32_t  Periphs)

Check if APB1 peripheral clock is enabled or not APB1ENR2 LPUART1EN LL_APB1_GRP2_IsEnabledClock
APB1ENR2 I2C4EN LL_APB1_GRP2_IsEnabledClock
APB1ENR2 SWPMI1EN LL_APB1_GRP2_IsEnabledClock
APB1ENR2 LPTIM2EN LL_APB1_GRP2_IsEnabledClock.

Parameters
PeriphsThis parameter can be a combination of the following values:
  • LL_APB1_GRP2_PERIPH_LPUART1
  • LL_APB1_GRP2_PERIPH_I2C4 (*)
  • LL_APB1_GRP2_PERIPH_SWPMI1 (*)
  • LL_APB1_GRP2_PERIPH_LPTIM2
(*) value not defined in all devices.
Return values
Stateof Periphs (1 or 0).

Definition at line 1198 of file stm32l4xx_ll_bus.h.

1199 {
1200  return ((READ_BIT(RCC->APB1ENR2, Periphs) == Periphs) ? 1UL : 0UL);
1201 }

◆ LL_APB1_GRP2_ReleaseReset()

__STATIC_INLINE void LL_APB1_GRP2_ReleaseReset ( uint32_t  Periphs)

Release APB1 peripherals reset. APB1RSTR2 LPUART1RST LL_APB1_GRP2_ReleaseReset
APB1RSTR2 I2C4RST LL_APB1_GRP2_ReleaseReset
APB1RSTR2 SWPMI1RST LL_APB1_GRP2_ReleaseReset
APB1RSTR2 LPTIM2RST LL_APB1_GRP2_ReleaseReset.

Parameters
PeriphsThis parameter can be a combination of the following values:
  • LL_APB1_GRP2_PERIPH_ALL
  • LL_APB1_GRP2_PERIPH_LPUART1
  • LL_APB1_GRP2_PERIPH_I2C4 (*)
  • LL_APB1_GRP2_PERIPH_SWPMI1 (*)
  • LL_APB1_GRP2_PERIPH_LPTIM2
(*) value not defined in all devices.
Return values
None

Definition at line 1446 of file stm32l4xx_ll_bus.h.

1447 {
1448  CLEAR_BIT(RCC->APB1RSTR2, Periphs);
1449 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)