I want to design a variable width PWM waveform using IRQ, but I am unable to use loops in TIM_IRQHANDLERS. below is the code i am using in TIM_IRQHANDLER
void TIM2_IRQHandler(void)
{ volatile float i; volatile int x;
if(HAL_GPIO_ReadPin(GPIOB,GPIO_PIN_3…