STM32F439xx HAL User Manual
Functions
PLL
RCC Exported Functions

Functions

__STATIC_INLINE void LL_RCC_PLL_Enable (void)
 Enable PLL.
__STATIC_INLINE void LL_RCC_PLL_Disable (void)
 Disable PLL.
__STATIC_INLINE uint32_t LL_RCC_PLL_IsReady (void)
 Check if PLL Ready.
__STATIC_INLINE void LL_RCC_PLL_ConfigDomain_SYS (uint32_t Source, uint32_t PLLM, uint32_t PLLN, uint32_t PLLP_R)
 Configure PLL used for SYSCLK Domain.
__STATIC_INLINE void LL_RCC_PLL_ConfigDomain_48M (uint32_t Source, uint32_t PLLM, uint32_t PLLN, uint32_t PLLQ)
 Configure PLL used for 48Mhz domain clock.
__STATIC_INLINE void LL_RCC_PLL_SetMainSource (uint32_t PLLSource)
 Configure PLL clock source.
__STATIC_INLINE uint32_t LL_RCC_PLL_GetMainSource (void)
 Get the oscillator used as PLL clock source.
__STATIC_INLINE uint32_t LL_RCC_PLL_GetN (void)
 Get Main PLL multiplication factor for VCO.
__STATIC_INLINE uint32_t LL_RCC_PLL_GetP (void)
 Get Main PLL division factor for PLLP.
__STATIC_INLINE uint32_t LL_RCC_PLL_GetQ (void)
 Get Main PLL division factor for PLLQ.
__STATIC_INLINE uint32_t LL_RCC_PLL_GetDivider (void)
 Get Division factor for the main PLL and other PLL.
__STATIC_INLINE void LL_RCC_PLL_ConfigSpreadSpectrum (uint32_t Mod, uint32_t Inc, uint32_t Sel)
 Configure Spread Spectrum used for PLL.
__STATIC_INLINE uint32_t LL_RCC_PLL_GetPeriodModulation (void)
 Get Spread Spectrum Modulation Period for PLL.
__STATIC_INLINE uint32_t LL_RCC_PLL_GetStepIncrementation (void)
 Get Spread Spectrum Incrementation Step for PLL.
__STATIC_INLINE uint32_t LL_RCC_PLL_GetSpreadSelection (void)
 Get Spread Spectrum Selection for PLL.
__STATIC_INLINE void LL_RCC_PLL_SpreadSpectrum_Enable (void)
 Enable Spread Spectrum for PLL.
__STATIC_INLINE void LL_RCC_PLL_SpreadSpectrum_Disable (void)
 Disable Spread Spectrum for PLL.

Function Documentation

__STATIC_INLINE void LL_RCC_PLL_ConfigDomain_48M ( uint32_t  Source,
uint32_t  PLLM,
uint32_t  PLLN,
uint32_t  PLLQ 
)

Configure PLL used for 48Mhz domain clock.

Note:
PLL Source and PLLM Divider can be written only when PLL, PLLI2S and PLLSAI(*) are disabled
PLLN/PLLQ can be written only when PLL is disabled
This can be selected for USB, RNG, SDIO
Reference Manual to LL API cross reference:
PLLCFGR PLLSRC LL_RCC_PLL_ConfigDomain_48M
PLLCFGR PLLM LL_RCC_PLL_ConfigDomain_48M
PLLCFGR PLLN LL_RCC_PLL_ConfigDomain_48M
PLLCFGR PLLQ LL_RCC_PLL_ConfigDomain_48M
Parameters:
SourceThis parameter can be one of the following values:
PLLMThis parameter can be one of the following values:
PLLNBetween 50/192(*) and 432

(*) value not defined in all devices.

Parameters:
PLLQThis parameter can be one of the following values:
Return values:
None

Definition at line 4428 of file stm32f4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_PLL_ConfigDomain_SYS ( uint32_t  Source,
uint32_t  PLLM,
uint32_t  PLLN,
uint32_t  PLLP_R 
)

Configure PLL used for SYSCLK Domain.

Note:
PLL Source and PLLM Divider can be written only when PLL, PLLI2S and PLLSAI(*) are disabled
PLLN/PLLP can be written only when PLL is disabled
Reference Manual to LL API cross reference:
PLLCFGR PLLSRC LL_RCC_PLL_ConfigDomain_SYS
PLLCFGR PLLM LL_RCC_PLL_ConfigDomain_SYS
PLLCFGR PLLN LL_RCC_PLL_ConfigDomain_SYS
PLLCFGR PLLR LL_RCC_PLL_ConfigDomain_SYS
PLLCFGR PLLP LL_RCC_PLL_ConfigDomain_SYS
Parameters:
SourceThis parameter can be one of the following values:
PLLMThis parameter can be one of the following values:
PLLNBetween 50/192(*) and 432

(*) value not defined in all devices.

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

Definition at line 4322 of file stm32f4xx_ll_rcc.h.

Referenced by LL_PLL_ConfigSystemClock_HSE(), and LL_PLL_ConfigSystemClock_HSI().

__STATIC_INLINE void LL_RCC_PLL_ConfigSpreadSpectrum ( uint32_t  Mod,
uint32_t  Inc,
uint32_t  Sel 
)

Configure Spread Spectrum used for PLL.

Note:
These bits must be written before enabling PLL
Reference Manual to LL API cross reference:
SSCGR MODPER LL_RCC_PLL_ConfigSpreadSpectrum
SSCGR INCSTEP LL_RCC_PLL_ConfigSpreadSpectrum
SSCGR SPREADSEL LL_RCC_PLL_ConfigSpreadSpectrum
Parameters:
ModBetween Min_Data=0 and Max_Data=8191
IncBetween Min_Data=0 and Max_Data=32767
SelThis parameter can be one of the following values:
Return values:
None

Definition at line 5078 of file stm32f4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_PLL_Disable ( void  )

Disable PLL.

Note:
Cannot be disabled if the PLL clock is used as the system clock
Reference Manual to LL API cross reference:
CR PLLON LL_RCC_PLL_Disable
Return values:
None

Definition at line 4213 of file stm32f4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_PLL_Enable ( void  )

Enable PLL.

Reference Manual to LL API cross reference:
CR PLLON LL_RCC_PLL_Enable
Return values:
None

Definition at line 4202 of file stm32f4xx_ll_rcc.h.

Referenced by UTILS_EnablePLLAndSwitchSystem().

__STATIC_INLINE uint32_t LL_RCC_PLL_GetDivider ( void  )
__STATIC_INLINE uint32_t LL_RCC_PLL_GetMainSource ( void  )

Get the oscillator used as PLL clock source.

Reference Manual to LL API cross reference:
PLLCFGR PLLSRC LL_RCC_PLL_GetMainSource
Return values:
Returnedvalue can be one of the following values:

Definition at line 4874 of file stm32f4xx_ll_rcc.h.

Referenced by LL_RCC_GetI2SClockFreq(), LL_RCC_GetSAIClockFreq(), RCC_PLL_GetFreqDomain_48M(), RCC_PLL_GetFreqDomain_SYS(), RCC_PLLSAI_GetFreqDomain_LTDC(), and RCC_PLLSAI_GetFreqDomain_SAI().

__STATIC_INLINE uint32_t LL_RCC_PLL_GetN ( void  )

Get Main PLL multiplication factor for VCO.

Reference Manual to LL API cross reference:
PLLCFGR PLLN LL_RCC_PLL_GetN
Return values:
Between50/192(*) and 432

(*) value not defined in all devices.

Definition at line 4886 of file stm32f4xx_ll_rcc.h.

Referenced by RCC_PLL_GetFreqDomain_48M(), and RCC_PLL_GetFreqDomain_SYS().

__STATIC_INLINE uint32_t LL_RCC_PLL_GetP ( void  )

Get Main PLL division factor for PLLP.

Reference Manual to LL API cross reference:
PLLCFGR PLLP LL_RCC_PLL_GetP
Return values:
Returnedvalue can be one of the following values:

Definition at line 4900 of file stm32f4xx_ll_rcc.h.

Referenced by RCC_PLL_GetFreqDomain_SYS().

__STATIC_INLINE uint32_t LL_RCC_PLL_GetPeriodModulation ( void  )

Get Spread Spectrum Modulation Period for PLL.

Reference Manual to LL API cross reference:
SSCGR MODPER LL_RCC_PLL_GetPeriodModulation
Return values:
BetweenMin_Data=0 and Max_Data=8191

Definition at line 5088 of file stm32f4xx_ll_rcc.h.

__STATIC_INLINE uint32_t LL_RCC_PLL_GetQ ( void  )

Get Main PLL division factor for PLLQ.

Note:
used for PLL48MCLK selected for USB, RNG, SDIO (48 MHz clock)
Reference Manual to LL API cross reference:
PLLCFGR PLLQ LL_RCC_PLL_GetQ
Return values:
Returnedvalue can be one of the following values:

Definition at line 4925 of file stm32f4xx_ll_rcc.h.

Referenced by RCC_PLL_GetFreqDomain_48M().

__STATIC_INLINE uint32_t LL_RCC_PLL_GetSpreadSelection ( void  )

Get Spread Spectrum Selection for PLL.

Note:
Must be written before enabling PLL
Reference Manual to LL API cross reference:
SSCGR SPREADSEL LL_RCC_PLL_GetSpreadSelection
Return values:
Returnedvalue can be one of the following values:

Definition at line 5112 of file stm32f4xx_ll_rcc.h.

__STATIC_INLINE uint32_t LL_RCC_PLL_GetStepIncrementation ( void  )

Get Spread Spectrum Incrementation Step for PLL.

Note:
Must be written before enabling PLL
Reference Manual to LL API cross reference:
SSCGR INCSTEP LL_RCC_PLL_GetStepIncrementation
Return values:
BetweenMin_Data=0 and Max_Data=32767

Definition at line 5099 of file stm32f4xx_ll_rcc.h.

__STATIC_INLINE uint32_t LL_RCC_PLL_IsReady ( void  )

Check if PLL Ready.

Reference Manual to LL API cross reference:
CR PLLRDY LL_RCC_PLL_IsReady
Return values:
Stateof bit (1 or 0).

Definition at line 4223 of file stm32f4xx_ll_rcc.h.

Referenced by LL_RCC_DeInit(), LL_RCC_GetI2SClockFreq(), LL_RCC_GetRNGClockFreq(), LL_RCC_GetSAIClockFreq(), LL_RCC_GetSDIOClockFreq(), LL_RCC_GetUSBClockFreq(), UTILS_EnablePLLAndSwitchSystem(), and UTILS_PLL_IsBusy().

__STATIC_INLINE void LL_RCC_PLL_SetMainSource ( uint32_t  PLLSource)

Configure PLL clock source.

Reference Manual to LL API cross reference:
PLLCFGR PLLSRC LL_RCC_PLL_SetMainSource
Parameters:
PLLSourceThis parameter can be one of the following values:
Return values:
None

Definition at line 4862 of file stm32f4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_PLL_SpreadSpectrum_Disable ( void  )

Disable Spread Spectrum for PLL.

Reference Manual to LL API cross reference:
SSCGR SSCGEN LL_RCC_PLL_SpreadSpectrum_Disable
Return values:
None

Definition at line 5132 of file stm32f4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_PLL_SpreadSpectrum_Enable ( void  )

Enable Spread Spectrum for PLL.

Reference Manual to LL API cross reference:
SSCGR SSCGEN LL_RCC_PLL_SpreadSpectrum_Enable
Return values:
None

Definition at line 5122 of file stm32f4xx_ll_rcc.h.