RTEMS 6.1
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Functions
stm32h7xx_hal_timebase_tim_template.c File Reference

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

#include "stm32h7xx_hal.h"

Functions

void TIM6_DAC_IRQHandler (void)
 This function handles TIM interrupt request.
 
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.
 
void HAL_SuspendTick (void)
 Suspend Tick increment.
 
void HAL_ResumeTick (void)
 Resume Tick increment.
 
void HAL_TIM_PeriodElapsedCallback (TIM_HandleTypeDef *htim)
 Period elapsed callback in non blocking mode.
 

Detailed Description

HAL time base based on the hardware TIM.

Author
MCD Application Team
     This file overrides the native HAL time base functions (defined as weak)
     the TIM time base:
      + Initializes the TIM peripheral generate a Period elapsed Event each 1ms
      + HAL_IncTick is called inside HAL_TIM_PeriodElapsedCallback ie each 1ms
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.

 ==============================================================================
                       ##### How to use this driver #####
 ==============================================================================
   [..]
   This file must be copied to the application folder and modified as follows:
   (#) Rename it to 'stm32h7xx_hal_timebase_tim.c'
   (#) Add this file and the TIM HAL drivers to your project and uncomment
      HAL_TIM_MODULE_ENABLED define in stm32h7xx_hal_conf.h

Function Documentation

◆ HAL_InitTick()

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.

Note
This function is called automatically at the beginning of program after reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig().
Parameters
TickPriorityTick interrupt priority.
Return values
HALstatus

◆ TIM6_DAC_IRQHandler()

void TIM6_DAC_IRQHandler ( void  )

This function handles TIM interrupt request.

Parameters
None
Return values
None