Basic test for periph/rtt introduced in #15431 is incorrect #15940
Labels
Area: tests
Area: tests and testing framework
Type: bug
The issue reports a bug / The PR fixes a bug (including spelling errors)
Description
Basic tests introduced in #15431 failed for RTT_FREQUENCY that are not a multiple of 2^n.
The test assumes RTT time frequency is 1 Hz, 1024 Hz, 16384 Hz or 32768 Hz.
This assumption is wrong for RTT on ATMega128RFR2 and ATMega256RFR2. On these MCU the RTT has frequency 62500 Hz because RTT is based on 802.15.4 MAC symbols counter.
Steps to reproduce the issue
Run periph_rtt test on any board based on Atmel ATMega*RFR2: deRFmega128, deRFmega256, atmega256rfr2-xpro, avr-rss2.
Expected results
Test passes for platforms that use RTT_FREQUENCY that is not a multiple of 2^n.
Actual results
Versions
RIOT Version: 2020.10
Compiler version irrelated to the issue
The text was updated successfully, but these errors were encountered: