__weak void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) 0 _2 J0 m- E3 i5 X% r* I{* A% G& z1 V: c. y6 Y* x% O' t
/* Prevent unused argument(s) compilation warning */ ! B, u9 G# c+ O6 ~8 P UNUSED(htim);' n. D0 o8 E1 a2 d; y: {% j* M7 Y
/* NOTE : This function Should not be modified, when the callback is needed,. u: c$ H' F8 i j0 k" I u
the __HAL_TIM_PeriodElapsedCallback could be implemented in the user file" x& X4 G& E+ C {2 \
*/ % k2 x' q# o! a) }! f H4 A% a; G, r. J: [( V0 h& C R
}
{* A% G& z1 V: c. y6 Y* x% O' t
/* Prevent unused argument(s) compilation warning */
UNUSED(htim);' n. D0 o8 E1 a2 d; y: {% j* M7 Y
/* NOTE : This function Should not be modified, when the callback is needed,. u: c$ H' F8 i j0 k" I u
the __HAL_TIM_PeriodElapsedCallback could be implemented in the user file" x& X4 G& E+ C {2 \
*/
, r. J: [( V0 h& C R
}
/* USER CODE BEGIN 4 */* R1 k5 d4 v3 P* R. `) u
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
{7 p: U8 `' W1 \! S% l! t5 |8 J
HAL_GPIO_TogglePin(GPIOA, GPIO_PIN_5);0 M" ^) j: ~& t! @
}6 x$ D; r# m! P" @
/* USER CODE END 4 */ ( p3 L- [) \! q
=========================================
1 t, K8 M. }2 `: `. I& u2 T
如果同时开两个或更多定时中断,这个回调函数怎么识别TIM1 TIM2 TIM3呢?