Repository navigation
esp-idf-hal: esp32s31 80 MHz clock source is REF_F80M from ESP-IDF v6.1.1 - #634
Merged
Merged
Conversation
Collaborator
|
Thanks! |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Submission Checklist 📝
cargo fmtcommand to ensure that all changed code is formatted correctly.cargo clippycommand to ensure that all changed code passes latest Clippy nightly lints.CHANGELOG.mdof the affected crate(s) in the proper section.Pull Request Details 📖
Description
ESP-IDF v6.1.1 renamed the esp32s31's 80 MHz clock source from
PLL_F80MtoREF_F80M(soc/esp32s31/include/soc/clk_tree_defs.h:SOC_MOD_CLK_REF_F80M). It came with the S31 clock-tree fixfix(esp32s31): break clk_tree and deadlock with PERIPH_RCC.esp-idf-halnames the old constants for the esp32s31 in three places, so it does not compile against v6.1.1:rmt.rs:RMT_CLK_SRC_PLL_F80Mtimer.rs:GPTIMER_CLK_SRC_PLL_F80Muart.rs:UART_SCLK_PLL_F80MOn the esp32s31, each arm now takes the
REF_F80Mconstant underesp_idf_version_at_least_6_1_1, and thePLL_F80Mconstant below it. The other chips are unchanged.ClockSource::PLLF80Mkeeps its name, so no caller changes.Testing
esp-idf-halfor the esp32s31 against ESP-IDF v6.1.1, as part of a firmware that uses RMT, the GPTimer and the UART driver.cargo +nightly clippy -p esp-idf-hal --lib --no-deps --target riscv32imafc-esp-espidf -Zbuild-std=std,panic_abort -- -Dwarningspasses withMCU=esp32s31andESP_IDF_VERSION=v6.1.1, with picolibc (--cfg espidf_picolibc) and with newlib (sdkconfig.defaults.newlib). CI's matrix stops at v6.1, so it does not reach the new arms.cfg; CI's esp32s31 / v6.1 jobs cover them.cargo fmtpasses on the three files.Not in this PR
esp-idf-svc's Classic Bluetooth controller config (bt.rs) does not compile for the esp32s31 against v6.1.1 either: v6.1.1 moved the S31's BR/EDR and LE controller configs intocommon/btdm_bredr.handcommon/btdm_le.h, asesp_bt_ctrl_bredr_config_tandesp_bt_ctrl_le_config_t, with new fields and versions. That is a port ofBT_CONTROLLER_INIT_CONFIG_DEFAULTrather than a rename, so it belongs in its own PR.