cpu/esp32: replace RTC implementation by RTT implementation#13749
cpu/esp32: replace RTC implementation by RTT implementation#13749benpicco merged 5 commits intoRIOT-OS:masterfrom
Conversation
94c8103 to
0cec439
Compare
0cec439 to
e98fa56
Compare
e98fa56 to
4f46ed1
Compare
aaff77a to
36be164
Compare
Since the attribute is required by EPS8266 as well as ESP32, it is moved to cpu/esp_common.
36be164 to
f2267b1
Compare
|
Could it be that the toolchain on Murdock was upgraded and now Do you have a fix hidden in here? 😉 |
I don't know, I saw this problem too. Maybe @kaspar030 updated the toolchain only on one worker and if The problem is not really clear to me, but I can also see it locally. The test complains that the addresses of According to the comment in test's OK, I forgot to add the linker test fails. |
Forget it, it's too late today ... With the test works. The output seems too similar to the failed one. |
fixup! cpu/esp32: add RTT counter implementation
f2267b1 to
ce431b2
Compare
|
I have realized that |
Contribution description
This PR replaces the RTC implementation with an RTT implementation that uses the RTC hardware timer of the ESP32. The RTC implementation used instead is the RTT based RTC implementation provided by the
rtt_rtcmodule.Although the RTC hardware module of the ESP32 is called an RTC, it is a Real Time Timer (RTT) rather than a Real Timer Clock. Therefore, the former RTC peripheral driver implementation is replaced by an RTT periphal driver implementation.
Note: An RTT/RTC alarm is not preserved during reboot or deep-sleep.
Testing procedure
tests/periph_rtcandtests/periph_rtcshould workFurthermore, use
tests/periph_pmcan be used to test that the RTT and RTC are retained in sleep modes and during reboot.Press
BTN0Issues/PRs references