STM32F103xB HAL User Manual
|
UTILS LL module driver. More...
#include "stm32f1xx_ll_rcc.h"
#include "stm32f1xx_ll_utils.h"
#include "stm32f1xx_ll_system.h"
Go to the source code of this file.
Defines | |
#define | assert_param(expr) ((void)0U) |
#define | UTILS_PLL_OUTPUT_MAX RCC_MAX_FREQUENCY |
#define | UTILS_PLL2_OUTPUT_MAX RCC_MAX_FREQUENCY |
#define | UTILS_HSE_FREQUENCY_MIN RCC_HSE_MIN |
#define | UTILS_HSE_FREQUENCY_MAX RCC_HSE_MAX |
#define | UTILS_LATENCY1_FREQ 24000000U |
#define | UTILS_LATENCY2_FREQ 48000000U |
#define | IS_LL_UTILS_SYSCLK_DIV(__VALUE__) |
#define | IS_LL_UTILS_APB1_DIV(__VALUE__) |
#define | IS_LL_UTILS_APB2_DIV(__VALUE__) |
#define | IS_LL_UTILS_PLLMUL_VALUE(__VALUE__) |
#define | IS_LL_UTILS_PREDIV_VALUE(__VALUE__) (((__VALUE__) == LL_RCC_PREDIV_DIV_1) || ((__VALUE__) == LL_RCC_PREDIV_DIV_2)) |
#define | IS_LL_UTILS_PLL_FREQUENCY(__VALUE__) ((__VALUE__) <= UTILS_PLL_OUTPUT_MAX) |
#define | IS_LL_UTILS_HSE_BYPASS(__STATE__) |
#define | IS_LL_UTILS_HSE_FREQUENCY(__FREQUENCY__) (((__FREQUENCY__) >= UTILS_HSE_FREQUENCY_MIN) && ((__FREQUENCY__) <= UTILS_HSE_FREQUENCY_MAX)) |
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_PLL_HSE_ConfigSystemClock (uint32_t PLL_InputFrequency, uint32_t HSEBypass, LL_UTILS_PLLInitTypeDef *UTILS_PLLInitStruct, LL_UTILS_ClkInitTypeDef *UTILS_ClkInitStruct) |
This function enable the HSE when it is used by PLL or PLL2. | |
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. | |
void | LL_Init1msTick (uint32_t HCLKFrequency) |
This function configures the Cortex-M SysTick source to have 1ms time base. | |
void | LL_mDelay (uint32_t Delay) |
This function provides accurate delay (in milliseconds) based on SysTick counter flag. | |
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. |
UTILS LL module driver.
This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause
Definition in file stm32f1xx_ll_utils.c.
#define assert_param | ( | expr | ) | ((void)0U) |
Definition at line 27 of file stm32f1xx_ll_utils.c.
Referenced by LL_PLL_ConfigSystemClock_HSE(), LL_PLL_ConfigSystemClock_HSI(), UTILS_EnablePLLAndSwitchSystem(), and UTILS_GetPLLOutputFrequency().