STM32L4xx_HAL_Driver  1.14.0
stm32l4xx_hal_timebase_tim_template.c File Reference

HAL time base based on the hardware TIM Template. More...

Go to the source code of this file.

Functions

void TIM6_DAC_IRQHandler (void)
 This function handles TIM interrupt request. More...
 
HAL_StatusTypeDef HAL_InitTick (uint32_t TickPriority)
 This function configures the TIM6 as a time base source. The time source is configured to have 1ms time base with a dedicated Tick interrupt priority. More...
 
void HAL_SuspendTick (void)
 Suspend Tick increment. More...
 
void HAL_ResumeTick (void)
 Resume Tick increment. More...
 
void HAL_TIM_PeriodElapsedCallback (TIM_HandleTypeDef *htim)
 Period elapsed callback in non blocking mode. More...
 

Variables

TIM_HandleTypeDef TimHandle
 

Detailed Description

HAL time base based on the hardware TIM Template.

Author
MCD Application Team This file override the native HAL time base functions (defined as weak) the TIM time base:
  • Intializes the TIM peripheral to generate a Period elapsed Event each 1ms
  • HAL_IncTick is called inside HAL_TIM_PeriodElapsedCallback ie each 1ms
 ==============================================================================
                       ##### How to use this driver #####
 ==============================================================================
   [..]
   This file must be copied to the application folder and modified as follows:
   (#) Rename it to 'stm32l4xx_hal_timebase_tim.c'
   (#) Add this file and the TIM HAL driver files to your project and make sure
      HAL_TIM_MODULE_ENABLED is defined in stm32l4xx_hal_conf.h 

   [..]
   (@) The application needs to ensure that the time base is always set to 1 millisecond
      to have correct HAL operation.
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_timebase_tim_template.c.