On Wed, Jul 1, 2015 at 4:20 PM, Paul Osmialowski <pawelo at king.net.pl> wrote: > - kinetis_pit_init(kinetis_tmr, (rate / HZ) - 1); Do you want to do DIV_ROUND_UP() or why is this -1 here? Yours, Linus Walleij