__weak void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)& T) b7 n* c5 _ _$ v. {
{- H! c/ |" W8 M6 [0 O1 p
/* Prevent unused argument(s) compilation warning */ G7 w; D/ @ f& _8 V0 `
UNUSED(htim);) r9 x7 m- D* k( q" v* Y
/* NOTE : This function Should not be modified, when the callback is needed,* w; j8 l" d% v+ r
the __HAL_TIM_PeriodElapsedCallback could be implemented in the user file# V, E# O5 t( S& n* j8 ?
*/# t4 W. l. E! W
{- H! c/ |" W8 M6 [0 O1 p
/* Prevent unused argument(s) compilation warning */ G7 w; D/ @ f& _8 V0 `
UNUSED(htim);) r9 x7 m- D* k( q" v* Y
/* NOTE : This function Should not be modified, when the callback is needed,* w; j8 l" d% v+ r
the __HAL_TIM_PeriodElapsedCallback could be implemented in the user file# V, E# O5 t( S& n* j8 ?
*/# t4 W. l. E! W
}
/* USER CODE BEGIN 4 */- o# W& ` T0 o9 ~4 D
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)5 v$ s2 f* M/ e/ j7 E
{, F: k! w' k! a# l0 n
HAL_GPIO_TogglePin(GPIOA, GPIO_PIN_5);
}
/* USER CODE END 4 */ - H1 Z- j+ g6 a. g9 Q7 i
=========================================2 q4 u* F3 _- s: }
如果同时开两个或更多定时中断,这个回调函数怎么识别TIM1 TIM2 TIM3呢?