__weak void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) 1 {- l: S$ L. F$ I: g3 t$ g, \{4 [7 Z2 m+ {( \! q
/* Prevent unused argument(s) compilation warning */ Q$ l- F: ^: u/ V UNUSED(htim); p, F. S2 E& @/ w1 ~# f* z /* NOTE : This function Should not be modified, when the callback is needed,! g2 F3 W9 l" j- B$ F: }2 R
the __HAL_TIM_PeriodElapsedCallback could be implemented in the user file2 Q/ U6 s q6 k" f
*/6 {8 u3 |+ _9 E8 H
; a4 N& u9 w3 c5 x
}
{4 [7 Z2 m+ {( \! q
/* Prevent unused argument(s) compilation warning */
UNUSED(htim);
/* NOTE : This function Should not be modified, when the callback is needed,! g2 F3 W9 l" j- B$ F: }2 R
the __HAL_TIM_PeriodElapsedCallback could be implemented in the user file2 Q/ U6 s q6 k" f
*/6 {8 u3 |+ _9 E8 H
; a4 N& u9 w3 c5 x
}
/* USER CODE BEGIN 4 */0 ?- M4 _% U% c! \
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)# \. I& M9 y& F* N: Y0 P
{3 O$ U* {0 R2 C
HAL_GPIO_TogglePin(GPIOA, GPIO_PIN_5);
}
/* USER CODE END 4 */
=========================================3 d. {( n$ [7 f; ], _% k) p7 z5 _
9 Q6 t* C0 L6 ^! L5 y( c
如果同时开两个或更多定时中断,这个回调函数怎么识别TIM1 TIM2 TIM3呢?: b* W# n; v% G! X1 U