forked from RIOT-OS/RIOT
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/periph_rtc: test sub-second precision
Adapted from @benemorius PR RIOT-OS#10763. Add mircosecond precision test to RTC. Adapt automated python test to match test API changes. Assert max of 100 ms error. This is needed to test that an RTC alarm fires at the desired time and not with an arbitrary offset up to +/-1 second. It also tests that rtc_set_time() behaves equivalently correctly, which is what I needed to test when I wrote this.
- Loading branch information
1 parent
317534f
commit a59218a
Showing
2 changed files
with
44 additions
and
12 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
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