Fix for issue #6054 - interrupts scheduled in the past.
When ticker is not driven by the 1 MHz clock and HAL driver need to perform conversion between microseconds and ticks, then the interrupt might be scheduled in the past. For details see: https://github.com/ARMmbed/mbed-os/issues/6054.

This patch provides fix for such case. Interrupt is fired immidiatelly when last read tick is equal to the calculated tick when interrupt should be generated.
ls
1 parent 04f0f2b commit c2760be01ccbfb9db91ec7a6f39ef19e218ecea2
@Przemyslaw Stekiel Przemyslaw Stekiel authored on 12 Feb 2018
Showing 1 changed file
View
hal/mbed_ticker_api.c