HAL_TIM_PWM_PulseFinishedCallback never called but HAL_TIM_PeriodElapsedCallback is...
I am very new to embedded programming and I have to modify some code from other developers.
I have to disable the outputs for a PWM and add a callback to get the state of the pulse instead of sending the pulse to the outputs.
I was able to disable the output on PIN 6 but the callback HAL_TIM_PWM_PulseFinishedCallback is never called. HAL_TIM_PeriodElapsedCallback instead is called all times.
I have found the reason why HAL_TIM_PWM_PulseFinishedCallback is never called is because this condition from stm32g4xx_hal_tim.c is always returning RESET:
if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC1) != RESET)Could somebody help me out?
Thanks in advance.
