cpu/esp32: fix dependency for periph/rtt and module esp_rtc_timer_32k #18334
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
This PR is a split-off from PR #17844, which provides a fix of module dependency for
periph_rtt
.If the ESP32 has an external 32k crystal connected, the clock from this crystal should be used for the RTT peripheral and not only for the RTC peripheral. Since the ESP32 RTC implementation uses RTT on top of RTT (module
rtc_rtt
), with this change the 32k crystal will be used for both RTT and RTC if present.Testing procedure
Use command:
Module
esp_rtc_timer_32k
is used for boardesp32-wrover-kit
but not for boardesp32-wroom-32
with this PR. Without this PR it is not used at all.Use command:
Module
esp_rtc_timer_32k
is used for boardesp32-wrover-kit
but not for boardesp32-wroom-32
with this PR. Without this PR it is not used at all.Use command:
Module
esp_rtc_timer_32k
is still used for boardesp32-wrover-kit
but not for boardesp32-wroom-32
with this PR.Compile and flash
tests/periph_rtt
for any ESP32 board that has connected an external 32k crystal:The test should still work with this change.
Issues/PRs references
Split-off from PR #17844