精确定时闪烁灯
HAL_TIM_Base_Start_IT(&htim1);
void TIM1_UP_IRQHandler(void)
{
/* USER CODE BEGIN TIM1_UP_IRQn 0 */
/* USER CODE END TIM1_UP_IRQn 0 */
HAL_TIM_IRQHandler(&htim1);
/* USER CODE BEGIN TIM1_UP_IRQn 1 */
HAL_GPIO_TogglePin(LED0_GPIO_Port,LED0_Pin);
/* USER CODE END TIM1_UP_IRQn 1 */
}