How to toggle GPIO using the "PWM Generation No Output" Timer mode ?
I have a use case where I need to toggle a GPIO based on a PWM waveform. Since the GPIO chosen doesnt fall in the PWM timer pins, I have to toggle the GPIO in some other way. I came across the timer mode "PWM Generation No Output" mode. I am thinking of generating the desired PWM using this timer mode and then toggling the GPIO on PWM interrupts. I have tried using the "HAL_TIM_PWM_PulseFinishedCallback" and "HAL_TIM_PWM_PeriodElapsedCallback", but am unable to produce the desired result.
Could you tell me which interrupts to be used to get the PWM going high and low based on the duty cycle and period set in the timer ? Any sample code would be great :D
