STM32L443xx HAL User Manual
Defines | Functions
stm32l4xx_ll_utils.c File Reference

UTILS LL module driver. More...

#include "stm32l4xx_ll_utils.h"
#include "stm32l4xx_ll_rcc.h"
#include "stm32l4xx_ll_system.h"
#include "stm32l4xx_ll_pwr.h"

Go to the source code of this file.

Defines

#define assert_param(expr)   ((void)0U)
#define UTILS_MAX_FREQUENCY_SCALE1   80000000U
#define UTILS_MAX_FREQUENCY_SCALE2   26000000U
#define UTILS_PLLVCO_INPUT_MIN   4000000U
#define UTILS_PLLVCO_INPUT_MAX   16000000U
#define UTILS_PLLVCO_OUTPUT_MIN   64000000U
#define UTILS_PLLVCO_OUTPUT_MAX   344000000U
#define UTILS_HSE_FREQUENCY_MIN   4000000U
#define UTILS_HSE_FREQUENCY_MAX   48000000U
#define UTILS_SCALE1_LATENCY1_FREQ   16000000U
#define UTILS_SCALE1_LATENCY2_FREQ   32000000U
#define UTILS_SCALE1_LATENCY3_FREQ   48000000U
#define UTILS_SCALE1_LATENCY4_FREQ   64000000U
#define UTILS_SCALE2_LATENCY1_FREQ   6000000U
#define UTILS_SCALE2_LATENCY2_FREQ   12000000U
#define UTILS_SCALE2_LATENCY3_FREQ   18000000U
#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__)   ((8U <= (__VALUE__)) && ((__VALUE__) <= 86U))
#define IS_LL_UTILS_PLLR_VALUE(__VALUE__)
#define IS_LL_UTILS_PLLVCO_INPUT(__VALUE__)   ((UTILS_PLLVCO_INPUT_MIN <= (__VALUE__)) && ((__VALUE__) <= UTILS_PLLVCO_INPUT_MAX))
#define IS_LL_UTILS_PLLVCO_OUTPUT(__VALUE__)   ((UTILS_PLLVCO_OUTPUT_MIN <= (__VALUE__)) && ((__VALUE__) <= UTILS_PLLVCO_OUTPUT_MAX))
#define IS_LL_UTILS_PLL_FREQUENCY(__VALUE__)
#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_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 HCLKFrequency)
 Update number of Flash wait states in line with new frequency and current voltage range.
ErrorStatus LL_PLL_ConfigSystemClock_MSI (LL_UTILS_PLLInitTypeDef *UTILS_PLLInitStruct, LL_UTILS_ClkInitTypeDef *UTILS_ClkInitStruct)
 This function configures system clock with MSI as clock source of the PLL.
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 stm32l4xx_ll_utils.c.


Define Documentation

#define assert_param (   expr)    ((void)0U)