text: /* USER CODE BEGIN Header */
  /**
    ******************************************************************************
    * @file    stm32f4xx_it.c
    * @brief   Interrupt Service Routines.
    ******************************************************************************
    * @attention
    *
    * <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
    * All rights reserved.</center></h2>
    *
    * This software component is licensed by ST under BSD 3-Clause license,
    * the "License"; You may not use this file except in compliance with the
    * License. You may obtain a copy of the License at:
    *                        opensource.org/licenses/BSD-3-Clause
    *
    ******************************************************************************
    */
  /* USER CODE END Header */
  
  /* Includes ------------------------------------------------------------------*/
  #include "main.h"
  #include "stm32f4xx_it.h"
  /* Private includes ----------------------------------------------------------*/
  /* USER CODE BEGIN Includes */
  /* USER CODE END Includes */
  
  /* Private typedef -----------------------------------------------------------*/
  /* USER CODE BEGIN TD */
  
  /* USER CODE END TD */
  
  /* Private define ------------------------------------------------------------*/
  /* USER CODE BEGIN PD */
   
  /* USER CODE END PD */
  
  /* Private macro -------------------------------------------------------------*/
  /* USER CODE BEGIN PM */
  
  /* USER CODE END PM */
  
  /* Private variables ---------------------------------------------------------*/
  /* USER CODE BEGIN PV */
  
  /* USER CODE END PV */
  
  /* Private function prototypes -----------------------------------------------*/
  /* USER CODE BEGIN PFP */
  
  /* USER CODE END PFP */
  
  /* Private user code ---------------------------------------------------------*/
  /* USER CODE BEGIN 0 */
  
  /* USER CODE END 0 */
  
  /* External variables --------------------------------------------------------*/
  extern TIM_HandleTypeDef htim1;
  extern TIM_HandleTypeDef htim5;
  extern TIM_HandleTypeDef htim11;
  extern UART_HandleTypeDef huart2;
  /* USER CODE BEGIN EV */
  
  /* USER CODE END EV */
  #ifdef HAL_UART_MODULE_ENABLED
  int HAL_USART_IDLE_PROCESS(UART_HandleTypeDef *huart);
  #endif
  
  /******************************************************************************/
  /*           Cortex-M4 Processor Interruption and Exception Handlers          */
  /******************************************************************************/
  /**
    * @brief This function handles System tick timer.
    */
  void SysTick_Handler(void)
  {
    /* USER CODE BEGIN SysTick_IRQn 0 */
  
    /* USER CODE END SysTick_IRQn 0 */
    HAL_IncTick();
    /* USER CODE BEGIN SysTick_IRQn 1 */
  
    /* USER CODE END SysTick_IRQn 1 */
  }
  
  /******************************************************************************/
  /* STM32F4xx Peripheral Interrupt Handlers                                    */
  /* Add here the Interrupt Handlers for the used peripherals.                  */
  /* For the available peripheral interrupt handler names,                      */
  /* please refer to the startup file (startup_stm32f4xx.s).                    */
  /******************************************************************************/
  
  /**
    * @brief This function handles TIM1 update interrupt and TIM10 global interrupt.
    */
  void TIM1_UP_TIM10_IRQHandler(void)
  {
    /* USER CODE BEGIN TIM1_UP_TIM10_IRQn 0 */
  
    /* USER CODE END TIM1_UP_TIM10_IRQn 0 */
    HAL_TIM_IRQHandler(&htim1);
    /* USER CODE BEGIN TIM1_UP_TIM10_IRQn 1 */
  
    /* USER CODE END TIM1_UP_TIM10_IRQn 1 */
  }
  
  /**
    * @brief This function handles TIM1 trigger and commutation interrupts and TIM11 global interrupt.
    */
  void TIM1_TRG_COM_TIM11_IRQHandler(void)
  {
    /* USER CODE BEGIN TIM1_TRG_COM_TIM11_IRQn 0 */
  
    /* USER CODE END TIM1_TRG_COM_TIM11_IRQn 0 */
    HAL_TIM_IRQHandler(&htim1);
    HAL_TIM_IRQHandler(&htim11);
    /* USER CODE BEGIN TIM1_TRG_COM_TIM11_IRQn 1 */
  
    /* USER CODE END TIM1_TRG_COM_TIM11_IRQn 1 */
  }
  
  /**
    * @brief This function handles USART2 global interrupt.
    */
  void USART2_IRQHandler(void)
  {
    /* USER CODE BEGIN USART2_IRQn 0 */
  
    /* USER CODE END USART2_IRQn 0 */
    if (HAL_USART_IDLE_PROCESS(&huart2))
      return;
    
    HAL_UART_IRQHandler(&huart2);
    /* USER CODE BEGIN USART2_IRQn 1 */
  
    /* USER CODE END USART2_IRQn 1 */
  }
  
  /**
    * @brief This function handles TIM5 global interrupt.
    */
  void TIM5_IRQHandler(void)
  {
    /* USER CODE BEGIN TIM5_IRQn 0 */
  
    /* USER CODE END TIM5_IRQn 0 */
    HAL_TIM_IRQHandler(&htim5);
    /* USER CODE BEGIN TIM5_IRQn 1 */
  
    /* USER CODE END TIM5_IRQn 1 */
  }
  
  /* USER CODE BEGIN 1 */
  
  /* USER CODE END 1 */
  /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
  