STM32L4xx_HAL_Driver  1.14.0
stm32l4xx_hal.c File Reference

HAL module driver. This is the common part of the HAL initialization. More...

Go to the source code of this file.

Functions

HAL_StatusTypeDef HAL_Init (void)
 Configure the Flash prefetch, the Instruction and Data caches, the time base source, NVIC and any required global low level hardware by calling the HAL_MspInit() callback function to be optionally defined in user file stm32l4xx_hal_msp.c. More...
 
HAL_StatusTypeDef HAL_DeInit (void)
 De-initialize common part of the HAL and stop the source of time base. More...
 
void HAL_MspInit (void)
 Initialize the MSP. More...
 
void HAL_MspDeInit (void)
 DeInitialize the MSP. More...
 
HAL_StatusTypeDef HAL_InitTick (uint32_t TickPriority)
 This function configures the source of the time base: The time source is configured to have 1ms time base with a dedicated Tick interrupt priority. More...
 
void HAL_IncTick (void)
 This function is called to increment a global variable "uwTick" used as application time base. More...
 
uint32_t HAL_GetTick (void)
 Provide a tick value in millisecond. More...
 
uint32_t HAL_GetTickPrio (void)
 This function returns a tick priority. More...
 
HAL_StatusTypeDef HAL_SetTickFreq (uint32_t Freq)
 Set new tick Freq. More...
 
uint32_t HAL_GetTickFreq (void)
 Return tick frequency. More...
 
void HAL_Delay (uint32_t Delay)
 This function provides minimum delay (in milliseconds) based on variable incremented. More...
 
void HAL_SuspendTick (void)
 Suspend Tick increment. More...
 
void HAL_ResumeTick (void)
 Resume Tick increment. More...
 
uint32_t HAL_GetHalVersion (void)
 Return the HAL revision. More...
 
uint32_t HAL_GetREVID (void)
 Return the device revision identifier. More...
 
uint32_t HAL_GetDEVID (void)
 Return the device identifier. More...
 
uint32_t HAL_GetUIDw0 (void)
 Return the first word of the unique device identifier (UID based on 96 bits) More...
 
uint32_t HAL_GetUIDw1 (void)
 Return the second word of the unique device identifier (UID based on 96 bits) More...
 
uint32_t HAL_GetUIDw2 (void)
 Return the third word of the unique device identifier (UID based on 96 bits) More...
 
void HAL_DBGMCU_EnableDBGSleepMode (void)
 Enable the Debug Module during SLEEP mode. More...
 
void HAL_DBGMCU_DisableDBGSleepMode (void)
 Disable the Debug Module during SLEEP mode. More...
 
void HAL_DBGMCU_EnableDBGStopMode (void)
 Enable the Debug Module during STOP0/STOP1/STOP2 modes. More...
 
void HAL_DBGMCU_DisableDBGStopMode (void)
 Disable the Debug Module during STOP0/STOP1/STOP2 modes. More...
 
void HAL_DBGMCU_EnableDBGStandbyMode (void)
 Enable the Debug Module during STANDBY mode. More...
 
void HAL_DBGMCU_DisableDBGStandbyMode (void)
 Disable the Debug Module during STANDBY mode. More...
 
void HAL_SYSCFG_SRAM2Erase (void)
 Start a hardware SRAM2 erase operation. More...
 
void HAL_SYSCFG_EnableMemorySwappingBank (void)
 Enable the Internal FLASH Bank Swapping. More...
 
void HAL_SYSCFG_DisableMemorySwappingBank (void)
 Disable the Internal FLASH Bank Swapping. More...
 
void HAL_SYSCFG_VREFBUF_VoltageScalingConfig (uint32_t VoltageScaling)
 Configure the internal voltage reference buffer voltage scale. More...
 
void HAL_SYSCFG_VREFBUF_HighImpedanceConfig (uint32_t Mode)
 Configure the internal voltage reference buffer high impedance mode. More...
 
void HAL_SYSCFG_VREFBUF_TrimmingConfig (uint32_t TrimmingValue)
 Tune the Internal Voltage Reference buffer (VREFBUF). More...
 
HAL_StatusTypeDef HAL_SYSCFG_EnableVREFBUF (void)
 Enable the Internal Voltage Reference buffer (VREFBUF). More...
 
void HAL_SYSCFG_DisableVREFBUF (void)
 Disable the Internal Voltage Reference buffer (VREFBUF). More...
 
void HAL_SYSCFG_EnableIOAnalogSwitchBooster (void)
 Enable the I/O analog switch voltage booster. More...
 
void HAL_SYSCFG_DisableIOAnalogSwitchBooster (void)
 Disable the I/O analog switch voltage booster. More...
 

Variables

__IO uint32_t uwTick
 
uint32_t uwTickPrio = (1UL << __NVIC_PRIO_BITS)
 
uint32_t uwTickFreq = HAL_TICK_FREQ_DEFAULT
 

Detailed Description

HAL module driver. This is the common part of the HAL initialization.

Author
MCD Application Team
==============================================================================
                   ##### How to use this driver #####
==============================================================================
  [..]
  The common HAL driver contains a set of generic and common APIs that can be
  used by the PPP peripheral drivers and the user to start using the HAL.
  [..]
  The HAL contains two APIs' categories:
       (+) Common HAL APIs
       (+) Services HAL APIs
Attention

© Copyright (c) 2017 STMicroelectronics. All rights reserved.

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