STM32L486xx HAL User Manual
|
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__) ((8 <= (__VALUE__)) && ((__VALUE__) <= 86)) |
#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_SetFlashLatency (uint32_t HCLK_Frequency) |
Update number of Flash wait states in line with new frequency and current voltage range. | |
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_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. |
UTILS LL module driver.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file stm32l4xx_ll_utils.c.
#define assert_param | ( | expr | ) | ((void)0U) |
Definition at line 43 of file stm32l4xx_ll_utils.c.
Referenced by LL_PLL_ConfigSystemClock_HSE(), UTILS_EnablePLLAndSwitchSystem(), and UTILS_GetPLLOutputFrequency().