Joakim Nohlgård fa3b9168a0 kinetis: lptmr reload instead of spinning
Spinning for the correct time has the side effect that it may cause
infinite recursion if the callback function calls timer_set.

timer_set->callback->...->timer_set->callback->...->timer_set-> infinity

In theory, the drawback is that the callback for very short timeouts
(<2 lptmr ticks) may be delayed up to 2 lptmr ticks (61 µs)

In practice however, tests performed using tests/bench_timers shows that
this change only affects the accuracy of the timer target when timer_set
is called with a timeout of 0, which results in a delay of 30 µs.
2018-12-14 12:01:39 +01:00
..
2018-09-11 16:32:34 +02:00
2018-11-30 17:56:33 +01:00
2018-11-14 12:48:32 +01:00
2018-11-08 14:09:33 +01:00
2018-06-11 19:12:02 +02:00
2017-01-20 13:36:26 +01:00