[riot-commits] [RIOT-OS/RIOT] f0e7d2: cpu/kinetis_common/timer.c: cleanup and fix the pi...

Joakim Nohlgård joakim.nohlgard at eistec.se
Fri Oct 23 20:51:19 CEST 2015


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: f0e7d2fc034520cbaee6e3f197e6986664f25bf5
      https://github.com/RIOT-OS/RIOT/commit/f0e7d2fc034520cbaee6e3f197e6986664f25bf5
  Author: Johann Fischer <j.fischer at phytec.de>
  Date:   2015-10-23 (Fri, 23 Oct 2015)

  Changed paths:
    M cpu/kinetis_common/timer.c

  Log Message:
  -----------
  cpu/kinetis_common/timer.c: cleanup and fix the pit timer

It simplifies the virtual "count up timer" and improves
the accuracy a little. The LDVAL for the prescaler should
be set as a number of prescaler cycles-1. The virtual
up-counter should be corrected in the isr by +1
(See PIT reference manual). This also fixes a bug where
the timer is not used by xtimer and up-counter does not overflow.


  Commit: cb95954a15981ef041c1daeee57c948af721fde4
      https://github.com/RIOT-OS/RIOT/commit/cb95954a15981ef041c1daeee57c948af721fde4
  Author: Joakim Nohlgård <joakim.nohlgard at eistec.se>
  Date:   2015-10-23 (Fri, 23 Oct 2015)

  Changed paths:
    M cpu/kinetis_common/timer.c

  Log Message:
  -----------
  Merge pull request #4130 from jfischer-phytec-iot/fix at pit-xtimer

kinetis_common: cleanup and fix the (pit) timer


Compare: https://github.com/RIOT-OS/RIOT/compare/855a669ef4bc...cb95954a1598


More information about the commits mailing list