HAL
LL_PLL_ConfigSystemClock_HSE() is only used within HAL.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesHALLL_PLL_ConfigSystemClock_HSE()

LL_PLL_ConfigSystemClock_HSE() function

This function configures system clock with HSE as clock source of the PLL

Syntax

ErrorStatus LL_PLL_ConfigSystemClock_HSE(uint32_t HSEFrequency,     uint32_t HSEBypass,     LL_UTILS_PLLInitTypeDef *UTILS_PLLInitStruct,     LL_UTILS_ClkInitTypeDef *UTILS_ClkInitStruct);
Implemented in stm32f4xx_ll_utils.c:540

Arguments

HSEFrequency

Value between Min_Data = 4000000 and Max_Data = 26000000

HSEBypass

This parameter can be one of the following values: @arg LL_UTILS_HSEBYPASS_ON @arg LL_UTILS_HSEBYPASS_OFF

UTILS_PLLInitStruct

pointer to a LL_UTILS_PLLInitTypeDef structure that contains the configuration information for the PLL.

UTILS_ClkInitStruct

pointer to a LL_UTILS_ClkInitTypeDef structure that contains the configuration information for the BUS prescalers.

Return value

An ErrorStatus enumeration value: - SUCCESS: Max frequency configuration done - ERROR: Max frequency configuration not done

Notes

The application need to ensure that PLL is disabled. - PLL output frequency = (((HSI frequency / PLLM) * PLLN) / PLLP) - PLLM: ensure that the VCO input frequency ranges from RCC_PLLVCO_INPUT_MIN to RCC_PLLVCO_INPUT_MAX (PLLVCO_input = HSI frequency / PLLM) - PLLN: ensure that the VCO output frequency is between RCC_PLLVCO_OUTPUT_MIN and RCC_PLLVCO_OUTPUT_MAX (PLLVCO_output = PLLVCO_input * PLLN) - PLLP: ensure that max frequency at 180000000 Hz is reach (PLLVCO_output / PLLP)

References

LocationText
stm32f4xx_ll_utils.c:540
ErrorStatus LL_PLL_ConfigSystemClock_HSE(uint32_t HSEFrequency, uint32_t HSEBypass,
stm32f4xx_ll_utils.h:284
ErrorStatus LL_PLL_ConfigSystemClock_HSE(uint32_t HSEFrequency, uint32_t HSEBypass,

Call Tree

Data read by LL_PLL_ConfigSystemClock_HSE()
Data written by LL_PLL_ConfigSystemClock_HSE()
LL_PLL_ConfigSystemClock_HSE()
LL_PLL_ConfigSystemClock_HSE()::status
LL_PLL_ConfigSystemClock_HSE()::pllfreq
all items filtered out
Type of LL_PLL_ConfigSystemClock_HSE()
LL_PLL_ConfigSystemClock_HSE()
uint32_t
all items filtered out