• yn386's avatar
    stm32/timer: Fix use of timer channel callback() method on L4 MCUs. · 989b8c72
    yn386 authored
    Since L4 HAL version 1.17.0, HAL_TIM_IC_Start_IT() checks whether specified
    channel of timer is busy or not, which is the case if this function is
    called more than once without first calling HAL_TIM_IC_Stop_IT().  The fix
    in this commit is to call the stop function before calling start.  The PWM
    and OC modes have the same issue with the same fix.
    
    Fixes issue #8732.
    989b8c72
timer.c 64.7 KB