cpu/kinetis: Refactor LPTMR timer implementation#8814
Merged
kYc0o merged 4 commits intoRIOT-OS:masterfrom May 29, 2018
Merged
Conversation
d1d5167 to
752bb57
Compare
8ca4176 to
b1b6f7a
Compare
543292e to
c644b7e
Compare
c644b7e to
df6e1bf
Compare
47a5135 to
fa0667e
Compare
Member
Author
|
Rebased after #8928 was merged |
fa0667e to
57f2482
Compare
57f2482 to
df0e8cd
Compare
smlng
approved these changes
May 22, 2018
Member
smlng
left a comment
There was a problem hiding this comment.
Changes look good to me, ACK.
However, I don't have one of the three boards available for testing, but I tested with PhyNode (pba-d-01-kw2x) to ensure it nothing is broken with the standard timers either: it isn't 😄
Member
|
please squash |
Uses timer freerunning counter mode (TFC) and updating an internal reference point instead of relying on RTT for reference time. The target accuracy has been greatly improved for all test cases in bench_periph_timer
df0e8cd to
dc68900
Compare
Contributor
|
I think this one is ready to go! |
Contributor
|
BTW, can the k64f be also updated in a follow-up? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
Refactor Kinetis LPTMR driver to use freerunning counter mode (TFC flag) and get rid of the RTT subtick counter dependency in the implementation.
Comparison between the bench_periph_timer results before and after reveal that the problem reported in #8532 is fixed, and the new implementation provides results which are close to optimal for a 32768 Hz timer.
Issues/PRs references
Fixes #8532
Uses #8531 for benchmarking
Depends on #8928
Result comparison
Good results with this PR
Bad results from current master