STM32F4xx HAL Driver master
STM32CubeF4 HAL / LL Drivers API Reference
Loading...
Searching...
No Matches
UTILS Private functions
Collaboration diagram for UTILS Private functions:

Functions

static uint32_t UTILS_GetPLLOutputFrequency (uint32_t PLL_InputFrequency, LL_UTILS_PLLInitTypeDef *UTILS_PLLInitStruct)
 Function to check that PLL can be modified.
static ErrorStatus UTILS_EnablePLLAndSwitchSystem (uint32_t SYSCLK_Frequency, LL_UTILS_ClkInitTypeDef *UTILS_ClkInitStruct)
 Function to enable PLL and switch system clock to PLL.
static ErrorStatus UTILS_PLL_IsBusy (void)
 Function to check that PLL can be modified.

Detailed Description

Function Documentation

◆ UTILS_EnablePLLAndSwitchSystem()

ErrorStatus UTILS_EnablePLLAndSwitchSystem ( uint32_t SYSCLK_Frequency,
LL_UTILS_ClkInitTypeDef * UTILS_ClkInitStruct )
static

Function to enable PLL and switch system clock to PLL.

Parameters
SYSCLK_FrequencySYSCLK frequency
UTILS_ClkInitStructpointer to a LL_UTILS_ClkInitTypeDef structure that contains the configuration information for the BUS prescalers.
Return values
AnErrorStatus enumeration value:
  • SUCCESS: No problem to switch system to PLL
  • ERROR: Problem to switch system to PLL

Definition at line 681 of file stm32f4xx_ll_utils.c.

References LL_UTILS_ClkInitTypeDef::AHBCLKDivider, LL_UTILS_ClkInitTypeDef::APB1CLKDivider, LL_UTILS_ClkInitTypeDef::APB2CLKDivider, assert_param, IS_LL_UTILS_APB1_DIV, IS_LL_UTILS_APB2_DIV, IS_LL_UTILS_SYSCLK_DIV, LL_SetFlashLatency(), and LL_SetSystemCoreClock().

Referenced by LL_PLL_ConfigSystemClock_HSE(), and LL_PLL_ConfigSystemClock_HSI().

Here is the call graph for this function:

◆ UTILS_GetPLLOutputFrequency()

uint32_t UTILS_GetPLLOutputFrequency ( uint32_t PLL_InputFrequency,
LL_UTILS_PLLInitTypeDef * UTILS_PLLInitStruct )
static

Function to check that PLL can be modified.

Parameters
PLL_InputFrequencyPLL input frequency (in Hz)
UTILS_PLLInitStructpointer to a LL_UTILS_PLLInitTypeDef structure that contains the configuration information for the PLL.
Return values
PLLoutput frequency (in Hz)

Definition at line 611 of file stm32f4xx_ll_utils.c.

References assert_param, IS_LL_UTILS_PLL_FREQUENCY, IS_LL_UTILS_PLLM_VALUE, IS_LL_UTILS_PLLN_VALUE, IS_LL_UTILS_PLLP_VALUE, IS_LL_UTILS_PLLVCO_INPUT, IS_LL_UTILS_PLLVCO_OUTPUT, LL_UTILS_PLLInitTypeDef::PLLM, LL_UTILS_PLLInitTypeDef::PLLN, and LL_UTILS_PLLInitTypeDef::PLLP.

Referenced by LL_PLL_ConfigSystemClock_HSE(), and LL_PLL_ConfigSystemClock_HSI().

◆ UTILS_PLL_IsBusy()

ErrorStatus UTILS_PLL_IsBusy ( void )
static

Function to check that PLL can be modified.

Return values
AnErrorStatus enumeration value:
  • SUCCESS: PLL modification can be done
  • ERROR: PLL is busy

Definition at line 642 of file stm32f4xx_ll_utils.c.

Referenced by LL_PLL_ConfigSystemClock_HSE(), and LL_PLL_ConfigSystemClock_HSI().