SmartBar
Loading...
Searching...
No Matches
stm32f3xx_hal_timebase_tim.c File Reference

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

#include "stm32f3xx_hal.h"
#include "stm32f3xx_hal_tim.h"

Functions

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.
 

Variables

TIM_HandleTypeDef htim6
 

Detailed Description

HAL time base based on the hardware TIM.

Attention

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

◆ HAL_ResumeTick()

void HAL_ResumeTick ( void )

Resume Tick increment.

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

◆ HAL_SuspendTick()

void HAL_SuspendTick ( void )

Suspend Tick increment.

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