|
STM32F103xB HAL User Manual
|
System Configuration functions. More...
Functions | |
| void | LL_SetSystemCoreClock (uint32_t HCLKFrequency) |
| This function sets directly SystemCoreClock CMSIS variable. | |
| ErrorStatus | LL_SetFlashLatency (uint32_t 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 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 RCC_MAX_FREQUENCY 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 = RCC_HSE_MIN and Max_Data = RCC_HSE_MAX |
| 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:
|
Definition at line 430 of file stm32f1xx_ll_utils.c.
References assert_param, IS_LL_UTILS_HSE_BYPASS, IS_LL_UTILS_HSE_FREQUENCY, IS_LL_UTILS_PREDIV_VALUE, LL_RCC_PLL_ConfigDomain_SYS(), LL_RCC_PLLSOURCE_HSE, LL_UTILS_PLLInitTypeDef::PLLMul, LL_UTILS_PLLInitTypeDef::Prediv, UTILS_EnablePLLAndSwitchSystem(), UTILS_GetPLLOutputFrequency(), and UTILS_PLL_HSE_ConfigSystemClock().
| ErrorStatus LL_PLL_ConfigSystemClock_HSI | ( | LL_UTILS_PLLInitTypeDef * | UTILS_PLLInitStruct, |
| LL_UTILS_ClkInitTypeDef * | UTILS_ClkInitStruct | ||
| ) |
This function configures system clock 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 365 of file stm32f1xx_ll_utils.c.
References assert_param, HSI_VALUE, IS_LL_UTILS_PREDIV_VALUE, LL_RCC_HSI_Enable(), LL_RCC_HSI_IsReady(), LL_RCC_PLL_ConfigDomain_SYS(), LL_RCC_PLLSOURCE_HSI_DIV_2, LL_RCC_PREDIV_DIV_2, LL_UTILS_PLLInitTypeDef::PLLMul, LL_UTILS_PLLInitTypeDef::Prediv, UTILS_EnablePLLAndSwitchSystem(), UTILS_GetPLLOutputFrequency(), and UTILS_PLL_IsBusy().
| ErrorStatus LL_SetFlashLatency | ( | uint32_t | Frequency | ) |
Update number of Flash wait states in line with new frequency and current voltage range.
| Frequency | SYSCLK frequency |
| An | ErrorStatus enumeration value:
|
Definition at line 285 of file stm32f1xx_ll_utils.c.
References LL_FLASH_GetLatency(), LL_FLASH_LATENCY_0, LL_FLASH_LATENCY_1, LL_FLASH_LATENCY_2, LL_FLASH_SetLatency(), UTILS_LATENCY1_FREQ, and UTILS_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 270 of file stm32f1xx_ll_utils.c.
Referenced by UTILS_EnablePLLAndSwitchSystem().
1.7.6.1