Prusa MINI Firmware overview
TIM_Exported_Functions_Group9
Collaboration diagram for TIM_Exported_Functions_Group9:

Functions

void HAL_TIM_PeriodElapsedCallback (TIM_HandleTypeDef *htim)
 Period elapsed callback in non blocking mode. More...
 
void HAL_TIM_OC_DelayElapsedCallback (TIM_HandleTypeDef *htim)
 
void HAL_TIM_IC_CaptureCallback (TIM_HandleTypeDef *htim)
 
void HAL_TIM_PWM_PulseFinishedCallback (TIM_HandleTypeDef *htim)
 
void HAL_TIM_TriggerCallback (TIM_HandleTypeDef *htim)
 
void HAL_TIM_ErrorCallback (TIM_HandleTypeDef *htim)
 

Detailed Description

Function Documentation

◆ HAL_TIM_PeriodElapsedCallback()

void HAL_TIM_PeriodElapsedCallback ( TIM_HandleTypeDef htim)

Period elapsed callback in non blocking mode.

Note
This function is called when TIM6 interrupt took place, inside HAL_TIM_IRQHandler(). It makes a direct call to HAL_IncTick() to increment a global variable "uwTick" used as application time base.
Parameters
htim: TIM handle
Return values
None
1033  {
1034  /* USER CODE BEGIN Callback 0 */
1035 
1036  if (htim->Instance == TIM6) {
1037  HAL_IncTick();
1038  app_tim6_tick();
1039  }
1040 #if 0 // trick to disable following code generated by Cube
1041  /* USER CODE END Callback 0 */
1042  if (htim->Instance == TIM6) {
1043  HAL_IncTick();
1044  }
1045  /* USER CODE BEGIN Callback 1 */
1046 #endif
1047  else if (htim->Instance == TIM14) {
1048  app_tim14_tick();
1049  }
1050  /* USER CODE END Callback 1 */
1051 }
Here is the call graph for this function:

◆ HAL_TIM_OC_DelayElapsedCallback()

void HAL_TIM_OC_DelayElapsedCallback ( TIM_HandleTypeDef htim)

◆ HAL_TIM_IC_CaptureCallback()

void HAL_TIM_IC_CaptureCallback ( TIM_HandleTypeDef htim)

◆ HAL_TIM_PWM_PulseFinishedCallback()

void HAL_TIM_PWM_PulseFinishedCallback ( TIM_HandleTypeDef htim)

◆ HAL_TIM_TriggerCallback()

void HAL_TIM_TriggerCallback ( TIM_HandleTypeDef htim)

◆ HAL_TIM_ErrorCallback()

void HAL_TIM_ErrorCallback ( TIM_HandleTypeDef htim)
HAL_IncTick
void HAL_IncTick(void)
This function is called to increment a global variable "uwTick" used as application time base.
Definition: stm32f4xx_hal.c:328
app_tim14_tick
void app_tim14_tick(void)
Definition: appmain.cpp:173
TIM_HandleTypeDef::Instance
TIM_TypeDef * Instance
Definition: stm32f4xx_hal_tim.h:289
app_tim6_tick
void app_tim6_tick(void)
Definition: appmain.cpp:157