STM32L4xx_HAL_Driver  1.14.0

Functions

__STATIC_INLINE void LL_RCC_LSCO_Enable (void)
 Enable Low speed clock BDCR LSCOEN LL_RCC_LSCO_Enable. More...
 
__STATIC_INLINE void LL_RCC_LSCO_Disable (void)
 Disable Low speed clock BDCR LSCOEN LL_RCC_LSCO_Disable. More...
 
__STATIC_INLINE void LL_RCC_LSCO_SetSource (uint32_t Source)
 Configure Low speed clock selection BDCR LSCOSEL LL_RCC_LSCO_SetSource. More...
 
__STATIC_INLINE uint32_t LL_RCC_LSCO_GetSource (void)
 Get Low speed clock selection BDCR LSCOSEL LL_RCC_LSCO_GetSource. More...
 

Detailed Description

Function Documentation

◆ LL_RCC_LSCO_Disable()

__STATIC_INLINE void LL_RCC_LSCO_Disable ( void  )

Disable Low speed clock BDCR LSCOEN LL_RCC_LSCO_Disable.

Return values
None

Definition at line 2692 of file stm32l4xx_ll_rcc.h.

2693 {
2694  CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSCOEN);
2695 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_RCC_LSCO_Enable()

__STATIC_INLINE void LL_RCC_LSCO_Enable ( void  )

Enable Low speed clock BDCR LSCOEN LL_RCC_LSCO_Enable.

Return values
None

Definition at line 2682 of file stm32l4xx_ll_rcc.h.

2683 {
2684  SET_BIT(RCC->BDCR, RCC_BDCR_LSCOEN);
2685 }

◆ LL_RCC_LSCO_GetSource()

__STATIC_INLINE uint32_t LL_RCC_LSCO_GetSource ( void  )

Get Low speed clock selection BDCR LSCOSEL LL_RCC_LSCO_GetSource.

Return values
Returnedvalue can be one of the following values:
  • LL_RCC_LSCO_CLKSOURCE_LSI
  • LL_RCC_LSCO_CLKSOURCE_LSE

Definition at line 2717 of file stm32l4xx_ll_rcc.h.

2718 {
2719  return (uint32_t)(READ_BIT(RCC->BDCR, RCC_BDCR_LSCOSEL));
2720 }

◆ LL_RCC_LSCO_SetSource()

__STATIC_INLINE void LL_RCC_LSCO_SetSource ( uint32_t  Source)

Configure Low speed clock selection BDCR LSCOSEL LL_RCC_LSCO_SetSource.

Parameters
SourceThis parameter can be one of the following values:
  • LL_RCC_LSCO_CLKSOURCE_LSI
  • LL_RCC_LSCO_CLKSOURCE_LSE
Return values
None

Definition at line 2705 of file stm32l4xx_ll_rcc.h.

2706 {
2707  MODIFY_REG(RCC->BDCR, RCC_BDCR_LSCOSEL, Source);
2708 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)