[riot-commits] [RIOT-OS/RIOT] cf5db4: cpu/kinetis_common: periph/timer, read PIT value b...

Joakim Nohlgård joakim.nohlgard at eistec.se
Mon Sep 21 08:21:35 CEST 2015


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: cf5db434e6e6bf1c3b263897e3c36b5c166c609d
      https://github.com/RIOT-OS/RIOT/commit/cf5db434e6e6bf1c3b263897e3c36b5c166c609d
  Author: Joakim Gebart <joakim.gebart at eistec.se>
  Date:   2015-08-13 (Thu, 13 Aug 2015)

  Changed paths:
    M cpu/kinetis_common/timer.c

  Log Message:
  -----------
  cpu/kinetis_common: periph/timer, read PIT value before stopping

Reading CVAL after stopping timer seem to return zero.
Ref. manual states: "The counter period can be restarted, by first
disabling, and then enabling the timer with TCTRLn[TEN]", but does not
state whether the reset of CVAL happens on TEN 0->1 transition, or 1->0
transtion. Empirical evidence suggests the latter is the implemented behaviour.


  Commit: 808b1abdd04683c8a61f12fcae55347195b801b0
      https://github.com/RIOT-OS/RIOT/commit/808b1abdd04683c8a61f12fcae55347195b801b0
  Author: Joakim Nohlgård <joakim.nohlgard at eistec.se>
  Date:   2015-09-21 (Mon, 21 Sep 2015)

  Changed paths:
    M cpu/kinetis_common/timer.c

  Log Message:
  -----------
  Merge pull request #3623 from gebart/pr/kinetis-timer-stop-fix

cpu/kinetis_common: periph/timer, read PIT value before stopping


Compare: https://github.com/RIOT-OS/RIOT/compare/35b1a30b7813...808b1abdd046


More information about the commits mailing list