-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/periph/timer: fix timeout computation and overflow handling
- 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 with 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
- Loading branch information
Showing
1 changed file
with
21 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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