STM32L4xx_HAL_Driver  1.14.0
Peripheral Clock Source

Functions

__STATIC_INLINE void LL_RCC_SetUSARTClockSource (uint32_t USARTxSource)
 Configure USARTx clock source CCIPR USARTxSEL LL_RCC_SetUSARTClockSource. More...
 
__STATIC_INLINE void LL_RCC_SetUARTClockSource (uint32_t UARTxSource)
 Configure UARTx clock source CCIPR UARTxSEL LL_RCC_SetUARTClockSource. More...
 
__STATIC_INLINE void LL_RCC_SetLPUARTClockSource (uint32_t LPUARTxSource)
 Configure LPUART1x clock source CCIPR LPUART1SEL LL_RCC_SetLPUARTClockSource. More...
 
__STATIC_INLINE void LL_RCC_SetI2CClockSource (uint32_t I2CxSource)
 Configure I2Cx clock source CCIPR I2CxSEL LL_RCC_SetI2CClockSource. More...
 
__STATIC_INLINE void LL_RCC_SetLPTIMClockSource (uint32_t LPTIMxSource)
 Configure LPTIMx clock source CCIPR LPTIMxSEL LL_RCC_SetLPTIMClockSource. More...
 
__STATIC_INLINE void LL_RCC_SetSAIClockSource (uint32_t SAIxSource)
 Configure SAIx clock source CCIPR SAIxSEL LL_RCC_SetSAIClockSource. More...
 
__STATIC_INLINE void LL_RCC_SetSDMMCKernelClockSource (uint32_t SDMMCxSource)
 Configure SDMMC1 kernel clock source CCIPR2 SDMMCSEL LL_RCC_SetSDMMCKernelClockSource. More...
 
__STATIC_INLINE void LL_RCC_SetSDMMCClockSource (uint32_t SDMMCxSource)
 Configure SDMMC1 clock source CCIPR CLK48SEL LL_RCC_SetSDMMCClockSource. More...
 
__STATIC_INLINE void LL_RCC_SetRNGClockSource (uint32_t RNGxSource)
 Configure RNG clock source CCIPR CLK48SEL LL_RCC_SetRNGClockSource. More...
 
__STATIC_INLINE void LL_RCC_SetUSBClockSource (uint32_t USBxSource)
 Configure USB clock source CCIPR CLK48SEL LL_RCC_SetUSBClockSource. More...
 
__STATIC_INLINE void LL_RCC_SetADCClockSource (uint32_t ADCxSource)
 Configure ADC clock source CCIPR ADCSEL LL_RCC_SetADCClockSource. More...
 
__STATIC_INLINE void LL_RCC_SetSWPMIClockSource (uint32_t SWPMIxSource)
 Configure SWPMI clock source CCIPR SWPMI1SEL LL_RCC_SetSWPMIClockSource. More...
 
__STATIC_INLINE void LL_RCC_SetDFSDMAudioClockSource (uint32_t Source)
 Configure DFSDM Audio clock source CCIPR2 ADFSDM1SEL LL_RCC_SetDFSDMAudioClockSource. More...
 
__STATIC_INLINE void LL_RCC_SetDFSDMClockSource (uint32_t DFSDMxSource)
 Configure DFSDM Kernel clock source CCIPR DFSDM1SEL LL_RCC_SetDFSDMClockSource. More...
 
__STATIC_INLINE void LL_RCC_SetDSIClockSource (uint32_t Source)
 Configure DSI clock source CCIPR2 DSISEL LL_RCC_SetDSIClockSource. More...
 
__STATIC_INLINE void LL_RCC_SetLTDCClockSource (uint32_t Source)
 Configure LTDC Clock Source CCIPR2 PLLSAI2DIVR LL_RCC_SetLTDCClockSource. More...
 
__STATIC_INLINE void LL_RCC_SetOCTOSPIClockSource (uint32_t Source)
 Configure OCTOSPI clock source CCIPR2 OSPISEL LL_RCC_SetOCTOSPIClockSource. More...
 
__STATIC_INLINE uint32_t LL_RCC_GetUSARTClockSource (uint32_t USARTx)
 Get USARTx clock source CCIPR USARTxSEL LL_RCC_GetUSARTClockSource. More...
 
__STATIC_INLINE uint32_t LL_RCC_GetUARTClockSource (uint32_t UARTx)
 Get UARTx clock source CCIPR UARTxSEL LL_RCC_GetUARTClockSource. More...
 
__STATIC_INLINE uint32_t LL_RCC_GetLPUARTClockSource (uint32_t LPUARTx)
 Get LPUARTx clock source CCIPR LPUART1SEL LL_RCC_GetLPUARTClockSource. More...
 
__STATIC_INLINE uint32_t LL_RCC_GetI2CClockSource (uint32_t I2Cx)
 Get I2Cx clock source CCIPR I2CxSEL LL_RCC_GetI2CClockSource. More...
 
__STATIC_INLINE uint32_t LL_RCC_GetLPTIMClockSource (uint32_t LPTIMx)
 Get LPTIMx clock source CCIPR LPTIMxSEL LL_RCC_GetLPTIMClockSource. More...
 
__STATIC_INLINE uint32_t LL_RCC_GetSAIClockSource (uint32_t SAIx)
 Get SAIx clock source CCIPR SAIxSEL LL_RCC_GetSAIClockSource. More...
 
__STATIC_INLINE uint32_t LL_RCC_GetSDMMCKernelClockSource (uint32_t SDMMCx)
 Get SDMMCx kernel clock source CCIPR2 SDMMCSEL LL_RCC_GetSDMMCKernelClockSource. More...
 
__STATIC_INLINE uint32_t LL_RCC_GetSDMMCClockSource (uint32_t SDMMCx)
 Get SDMMCx clock source CCIPR CLK48SEL LL_RCC_GetSDMMCClockSource. More...
 
__STATIC_INLINE uint32_t LL_RCC_GetRNGClockSource (uint32_t RNGx)
 Get RNGx clock source CCIPR CLK48SEL LL_RCC_GetRNGClockSource. More...
 
__STATIC_INLINE uint32_t LL_RCC_GetUSBClockSource (uint32_t USBx)
 Get USBx clock source CCIPR CLK48SEL LL_RCC_GetUSBClockSource. More...
 
__STATIC_INLINE uint32_t LL_RCC_GetADCClockSource (uint32_t ADCx)
 Get ADCx clock source CCIPR ADCSEL LL_RCC_GetADCClockSource. More...
 
__STATIC_INLINE uint32_t LL_RCC_GetSWPMIClockSource (uint32_t SPWMIx)
 Get SWPMIx clock source CCIPR SWPMI1SEL LL_RCC_GetSWPMIClockSource. More...
 
__STATIC_INLINE uint32_t LL_RCC_GetDFSDMAudioClockSource (uint32_t DFSDMx)
 Get DFSDM Audio Clock Source CCIPR2 ADFSDM1SEL LL_RCC_GetDFSDMAudioClockSource. More...
 
__STATIC_INLINE uint32_t LL_RCC_GetDFSDMClockSource (uint32_t DFSDMx)
 Get DFSDMx Kernel clock source CCIPR DFSDM1SEL LL_RCC_GetDFSDMClockSource. More...
 
__STATIC_INLINE uint32_t LL_RCC_GetDSIClockSource (uint32_t DSIx)
 Get DSI Clock Source CCIPR2 DSISEL LL_RCC_GetDSIClockSource. More...
 
__STATIC_INLINE uint32_t LL_RCC_GetLTDCClockSource (uint32_t LTDCx)
 Get LTDC Clock Source CCIPR2 PLLSAI2DIVR LL_RCC_GetLTDCClockSource. More...
 
__STATIC_INLINE uint32_t LL_RCC_GetOCTOSPIClockSource (uint32_t OCTOSPIx)
 Get OCTOSPI clock source CCIPR2 OSPISEL LL_RCC_GetOCTOSPIClockSource. More...
 

Detailed Description

Function Documentation

◆ LL_RCC_GetADCClockSource()

__STATIC_INLINE uint32_t LL_RCC_GetADCClockSource ( uint32_t  ADCx)

Get ADCx clock source CCIPR ADCSEL LL_RCC_GetADCClockSource.

Parameters
ADCxThis parameter can be one of the following values:
  • LL_RCC_ADC_CLKSOURCE
Return values
Returnedvalue can be one of the following values:
  • LL_RCC_ADC_CLKSOURCE_NONE
  • LL_RCC_ADC_CLKSOURCE_PLLSAI1 (*)
  • LL_RCC_ADC_CLKSOURCE_PLLSAI2 (*)
  • LL_RCC_ADC_CLKSOURCE_SYSCLK
(*) value not defined in all devices.

Definition at line 3510 of file stm32l4xx_ll_rcc.h.

3511 {
3512 #if defined(RCC_CCIPR_ADCSEL)
3513  return (uint32_t)(READ_BIT(RCC->CCIPR, ADCx));
3514 #else
3515  (void)ADCx; /* unused */
3516  return ((READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_ADCEN) != 0U) ? LL_RCC_ADC_CLKSOURCE_SYSCLK : LL_RCC_ADC_CLKSOURCE_NONE);
3517 #endif /* RCC_CCIPR_ADCSEL */
3518 }

◆ LL_RCC_GetDFSDMAudioClockSource()

__STATIC_INLINE uint32_t LL_RCC_GetDFSDMAudioClockSource ( uint32_t  DFSDMx)

Get DFSDM Audio Clock Source CCIPR2 ADFSDM1SEL LL_RCC_GetDFSDMAudioClockSource.

Parameters
DFSDMxThis parameter can be one of the following values:
  • LL_RCC_DFSDM1_AUDIO_CLKSOURCE
Return values
Returnedvalue can be one of the following values:
  • LL_RCC_DFSDM1_AUDIO_CLKSOURCE_SAI1
  • LL_RCC_DFSDM1_AUDIO_CLKSOURCE_HSI
  • LL_RCC_DFSDM1_AUDIO_CLKSOURCE_MSI

Definition at line 3548 of file stm32l4xx_ll_rcc.h.

3549 {
3550  return (uint32_t)(READ_BIT(RCC->CCIPR2, DFSDMx));
3551 }

◆ LL_RCC_GetDFSDMClockSource()

__STATIC_INLINE uint32_t LL_RCC_GetDFSDMClockSource ( uint32_t  DFSDMx)

Get DFSDMx Kernel clock source CCIPR DFSDM1SEL LL_RCC_GetDFSDMClockSource.

Parameters
DFSDMxThis parameter can be one of the following values:
  • LL_RCC_DFSDM1_CLKSOURCE
Return values
Returnedvalue can be one of the following values:
  • LL_RCC_DFSDM1_CLKSOURCE_PCLK2
  • LL_RCC_DFSDM1_CLKSOURCE_SYSCLK

Definition at line 3567 of file stm32l4xx_ll_rcc.h.

3568 {
3569 #if defined(RCC_CCIPR2_DFSDM1SEL)
3570  return (uint32_t)(READ_BIT(RCC->CCIPR2, DFSDMx));
3571 #else
3572  return (uint32_t)(READ_BIT(RCC->CCIPR, DFSDMx));
3573 #endif /* RCC_CCIPR2_DFSDM1SEL */
3574 }

◆ LL_RCC_GetDSIClockSource()

__STATIC_INLINE uint32_t LL_RCC_GetDSIClockSource ( uint32_t  DSIx)

Get DSI Clock Source CCIPR2 DSISEL LL_RCC_GetDSIClockSource.

Parameters
DSIxThis parameter can be one of the following values:
  • LL_RCC_DSI_CLKSOURCE
Return values
Returnedvalue can be one of the following values:
  • LL_RCC_DSI_CLKSOURCE_PHY
  • LL_RCC_DSI_CLKSOURCE_PLL

Definition at line 3587 of file stm32l4xx_ll_rcc.h.

3588 {
3589  return (uint32_t)(READ_BIT(RCC->CCIPR2, DSIx));
3590 }

◆ LL_RCC_GetI2CClockSource()

__STATIC_INLINE uint32_t LL_RCC_GetI2CClockSource ( uint32_t  I2Cx)

Get I2Cx clock source CCIPR I2CxSEL LL_RCC_GetI2CClockSource.

Parameters
I2CxThis parameter can be one of the following values:
  • LL_RCC_I2C1_CLKSOURCE
  • LL_RCC_I2C2_CLKSOURCE (*)
  • LL_RCC_I2C3_CLKSOURCE
  • LL_RCC_I2C4_CLKSOURCE (*)
(*) value not defined in all devices.
Return values
Returnedvalue can be one of the following values:
  • LL_RCC_I2C1_CLKSOURCE_PCLK1
  • LL_RCC_I2C1_CLKSOURCE_SYSCLK
  • LL_RCC_I2C1_CLKSOURCE_HSI
  • LL_RCC_I2C2_CLKSOURCE_PCLK1 (*)
  • LL_RCC_I2C2_CLKSOURCE_SYSCLK (*)
  • LL_RCC_I2C2_CLKSOURCE_HSI (*)
  • LL_RCC_I2C3_CLKSOURCE_PCLK1
  • LL_RCC_I2C3_CLKSOURCE_SYSCLK
  • LL_RCC_I2C3_CLKSOURCE_HSI
  • LL_RCC_I2C4_CLKSOURCE_PCLK1 (*)
  • LL_RCC_I2C4_CLKSOURCE_SYSCLK (*)
  • LL_RCC_I2C4_CLKSOURCE_HSI (*)
(*) value not defined in all devices.

Definition at line 3356 of file stm32l4xx_ll_rcc.h.

3357 {
3358  __IO const uint32_t *reg = (__IO uint32_t *)(uint32_t)(RCC_BASE + 0x88U + (I2Cx >> 24U));
3359  return (uint32_t)((READ_BIT(*reg, 3UL << ((I2Cx & 0x001F0000U) >> 16U)) >> ((I2Cx & 0x001F0000U) >> 16U)) | (I2Cx & 0xFFFF0000U));
3360 }

◆ LL_RCC_GetLPTIMClockSource()

__STATIC_INLINE uint32_t LL_RCC_GetLPTIMClockSource ( uint32_t  LPTIMx)

Get LPTIMx clock source CCIPR LPTIMxSEL LL_RCC_GetLPTIMClockSource.

Parameters
LPTIMxThis parameter can be one of the following values:
  • LL_RCC_LPTIM1_CLKSOURCE
  • LL_RCC_LPTIM2_CLKSOURCE
Return values
Returnedvalue can be one of the following values:
  • LL_RCC_LPTIM1_CLKSOURCE_PCLK1
  • LL_RCC_LPTIM1_CLKSOURCE_LSI
  • LL_RCC_LPTIM1_CLKSOURCE_HSI
  • LL_RCC_LPTIM1_CLKSOURCE_LSE
  • LL_RCC_LPTIM2_CLKSOURCE_PCLK1
  • LL_RCC_LPTIM2_CLKSOURCE_LSI
  • LL_RCC_LPTIM2_CLKSOURCE_HSI
  • LL_RCC_LPTIM2_CLKSOURCE_LSE

Definition at line 3378 of file stm32l4xx_ll_rcc.h.

3379 {
3380  return (uint32_t)((READ_BIT(RCC->CCIPR, LPTIMx) >> 16U) | LPTIMx);
3381 }

◆ LL_RCC_GetLPUARTClockSource()

__STATIC_INLINE uint32_t LL_RCC_GetLPUARTClockSource ( uint32_t  LPUARTx)

Get LPUARTx clock source CCIPR LPUART1SEL LL_RCC_GetLPUARTClockSource.

Parameters
LPUARTxThis parameter can be one of the following values:
  • LL_RCC_LPUART1_CLKSOURCE
Return values
Returnedvalue can be one of the following values:
  • LL_RCC_LPUART1_CLKSOURCE_PCLK1
  • LL_RCC_LPUART1_CLKSOURCE_SYSCLK
  • LL_RCC_LPUART1_CLKSOURCE_HSI
  • LL_RCC_LPUART1_CLKSOURCE_LSE

Definition at line 3325 of file stm32l4xx_ll_rcc.h.

3326 {
3327  return (uint32_t)(READ_BIT(RCC->CCIPR, LPUARTx));
3328 }

◆ LL_RCC_GetLTDCClockSource()

__STATIC_INLINE uint32_t LL_RCC_GetLTDCClockSource ( uint32_t  LTDCx)

Get LTDC Clock Source CCIPR2 PLLSAI2DIVR LL_RCC_GetLTDCClockSource.

Parameters
LTDCxThis parameter can be one of the following values:
  • LL_RCC_LTDC_CLKSOURCE
Return values
Returnedvalue can be one of the following values:
  • LL_RCC_LTDC_CLKSOURCE_PLLSAI2R_DIV2
  • LL_RCC_LTDC_CLKSOURCE_PLLSAI2R_DIV4
  • LL_RCC_LTDC_CLKSOURCE_PLLSAI2R_DIV8
  • LL_RCC_LTDC_CLKSOURCE_PLLSAI2R_DIV16

Definition at line 3605 of file stm32l4xx_ll_rcc.h.

3606 {
3607  return (uint32_t)(READ_BIT(RCC->CCIPR2, LTDCx));
3608 }

◆ LL_RCC_GetOCTOSPIClockSource()

__STATIC_INLINE uint32_t LL_RCC_GetOCTOSPIClockSource ( uint32_t  OCTOSPIx)

Get OCTOSPI clock source CCIPR2 OSPISEL LL_RCC_GetOCTOSPIClockSource.

Parameters
OCTOSPIxThis parameter can be one of the following values:
  • LL_RCC_OCTOSPI_CLKSOURCE
Return values
Returnedvalue can be one of the following values:
  • LL_RCC_OCTOSPI_CLKSOURCE_SYSCLK
  • LL_RCC_OCTOSPI_CLKSOURCE_MSI
  • LL_RCC_OCTOSPI_CLKSOURCE_PLL

Definition at line 3622 of file stm32l4xx_ll_rcc.h.

3623 {
3624  return (uint32_t)(READ_BIT(RCC->CCIPR2, OCTOSPIx));
3625 }

◆ LL_RCC_GetRNGClockSource()

__STATIC_INLINE uint32_t LL_RCC_GetRNGClockSource ( uint32_t  RNGx)

Get RNGx clock source CCIPR CLK48SEL LL_RCC_GetRNGClockSource.

Parameters
RNGxThis parameter can be one of the following values:
  • LL_RCC_RNG_CLKSOURCE
Return values
Returnedvalue can be one of the following values:
  • LL_RCC_RNG_CLKSOURCE_NONE (*)
  • LL_RCC_RNG_CLKSOURCE_HSI48 (*)
  • LL_RCC_RNG_CLKSOURCE_PLLSAI1 (*)
  • LL_RCC_RNG_CLKSOURCE_PLL
  • LL_RCC_RNG_CLKSOURCE_MSI
(*) value not defined in all devices.

Definition at line 3471 of file stm32l4xx_ll_rcc.h.

3472 {
3473  return (uint32_t)(READ_BIT(RCC->CCIPR, RNGx));
3474 }

◆ LL_RCC_GetSAIClockSource()

__STATIC_INLINE uint32_t LL_RCC_GetSAIClockSource ( uint32_t  SAIx)

Get SAIx clock source CCIPR SAIxSEL LL_RCC_GetSAIClockSource.

Parameters
SAIxThis parameter can be one of the following values:
  • LL_RCC_SAI1_CLKSOURCE
  • LL_RCC_SAI2_CLKSOURCE (*)
(*) value not defined in all devices.
Return values
Returnedvalue can be one of the following values:
  • LL_RCC_SAI1_CLKSOURCE_PLLSAI1
  • LL_RCC_SAI1_CLKSOURCE_PLLSAI2 (*)
  • LL_RCC_SAI1_CLKSOURCE_PLL
  • LL_RCC_SAI1_CLKSOURCE_PIN
  • LL_RCC_SAI2_CLKSOURCE_PLLSAI1 (*)
  • LL_RCC_SAI2_CLKSOURCE_PLLSAI2 (*)
  • LL_RCC_SAI2_CLKSOURCE_PLL (*)
  • LL_RCC_SAI2_CLKSOURCE_PIN (*)
(*) value not defined in all devices.

Definition at line 3408 of file stm32l4xx_ll_rcc.h.

3409 {
3410 #if defined(RCC_CCIPR2_SAI1SEL)
3411  return (uint32_t)(READ_BIT(RCC->CCIPR2, SAIx) | (SAIx << 16U));
3412 #else
3413  return (uint32_t)(READ_BIT(RCC->CCIPR, SAIx) >> 16U | SAIx);
3414 #endif /* RCC_CCIPR2_SAI1SEL */
3415 }

◆ LL_RCC_GetSDMMCClockSource()

__STATIC_INLINE uint32_t LL_RCC_GetSDMMCClockSource ( uint32_t  SDMMCx)

Get SDMMCx clock source CCIPR CLK48SEL LL_RCC_GetSDMMCClockSource.

Parameters
SDMMCxThis parameter can be one of the following values:
  • LL_RCC_SDMMC1_CLKSOURCE
Return values
Returnedvalue can be one of the following values:
  • LL_RCC_SDMMC1_CLKSOURCE_NONE (*)
  • LL_RCC_SDMMC1_CLKSOURCE_HSI48 (*)
  • LL_RCC_SDMMC1_CLKSOURCE_PLLSAI1 (*)
  • LL_RCC_SDMMC1_CLKSOURCE_PLL
  • LL_RCC_SDMMC1_CLKSOURCE_MSI (*)
(*) value not defined in all devices.

Definition at line 3451 of file stm32l4xx_ll_rcc.h.

3452 {
3453  return (uint32_t)(READ_BIT(RCC->CCIPR, SDMMCx));
3454 }

◆ LL_RCC_GetSDMMCKernelClockSource()

__STATIC_INLINE uint32_t LL_RCC_GetSDMMCKernelClockSource ( uint32_t  SDMMCx)

Get SDMMCx kernel clock source CCIPR2 SDMMCSEL LL_RCC_GetSDMMCKernelClockSource.

Parameters
SDMMCxThis parameter can be one of the following values:
  • LL_RCC_SDMMC1_KERNELCLKSOURCE
Return values
Returnedvalue can be one of the following values:
  • LL_RCC_SDMMC1_KERNELCLKSOURCE_48CLK (*)
  • LL_RCC_SDMMC1_KERNELCLKSOURCE_PLL (*)
(*) value not defined in all devices.

Definition at line 3431 of file stm32l4xx_ll_rcc.h.

3432 {
3433  return (uint32_t)(READ_BIT(RCC->CCIPR2, SDMMCx));
3434 }

◆ LL_RCC_GetSWPMIClockSource()

__STATIC_INLINE uint32_t LL_RCC_GetSWPMIClockSource ( uint32_t  SPWMIx)

Get SWPMIx clock source CCIPR SWPMI1SEL LL_RCC_GetSWPMIClockSource.

Parameters
SPWMIxThis parameter can be one of the following values:
  • LL_RCC_SWPMI1_CLKSOURCE
Return values
Returnedvalue can be one of the following values:
  • LL_RCC_SWPMI1_CLKSOURCE_PCLK1
  • LL_RCC_SWPMI1_CLKSOURCE_HSI

Definition at line 3530 of file stm32l4xx_ll_rcc.h.

3531 {
3532  return (uint32_t)(READ_BIT(RCC->CCIPR, SPWMIx));
3533 }

◆ LL_RCC_GetUARTClockSource()

__STATIC_INLINE uint32_t LL_RCC_GetUARTClockSource ( uint32_t  UARTx)

Get UARTx clock source CCIPR UARTxSEL LL_RCC_GetUARTClockSource.

Parameters
UARTxThis parameter can be one of the following values:
  • LL_RCC_UART4_CLKSOURCE
  • LL_RCC_UART5_CLKSOURCE
Return values
Returnedvalue can be one of the following values:
  • LL_RCC_UART4_CLKSOURCE_PCLK1
  • LL_RCC_UART4_CLKSOURCE_SYSCLK
  • LL_RCC_UART4_CLKSOURCE_HSI
  • LL_RCC_UART4_CLKSOURCE_LSE
  • LL_RCC_UART5_CLKSOURCE_PCLK1
  • LL_RCC_UART5_CLKSOURCE_SYSCLK
  • LL_RCC_UART5_CLKSOURCE_HSI
  • LL_RCC_UART5_CLKSOURCE_LSE

Definition at line 3308 of file stm32l4xx_ll_rcc.h.

3309 {
3310  return (uint32_t)(READ_BIT(RCC->CCIPR, UARTx) | (UARTx << 16U));
3311 }

◆ LL_RCC_GetUSARTClockSource()

__STATIC_INLINE uint32_t LL_RCC_GetUSARTClockSource ( uint32_t  USARTx)

Get USARTx clock source CCIPR USARTxSEL LL_RCC_GetUSARTClockSource.

Parameters
USARTxThis parameter can be one of the following values:
  • LL_RCC_USART1_CLKSOURCE
  • LL_RCC_USART2_CLKSOURCE
  • LL_RCC_USART3_CLKSOURCE (*)
(*) value not defined in all devices.
Return values
Returnedvalue can be one of the following values:
  • LL_RCC_USART1_CLKSOURCE_PCLK2
  • LL_RCC_USART1_CLKSOURCE_SYSCLK
  • LL_RCC_USART1_CLKSOURCE_HSI
  • LL_RCC_USART1_CLKSOURCE_LSE
  • LL_RCC_USART2_CLKSOURCE_PCLK1
  • LL_RCC_USART2_CLKSOURCE_SYSCLK
  • LL_RCC_USART2_CLKSOURCE_HSI
  • LL_RCC_USART2_CLKSOURCE_LSE
  • LL_RCC_USART3_CLKSOURCE_PCLK1 (*)
  • LL_RCC_USART3_CLKSOURCE_SYSCLK (*)
  • LL_RCC_USART3_CLKSOURCE_HSI (*)
  • LL_RCC_USART3_CLKSOURCE_LSE (*)
(*) value not defined in all devices.

Definition at line 3286 of file stm32l4xx_ll_rcc.h.

3287 {
3288  return (uint32_t)(READ_BIT(RCC->CCIPR, USARTx) | (USARTx << 16U));
3289 }

◆ LL_RCC_GetUSBClockSource()

__STATIC_INLINE uint32_t LL_RCC_GetUSBClockSource ( uint32_t  USBx)

Get USBx clock source CCIPR CLK48SEL LL_RCC_GetUSBClockSource.

Parameters
USBxThis parameter can be one of the following values:
  • LL_RCC_USB_CLKSOURCE
Return values
Returnedvalue can be one of the following values:
  • LL_RCC_USB_CLKSOURCE_NONE (*)
  • LL_RCC_USB_CLKSOURCE_HSI48 (*)
  • LL_RCC_USB_CLKSOURCE_PLLSAI1 (*)
  • LL_RCC_USB_CLKSOURCE_PLL
  • LL_RCC_USB_CLKSOURCE_MSI
(*) value not defined in all devices.

Definition at line 3491 of file stm32l4xx_ll_rcc.h.

3492 {
3493  return (uint32_t)(READ_BIT(RCC->CCIPR, USBx));
3494 }

◆ LL_RCC_SetADCClockSource()

__STATIC_INLINE void LL_RCC_SetADCClockSource ( uint32_t  ADCxSource)

Configure ADC clock source CCIPR ADCSEL LL_RCC_SetADCClockSource.

Parameters
ADCxSourceThis parameter can be one of the following values:
  • LL_RCC_ADC_CLKSOURCE_NONE
  • LL_RCC_ADC_CLKSOURCE_PLLSAI1 (*)
  • LL_RCC_ADC_CLKSOURCE_PLLSAI2 (*)
  • LL_RCC_ADC_CLKSOURCE_SYSCLK
(*) value not defined in all devices.
Return values
None

Definition at line 3153 of file stm32l4xx_ll_rcc.h.

3154 {
3155  MODIFY_REG(RCC->CCIPR, RCC_CCIPR_ADCSEL, ADCxSource);
3156 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_RCC_SetDFSDMAudioClockSource()

__STATIC_INLINE void LL_RCC_SetDFSDMAudioClockSource ( uint32_t  Source)

Configure DFSDM Audio clock source CCIPR2 ADFSDM1SEL LL_RCC_SetDFSDMAudioClockSource.

Parameters
SourceThis parameter can be one of the following values:
  • LL_RCC_DFSDM1_AUDIO_CLKSOURCE_SAI1
  • LL_RCC_DFSDM1_AUDIO_CLKSOURCE_HSI
  • LL_RCC_DFSDM1_AUDIO_CLKSOURCE_MSI
Return values
None

Definition at line 3185 of file stm32l4xx_ll_rcc.h.

3186 {
3187  MODIFY_REG(RCC->CCIPR2, RCC_CCIPR2_ADFSDM1SEL, Source);
3188 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_RCC_SetDFSDMClockSource()

__STATIC_INLINE void LL_RCC_SetDFSDMClockSource ( uint32_t  DFSDMxSource)

Configure DFSDM Kernel clock source CCIPR DFSDM1SEL LL_RCC_SetDFSDMClockSource.

Parameters
DFSDMxSourceThis parameter can be one of the following values:
  • LL_RCC_DFSDM1_CLKSOURCE_PCLK2
  • LL_RCC_DFSDM1_CLKSOURCE_SYSCLK
Return values
None

Definition at line 3203 of file stm32l4xx_ll_rcc.h.

3204 {
3205 #if defined(RCC_CCIPR2_DFSDM1SEL)
3206  MODIFY_REG(RCC->CCIPR2, RCC_CCIPR2_DFSDM1SEL, DFSDMxSource);
3207 #else
3208  MODIFY_REG(RCC->CCIPR, RCC_CCIPR_DFSDM1SEL, DFSDMxSource);
3209 #endif /* RCC_CCIPR2_DFSDM1SEL */
3210 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_RCC_SetDSIClockSource()

__STATIC_INLINE void LL_RCC_SetDSIClockSource ( uint32_t  Source)

Configure DSI clock source CCIPR2 DSISEL LL_RCC_SetDSIClockSource.

Parameters
SourceThis parameter can be one of the following values:
  • LL_RCC_DSI_CLKSOURCE_PHY
  • LL_RCC_DSI_CLKSOURCE_PLL
Return values
None

Definition at line 3222 of file stm32l4xx_ll_rcc.h.

3223 {
3224  MODIFY_REG(RCC->CCIPR2, RCC_CCIPR2_DSISEL, Source);
3225 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_RCC_SetI2CClockSource()

__STATIC_INLINE void LL_RCC_SetI2CClockSource ( uint32_t  I2CxSource)

Configure I2Cx clock source CCIPR I2CxSEL LL_RCC_SetI2CClockSource.

Parameters
I2CxSourceThis parameter can be one of the following values:
  • LL_RCC_I2C1_CLKSOURCE_PCLK1
  • LL_RCC_I2C1_CLKSOURCE_SYSCLK
  • LL_RCC_I2C1_CLKSOURCE_HSI
  • LL_RCC_I2C2_CLKSOURCE_PCLK1 (*)
  • LL_RCC_I2C2_CLKSOURCE_SYSCLK (*)
  • LL_RCC_I2C2_CLKSOURCE_HSI (*)
  • LL_RCC_I2C3_CLKSOURCE_PCLK1
  • LL_RCC_I2C3_CLKSOURCE_SYSCLK
  • LL_RCC_I2C3_CLKSOURCE_HSI
  • LL_RCC_I2C4_CLKSOURCE_PCLK1 (*)
  • LL_RCC_I2C4_CLKSOURCE_SYSCLK (*)
  • LL_RCC_I2C4_CLKSOURCE_HSI (*)
(*) value not defined in all devices.
Return values
None

Definition at line 3011 of file stm32l4xx_ll_rcc.h.

3012 {
3013  __IO uint32_t *reg = (__IO uint32_t *)(uint32_t)(RCC_BASE + 0x88U + (I2CxSource >> 24U));
3014  MODIFY_REG(*reg, 3UL << ((I2CxSource & 0x001F0000U) >> 16U), ((I2CxSource & 0x000000FFU) << ((I2CxSource & 0x001F0000U) >> 16U)));
3015 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_RCC_SetLPTIMClockSource()

__STATIC_INLINE void LL_RCC_SetLPTIMClockSource ( uint32_t  LPTIMxSource)

Configure LPTIMx clock source CCIPR LPTIMxSEL LL_RCC_SetLPTIMClockSource.

Parameters
LPTIMxSourceThis parameter can be one of the following values:
  • LL_RCC_LPTIM1_CLKSOURCE_PCLK1
  • LL_RCC_LPTIM1_CLKSOURCE_LSI
  • LL_RCC_LPTIM1_CLKSOURCE_HSI
  • LL_RCC_LPTIM1_CLKSOURCE_LSE
  • LL_RCC_LPTIM2_CLKSOURCE_PCLK1
  • LL_RCC_LPTIM2_CLKSOURCE_LSI
  • LL_RCC_LPTIM2_CLKSOURCE_HSI
  • LL_RCC_LPTIM2_CLKSOURCE_LSE
Return values
None

Definition at line 3031 of file stm32l4xx_ll_rcc.h.

3032 {
3033  MODIFY_REG(RCC->CCIPR, (LPTIMxSource & 0xFFFF0000U), (LPTIMxSource << 16U));
3034 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_RCC_SetLPUARTClockSource()

__STATIC_INLINE void LL_RCC_SetLPUARTClockSource ( uint32_t  LPUARTxSource)

Configure LPUART1x clock source CCIPR LPUART1SEL LL_RCC_SetLPUARTClockSource.

Parameters
LPUARTxSourceThis parameter can be one of the following values:
  • LL_RCC_LPUART1_CLKSOURCE_PCLK1
  • LL_RCC_LPUART1_CLKSOURCE_SYSCLK
  • LL_RCC_LPUART1_CLKSOURCE_HSI
  • LL_RCC_LPUART1_CLKSOURCE_LSE
Return values
None

Definition at line 2986 of file stm32l4xx_ll_rcc.h.

2987 {
2988  MODIFY_REG(RCC->CCIPR, RCC_CCIPR_LPUART1SEL, LPUARTxSource);
2989 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_RCC_SetLTDCClockSource()

__STATIC_INLINE void LL_RCC_SetLTDCClockSource ( uint32_t  Source)

Configure LTDC Clock Source CCIPR2 PLLSAI2DIVR LL_RCC_SetLTDCClockSource.

Parameters
SourceThis parameter can be one of the following values:
  • LL_RCC_LTDC_CLKSOURCE_PLLSAI2R_DIV2
  • LL_RCC_LTDC_CLKSOURCE_PLLSAI2R_DIV4
  • LL_RCC_LTDC_CLKSOURCE_PLLSAI2R_DIV8
  • LL_RCC_LTDC_CLKSOURCE_PLLSAI2R_DIV16
Return values
None

Definition at line 3239 of file stm32l4xx_ll_rcc.h.

3240 {
3241  MODIFY_REG(RCC->CCIPR2, RCC_CCIPR2_PLLSAI2DIVR, Source);
3242 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_RCC_SetOCTOSPIClockSource()

__STATIC_INLINE void LL_RCC_SetOCTOSPIClockSource ( uint32_t  Source)

Configure OCTOSPI clock source CCIPR2 OSPISEL LL_RCC_SetOCTOSPIClockSource.

Parameters
SourceThis parameter can be one of the following values:
  • LL_RCC_OCTOSPI_CLKSOURCE_SYSCLK
  • LL_RCC_OCTOSPI_CLKSOURCE_MSI
  • LL_RCC_OCTOSPI_CLKSOURCE_PLL
Return values
None

Definition at line 3255 of file stm32l4xx_ll_rcc.h.

3256 {
3257  MODIFY_REG(RCC->CCIPR2, RCC_CCIPR2_OSPISEL, Source);
3258 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_RCC_SetRNGClockSource()

__STATIC_INLINE void LL_RCC_SetRNGClockSource ( uint32_t  RNGxSource)

Configure RNG clock source CCIPR CLK48SEL LL_RCC_SetRNGClockSource.

Parameters
RNGxSourceThis parameter can be one of the following values:
  • LL_RCC_RNG_CLKSOURCE_NONE (*)
  • LL_RCC_RNG_CLKSOURCE_HSI48 (*)
  • LL_RCC_RNG_CLKSOURCE_PLLSAI1 (*)
  • LL_RCC_RNG_CLKSOURCE_PLL
  • LL_RCC_RNG_CLKSOURCE_MSI
(*) value not defined in all devices.
Return values
None

Definition at line 3115 of file stm32l4xx_ll_rcc.h.

3116 {
3117  MODIFY_REG(RCC->CCIPR, RCC_CCIPR_CLK48SEL, RNGxSource);
3118 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_RCC_SetSAIClockSource()

__STATIC_INLINE void LL_RCC_SetSAIClockSource ( uint32_t  SAIxSource)

Configure SAIx clock source CCIPR SAIxSEL LL_RCC_SetSAIClockSource.

Parameters
SAIxSourceThis parameter can be one of the following values:
  • LL_RCC_SAI1_CLKSOURCE_PLLSAI1
  • LL_RCC_SAI1_CLKSOURCE_PLLSAI2 (*)
  • LL_RCC_SAI1_CLKSOURCE_PLL
  • LL_RCC_SAI1_CLKSOURCE_PIN
  • LL_RCC_SAI2_CLKSOURCE_PLLSAI1 (*)
  • LL_RCC_SAI2_CLKSOURCE_PLLSAI2 (*)
  • LL_RCC_SAI2_CLKSOURCE_PLL (*)
  • LL_RCC_SAI2_CLKSOURCE_PIN (*)
(*) value not defined in all devices.
Return values
None

Definition at line 3057 of file stm32l4xx_ll_rcc.h.

3058 {
3059 #if defined(RCC_CCIPR2_SAI1SEL)
3060  MODIFY_REG(RCC->CCIPR2, (SAIxSource >> 16U), (SAIxSource & 0x0000FFFFU));
3061 #else
3062  MODIFY_REG(RCC->CCIPR, (SAIxSource & 0xFFFF0000U), (SAIxSource << 16U));
3063 #endif /* RCC_CCIPR2_SAI1SEL */
3064 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_RCC_SetSDMMCClockSource()

__STATIC_INLINE void LL_RCC_SetSDMMCClockSource ( uint32_t  SDMMCxSource)

Configure SDMMC1 clock source CCIPR CLK48SEL LL_RCC_SetSDMMCClockSource.

Parameters
SDMMCxSourceThis parameter can be one of the following values:
  • LL_RCC_SDMMC1_CLKSOURCE_NONE (*)
  • LL_RCC_SDMMC1_CLKSOURCE_HSI48 (*)
  • LL_RCC_SDMMC1_CLKSOURCE_PLLSAI1 (*)
  • LL_RCC_SDMMC1_CLKSOURCE_PLL
  • LL_RCC_SDMMC1_CLKSOURCE_MSI (*)
(*) value not defined in all devices.
Return values
None

Definition at line 3097 of file stm32l4xx_ll_rcc.h.

3098 {
3099  MODIFY_REG(RCC->CCIPR, RCC_CCIPR_CLK48SEL, SDMMCxSource);
3100 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_RCC_SetSDMMCKernelClockSource()

__STATIC_INLINE void LL_RCC_SetSDMMCKernelClockSource ( uint32_t  SDMMCxSource)

Configure SDMMC1 kernel clock source CCIPR2 SDMMCSEL LL_RCC_SetSDMMCKernelClockSource.

Parameters
SDMMCxSourceThis parameter can be one of the following values:
  • LL_RCC_SDMMC1_KERNELCLKSOURCE_48CLK (*)
  • LL_RCC_SDMMC1_KERNELCLKSOURCE_PLLP (*)
(*) value not defined in all devices.
Return values
None

Definition at line 3078 of file stm32l4xx_ll_rcc.h.

3079 {
3080  MODIFY_REG(RCC->CCIPR2, RCC_CCIPR2_SDMMCSEL, SDMMCxSource);
3081 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_RCC_SetSWPMIClockSource()

__STATIC_INLINE void LL_RCC_SetSWPMIClockSource ( uint32_t  SWPMIxSource)

Configure SWPMI clock source CCIPR SWPMI1SEL LL_RCC_SetSWPMIClockSource.

Parameters
SWPMIxSourceThis parameter can be one of the following values:
  • LL_RCC_SWPMI1_CLKSOURCE_PCLK1
  • LL_RCC_SWPMI1_CLKSOURCE_HSI
Return values
None

Definition at line 3168 of file stm32l4xx_ll_rcc.h.

3169 {
3170  MODIFY_REG(RCC->CCIPR, RCC_CCIPR_SWPMI1SEL, SWPMIxSource);
3171 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_RCC_SetUARTClockSource()

__STATIC_INLINE void LL_RCC_SetUARTClockSource ( uint32_t  UARTxSource)

Configure UARTx clock source CCIPR UARTxSEL LL_RCC_SetUARTClockSource.

Parameters
UARTxSourceThis parameter can be one of the following values:
  • LL_RCC_UART4_CLKSOURCE_PCLK1
  • LL_RCC_UART4_CLKSOURCE_SYSCLK
  • LL_RCC_UART4_CLKSOURCE_HSI
  • LL_RCC_UART4_CLKSOURCE_LSE
  • LL_RCC_UART5_CLKSOURCE_PCLK1
  • LL_RCC_UART5_CLKSOURCE_SYSCLK
  • LL_RCC_UART5_CLKSOURCE_HSI
  • LL_RCC_UART5_CLKSOURCE_LSE
Return values
None

Definition at line 2970 of file stm32l4xx_ll_rcc.h.

2971 {
2972  MODIFY_REG(RCC->CCIPR, (UARTxSource >> 16U), (UARTxSource & 0x0000FFFFU));
2973 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_RCC_SetUSARTClockSource()

__STATIC_INLINE void LL_RCC_SetUSARTClockSource ( uint32_t  USARTxSource)

Configure USARTx clock source CCIPR USARTxSEL LL_RCC_SetUSARTClockSource.

Parameters
USARTxSourceThis parameter can be one of the following values:
  • LL_RCC_USART1_CLKSOURCE_PCLK2
  • LL_RCC_USART1_CLKSOURCE_SYSCLK
  • LL_RCC_USART1_CLKSOURCE_HSI
  • LL_RCC_USART1_CLKSOURCE_LSE
  • LL_RCC_USART2_CLKSOURCE_PCLK1
  • LL_RCC_USART2_CLKSOURCE_SYSCLK
  • LL_RCC_USART2_CLKSOURCE_HSI
  • LL_RCC_USART2_CLKSOURCE_LSE
  • LL_RCC_USART3_CLKSOURCE_PCLK1 (*)
  • LL_RCC_USART3_CLKSOURCE_SYSCLK (*)
  • LL_RCC_USART3_CLKSOURCE_HSI (*)
  • LL_RCC_USART3_CLKSOURCE_LSE (*)
(*) value not defined in all devices.
Return values
None

Definition at line 2950 of file stm32l4xx_ll_rcc.h.

2951 {
2952  MODIFY_REG(RCC->CCIPR, (USARTxSource >> 16U), (USARTxSource & 0x0000FFFFU));
2953 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_RCC_SetUSBClockSource()

__STATIC_INLINE void LL_RCC_SetUSBClockSource ( uint32_t  USBxSource)

Configure USB clock source CCIPR CLK48SEL LL_RCC_SetUSBClockSource.

Parameters
USBxSourceThis parameter can be one of the following values:
  • LL_RCC_USB_CLKSOURCE_NONE (*)
  • LL_RCC_USB_CLKSOURCE_HSI48 (*)
  • LL_RCC_USB_CLKSOURCE_PLLSAI1 (*)
  • LL_RCC_USB_CLKSOURCE_PLL
  • LL_RCC_USB_CLKSOURCE_MSI
(*) value not defined in all devices.
Return values
None

Definition at line 3134 of file stm32l4xx_ll_rcc.h.

3135 {
3136  MODIFY_REG(RCC->CCIPR, RCC_CCIPR_CLK48SEL, USBxSource);
3137 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)