firmware
IEM Firmware Documentation
Loading...
Searching...
No Matches
stm32h7xx_hal_timebase_tim.c File Reference

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

#include "stm32h7xx_hal.h"
#include "stm32h7xx_hal_tim.h"
Include dependency graph for stm32h7xx_hal_timebase_tim.c:

Functions

HAL_StatusTypeDef HAL_InitTick (uint32_t TickPriority)
 This function configures the TIM5 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.

Variables

TIM_HandleTypeDef htim5

Detailed Description

HAL time base based on the hardware TIM.

Attention

Copyright (c) 2025 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.

Function Documentation

◆ HAL_InitTick()

HAL_StatusTypeDef HAL_InitTick ( uint32_t TickPriority)

This function configures the TIM5 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

◆ HAL_ResumeTick()

void HAL_ResumeTick ( void )

Resume Tick increment.

Note
Enable the tick increment by Enabling TIM5 update interrupt.
Parameters
None
Return values
None

◆ HAL_SuspendTick()

void HAL_SuspendTick ( void )

Suspend Tick increment.

Note
Disable the tick increment by disabling TIM5 update interrupt.
Parameters
None
Return values
None

Variable Documentation

◆ htim5

TIM_HandleTypeDef htim5