|
STM32F4xx HAL Driver master
STM32CubeF4 HAL / LL Drivers API Reference
|
System Configuration functions. More...
Functions | |
| void | LL_SetSystemCoreClock (uint32_t HCLKFrequency) |
| This function sets directly SystemCoreClock CMSIS variable. | |
| ErrorStatus | LL_SetFlashLatency (uint32_t HCLK_Frequency) |
| Update number of Flash wait states in line with new frequency and current voltage range. | |
| ErrorStatus | LL_PLL_ConfigSystemClock_HSI (LL_UTILS_PLLInitTypeDef *UTILS_PLLInitStruct, LL_UTILS_ClkInitTypeDef *UTILS_ClkInitStruct) |
| This function configures system clock at maximum frequency with HSI as clock source of the PLL. | |
| ErrorStatus | LL_PLL_ConfigSystemClock_HSE (uint32_t HSEFrequency, uint32_t HSEBypass, LL_UTILS_PLLInitTypeDef *UTILS_PLLInitStruct, LL_UTILS_ClkInitTypeDef *UTILS_ClkInitStruct) |
| This function configures system clock with HSE as clock source of the PLL. | |
System Configuration functions.
===============================================================================
##### System Configuration functions #####
===============================================================================
[..]
System, AHB and APB buses clocks configuration
(+) The maximum frequency of the SYSCLK, HCLK, PCLK1 and PCLK2 is 180000000 Hz.
| ErrorStatus LL_PLL_ConfigSystemClock_HSE | ( | uint32_t | HSEFrequency, |
| uint32_t | HSEBypass, | ||
| LL_UTILS_PLLInitTypeDef * | UTILS_PLLInitStruct, | ||
| LL_UTILS_ClkInitTypeDef * | UTILS_ClkInitStruct ) |
This function configures system clock with HSE as clock source of the PLL.
| HSEFrequency | Value between Min_Data = 4000000 and Max_Data = 26000000 |
| HSEBypass | This parameter can be one of the following values: |
| 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. |
| An | ErrorStatus enumeration value:
|
< HSE Bypass is enabled
Definition at line 540 of file stm32f4xx_ll_utils.c.
References assert_param, IS_LL_UTILS_HSE_BYPASS, IS_LL_UTILS_HSE_FREQUENCY, LL_UTILS_HSEBYPASS_ON, LL_UTILS_PLLInitTypeDef::PLLM, LL_UTILS_PLLInitTypeDef::PLLN, LL_UTILS_PLLInitTypeDef::PLLP, UTILS_EnablePLLAndSwitchSystem(), UTILS_GetPLLOutputFrequency(), and UTILS_PLL_IsBusy().
| ErrorStatus LL_PLL_ConfigSystemClock_HSI | ( | LL_UTILS_PLLInitTypeDef * | UTILS_PLLInitStruct, |
| LL_UTILS_ClkInitTypeDef * | UTILS_ClkInitStruct ) |
This function configures system clock at maximum frequency with HSI as clock source of the PLL.
| 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. |
| An | ErrorStatus enumeration value:
|
Definition at line 483 of file stm32f4xx_ll_utils.c.
References HSI_VALUE, LL_UTILS_PLLInitTypeDef::PLLM, LL_UTILS_PLLInitTypeDef::PLLN, LL_UTILS_PLLInitTypeDef::PLLP, UTILS_EnablePLLAndSwitchSystem(), UTILS_GetPLLOutputFrequency(), and UTILS_PLL_IsBusy().
| ErrorStatus LL_SetFlashLatency | ( | uint32_t | HCLK_Frequency | ) |
Update number of Flash wait states in line with new frequency and current voltage range.
| HCLK_Frequency | HCLK frequency |
| An | ErrorStatus enumeration value:
|
< HCLK frequency to set FLASH latency 2 in power scale 2
< HCLK frequency to set FLASH latency 1 in power scale 2
Definition at line 338 of file stm32f4xx_ll_utils.c.
References UTILS_SCALE2_LATENCY1_FREQ, and UTILS_SCALE2_LATENCY2_FREQ.
Referenced by UTILS_EnablePLLAndSwitchSystem().
| void LL_SetSystemCoreClock | ( | uint32_t | HCLKFrequency | ) |
This function sets directly SystemCoreClock CMSIS variable.
| HCLKFrequency | HCLK frequency in Hz (can be calculated thanks to RCC helper macro) |
| None |
Definition at line 323 of file stm32f4xx_ll_utils.c.
Referenced by UTILS_EnablePLLAndSwitchSystem().