L4 HAL Drivers

Embed: (wiki syntax)

« Back to documentation index

Peripheral Clock Source

Peripheral Clock Source
[RCC Exported Functions]

Functions

__STATIC_INLINE void LL_RCC_SetUSARTClockSource (uint32_t USARTxSource)
 Configure USARTx clock source CCIPR USARTxSEL LL_RCC_SetUSARTClockSource.
__STATIC_INLINE void LL_RCC_SetUARTClockSource (uint32_t UARTxSource)
 Configure UARTx clock source CCIPR UARTxSEL LL_RCC_SetUARTClockSource.
__STATIC_INLINE void LL_RCC_SetLPUARTClockSource (uint32_t LPUARTxSource)
 Configure LPUART1x clock source CCIPR LPUART1SEL LL_RCC_SetLPUARTClockSource.
__STATIC_INLINE void LL_RCC_SetI2CClockSource (uint32_t I2CxSource)
 Configure I2Cx clock source CCIPR I2CxSEL LL_RCC_SetI2CClockSource.
__STATIC_INLINE void LL_RCC_SetLPTIMClockSource (uint32_t LPTIMxSource)
 Configure LPTIMx clock source CCIPR LPTIMxSEL LL_RCC_SetLPTIMClockSource.
__STATIC_INLINE void LL_RCC_SetSAIClockSource (uint32_t SAIxSource)
 Configure SAIx clock source CCIPR SAIxSEL LL_RCC_SetSAIClockSource.
__STATIC_INLINE void LL_RCC_SetSDMMCClockSource (uint32_t SDMMCxSource)
 Configure SDMMC1 clock source CCIPR CLK48SEL LL_RCC_SetSDMMCClockSource.
__STATIC_INLINE void LL_RCC_SetRNGClockSource (uint32_t RNGxSource)
 Configure RNG clock source CCIPR CLK48SEL LL_RCC_SetRNGClockSource.
__STATIC_INLINE void LL_RCC_SetUSBClockSource (uint32_t USBxSource)
 Configure USB clock source CCIPR CLK48SEL LL_RCC_SetUSBClockSource.
__STATIC_INLINE void LL_RCC_SetADCClockSource (uint32_t ADCxSource)
 Configure ADC clock source CCIPR ADCSEL LL_RCC_SetADCClockSource.
__STATIC_INLINE void LL_RCC_SetSWPMIClockSource (uint32_t SWPMIxSource)
 Configure SWPMI clock source CCIPR SWPMI1SEL LL_RCC_SetSWPMIClockSource.
__STATIC_INLINE void LL_RCC_SetDFSDMClockSource (uint32_t DFSDMxSource)
 Configure DFSDM clock source CCIPR DFSDMSEL LL_RCC_SetDFSDMClockSource.
__STATIC_INLINE uint32_t LL_RCC_GetUSARTClockSource (uint32_t USARTx)
 Get USARTx clock source CCIPR USARTxSEL LL_RCC_GetUSARTClockSource.
__STATIC_INLINE uint32_t LL_RCC_GetUARTClockSource (uint32_t UARTx)
 Get UARTx clock source CCIPR UARTxSEL LL_RCC_GetUARTClockSource.
__STATIC_INLINE uint32_t LL_RCC_GetLPUARTClockSource (uint32_t LPUARTx)
 Get LPUARTx clock source CCIPR LPUART1SEL LL_RCC_GetLPUARTClockSource.
__STATIC_INLINE uint32_t LL_RCC_GetI2CClockSource (uint32_t I2Cx)
 Get I2Cx clock source CCIPR I2CxSEL LL_RCC_GetI2CClockSource.
__STATIC_INLINE uint32_t LL_RCC_GetLPTIMClockSource (uint32_t LPTIMx)
 Get LPTIMx clock source CCIPR LPTIMxSEL LL_RCC_GetLPTIMClockSource.
__STATIC_INLINE uint32_t LL_RCC_GetSAIClockSource (uint32_t SAIx)
 Get SAIx clock source CCIPR SAIxSEL LL_RCC_GetSAIClockSource.
__STATIC_INLINE uint32_t LL_RCC_GetSDMMCClockSource (uint32_t SDMMCx)
 Get SDMMCx clock source CCIPR CLK48SEL LL_RCC_GetSDMMCClockSource.
__STATIC_INLINE uint32_t LL_RCC_GetRNGClockSource (uint32_t RNGx)
 Get RNGx clock source CCIPR CLK48SEL LL_RCC_GetRNGClockSource.
__STATIC_INLINE uint32_t LL_RCC_GetUSBClockSource (uint32_t USBx)
 Get USBx clock source CCIPR CLK48SEL LL_RCC_GetUSBClockSource.
__STATIC_INLINE uint32_t LL_RCC_GetADCClockSource (uint32_t ADCx)
 Get ADCx clock source CCIPR ADCSEL LL_RCC_GetADCClockSource.
__STATIC_INLINE uint32_t LL_RCC_GetSWPMIClockSource (uint32_t SPWMIx)
 Get SWPMIx clock source CCIPR SWPMI1SEL LL_RCC_GetSWPMIClockSource.
__STATIC_INLINE uint32_t LL_RCC_GetDFSDMClockSource (uint32_t DFSDMx)
 Get DFSDMx clock source CCIPR DFSDMSEL LL_RCC_GetDFSDMClockSource.

Function Documentation

__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

Definition at line 2018 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE uint32_t LL_RCC_GetDFSDMClockSource ( uint32_t  DFSDMx )

Get DFSDMx clock source CCIPR DFSDMSEL LL_RCC_GetDFSDMClockSource.

Parameters:
DFSDMxThis parameter can be one of the following values:

  • LL_RCC_DFSDM_CLKSOURCE
Return values:
Returnedvalue can be one of the following values:

  • LL_RCC_DFSDM_CLKSOURCE_PCLK
  • LL_RCC_DFSDM_CLKSOURCE_SYSCLK

Definition at line 2046 of file stm32l4xx_ll_rcc.h.

__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
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

Definition at line 1911 of file stm32l4xx_ll_rcc.h.

__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
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 1931 of file stm32l4xx_ll_rcc.h.

__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 1888 of file stm32l4xx_ll_rcc.h.

__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_PLLSAI1
  • LL_RCC_RNG_CLKSOURCE_PLL
  • LL_RCC_RNG_CLKSOURCE_MSI

Definition at line 1984 of file stm32l4xx_ll_rcc.h.

__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
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

Definition at line 1952 of file stm32l4xx_ll_rcc.h.

__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_PLLSAI1
  • LL_RCC_SDMMC1_CLKSOURCE_PLL
  • LL_RCC_SDMMC1_CLKSOURCE_MSI

Definition at line 1968 of file stm32l4xx_ll_rcc.h.

__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_PCLK
  • LL_RCC_SWPMI1_CLKSOURCE_HSI

Definition at line 2032 of file stm32l4xx_ll_rcc.h.

__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 1872 of file stm32l4xx_ll_rcc.h.

__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
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

Definition at line 1851 of file stm32l4xx_ll_rcc.h.

__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_PLLSAI1
  • LL_RCC_USB_CLKSOURCE_PLL
  • LL_RCC_USB_CLKSOURCE_MSI

Definition at line 2001 of file stm32l4xx_ll_rcc.h.

__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
Return values:
None

Definition at line 1799 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_SetDFSDMClockSource ( uint32_t  DFSDMxSource )

Configure DFSDM clock source CCIPR DFSDMSEL LL_RCC_SetDFSDMClockSource.

Parameters:
DFSDMxSourceThis parameter can be one of the following values:

  • LL_RCC_DFSDM_CLKSOURCE_PCLK
  • LL_RCC_DFSDM_CLKSOURCE_SYSCLK
Return values:
None

Definition at line 1825 of file stm32l4xx_ll_rcc.h.

__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
Return values:
None

Definition at line 1699 of file stm32l4xx_ll_rcc.h.

__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 1718 of file stm32l4xx_ll_rcc.h.

__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 1679 of file stm32l4xx_ll_rcc.h.

__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_PLLSAI1
  • LL_RCC_RNG_CLKSOURCE_PLL
  • LL_RCC_RNG_CLKSOURCE_MSI
Return values:
None

Definition at line 1767 of file stm32l4xx_ll_rcc.h.

__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
Return values:
None

Definition at line 1737 of file stm32l4xx_ll_rcc.h.

__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_PLLSAI1
  • LL_RCC_SDMMC1_CLKSOURCE_PLL
  • LL_RCC_SDMMC1_CLKSOURCE_MSI
Return values:
None

Definition at line 1752 of file stm32l4xx_ll_rcc.h.

__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_PCLK
  • LL_RCC_SWPMI1_CLKSOURCE_HSI
Return values:
None

Definition at line 1812 of file stm32l4xx_ll_rcc.h.

__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 1664 of file stm32l4xx_ll_rcc.h.

__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
Return values:
None

Definition at line 1645 of file stm32l4xx_ll_rcc.h.

__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_PLLSAI1
  • LL_RCC_USB_CLKSOURCE_PLL
  • LL_RCC_USB_CLKSOURCE_MSI
Return values:
None

Definition at line 1783 of file stm32l4xx_ll_rcc.h.