STM32F4xx HAL Driver master
STM32CubeF4 HAL / LL Drivers API Reference
Loading...
Searching...
No Matches
stm32f4xx_ll_utils.c File Reference

UTILS LL module driver. More...

Include dependency graph for stm32f4xx_ll_utils.c:

Go to the source code of this file.

Macros

#define assert_param(expr)
#define UTILS_MAX_FREQUENCY_SCALE2   RCC_MAX_FREQUENCY_SCALE2
#define UTILS_PLLVCO_INPUT_MIN   RCC_PLLVCO_INPUT_MIN
#define UTILS_PLLVCO_INPUT_MAX   RCC_PLLVCO_INPUT_MAX
#define UTILS_PLLVCO_OUTPUT_MIN   RCC_PLLVCO_OUTPUT_MIN
#define UTILS_PLLVCO_OUTPUT_MAX   RCC_PLLVCO_OUTPUT_MAX
#define UTILS_HSE_FREQUENCY_MIN   4000000U
#define UTILS_HSE_FREQUENCY_MAX   26000000U
#define UTILS_SCALE2_LATENCY1_FREQ   FLASH_SCALE2_LATENCY1_FREQ
#define UTILS_SCALE2_LATENCY2_FREQ   FLASH_SCALE2_LATENCY2_FREQ
#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_PLLM_VALUE(__VALUE__)
#define IS_LL_UTILS_PLLN_VALUE(__VALUE__)
#define IS_LL_UTILS_PLLP_VALUE(__VALUE__)
#define IS_LL_UTILS_PLLVCO_INPUT(__VALUE__)
#define IS_LL_UTILS_PLLVCO_OUTPUT(__VALUE__)
#define IS_LL_UTILS_PLL_FREQUENCY(__VALUE__)
#define IS_LL_UTILS_HSE_BYPASS(__STATE__)
#define IS_LL_UTILS_HSE_FREQUENCY(__FREQUENCY__)

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.
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 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.

Detailed Description

UTILS LL module driver.

Author
MCD Application Team
Attention

Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Definition in file stm32f4xx_ll_utils.c.

Macro Definition Documentation

◆ assert_param

#define assert_param ( expr)