-
Notifications
You must be signed in to change notification settings - Fork 2.1k
tests/periph/timer: fix timeout computation and overflow handling #20161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
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
1 task
cc20def
to
cd1fb15
Compare
cd1fb15
to
deb2e52
Compare
maribu
commented
8000
Dec 7, 2023
deb2e52
to
197f4dc
Compare
75d62b4
to
d2db78a
Compare
All green, even the spell checks |
kfessel
reviewed
Dec 7, 2023
2 tasks
kfessel
reviewed
Dec 7, 2023
kfessel
approved these changes
Dec 7, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, heard @maribu testing this
- the timeout computation for the spurious IRQ test confused numerator and denominator in a fraction - the timeout offset between timer channels was hardcoded to 5000 from when the timer was only tested wi 8000 th 1 MHz as frequency - This resulted in slooooow test runs when running at slow frequencies - fix overflow handling in the spinning wait - likely this would never overflow anyway assuming that `timer_init()` resets the counter value, but let's not rely on this and just fix the bug for good
2da66fd
to
aa045d5
Compare
Thx :-) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Area: tests
Area: tests and testing framework
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
Impact: minor
The PR is small in size and might only require a quick look of a knowledgeable reviewer
Type: bug
The issue reports a bug / The PR fixes a bug (including spelling errors)
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
timer_init()
resets the counter value, but let's not rely on this and just fix the bug for goodTesting procedure
The test now passes with #20160 on the 16 MHz timer
Issues/PRs references
Found during #20160