Core/Src/stm32f4xx_it.c
/**
  * @brief This function handles TIM4 global interrupt.
  */
@brief This function handles TIM4 global interrupt.
@brief This function handles TIM4 global interrupt .
void TIM4_IRQHandler(void)
{
  FunduMoto_MotorCycles--;
  if (FunduMoto_MotorCycles <= 0) {
	  FunduMoto_MotorCycles = 0;
	  motorA.duty_cycle = 0U;
	  motorB.duty_cycle = 0U;
  }
  htim4.Instance->CCR1 = motorA.duty_cycle;
  htim14.Instance->CCR1 = motorB.duty_cycle;
  HAL_TIM_IRQHandler(&htim4);
}
void TIM4_IRQHandler ( void ) { FunduMoto_MotorCycles -- ; if ( FunduMoto_MotorCycles <= 0 ) { FunduMoto_MotorCycles = 0 ; motorA . duty_cycle = 0U ; motorB . duty_cycle = 0U ; } htim4 . Instance -> CCR1 = motorA . duty_cycle ; htim14 . Instance -> CCR1 = motorB . duty_cycle ; HAL_TIM_IRQHandler ( & htim4 ) ; }
@brief This function handles TIM4 global interrupt.
@brief This function handles TIM4 global interrupt .
/* USER CODE BEGIN TIM4_IRQn 0 */ /* USER CODE END TIM4_IRQn 0 */ /* USER CODE BEGIN TIM4_IRQn 1 */ /* USER CODE END TIM4_IRQn 1 */