Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions esp-idf-hal/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- ULP: `UlpDriver` supports the LP core (`CONFIG_ULP_COPROC_TYPE_LP_CORE`) of the esp32c5, esp32c6, esp32p4 and esp32s31

### Fixed
- esp32s31: RMT, the GPTimer and the UART did not compile against ESP-IDF v6.1.1, which renamed the 80 MHz clock source from `PLL_F80M` to `REF_F80M`
- GPIO: `PinDriver` now releases the USB Serial/JTAG D-/D+ pads (e.g. GPIO19/20 on the esp32s3, GPIO18/19 on the esp32c3) and the RTC IO MUX when routing a pad to GPIO, without resetting the pulls, drive strength or level of the pin (#614)
- GPIO: the `PinDriver::try_into_*` mode conversions no longer reset the pin right after configuring it in the new mode. The converted driver used to end up disabled, with its pulls cleared
- GPIO: `PinDriver::disabled` and `PinDriver::try_into_disabled` now actually disable the input and output of the pin
Expand Down
10 changes: 9 additions & 1 deletion esp-idf-hal/src/rmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,16 @@ impl From<ClockSource> for rmt_clock_source_t {
esp32c3, esp32c5, esp32c6, esp32h2, esp32h21, esp32h4, esp32p4, esp32s3, esp32s31
))]
ClockSource::XTAL => soc_periph_rmt_clk_src_t_RMT_CLK_SRC_XTAL,
#[cfg(any(esp32c5, esp32c6, esp32p4, esp32s31))]
#[cfg(any(
esp32c5,
esp32c6,
esp32p4,
all(esp32s31, not(esp_idf_version_at_least_6_1_1))
))]
ClockSource::PLLF80M => soc_periph_rmt_clk_src_t_RMT_CLK_SRC_PLL_F80M,
// ESP-IDF v6.1.1 renamed the esp32s31's 80 MHz source REF_F80M
#[cfg(all(esp32s31, esp_idf_version_at_least_6_1_1))]
ClockSource::PLLF80M => soc_periph_rmt_clk_src_t_RMT_CLK_SRC_REF_F80M,
}
}
}
11 changes: 10 additions & 1 deletion esp-idf-hal/src/timer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,17 @@ pub mod config {
ClockSource::PLLF40M => soc_periph_gptimer_clk_src_t_GPTIMER_CLK_SRC_PLL_F40M,
#[cfg(any(esp32h2, esp32h21, esp32h4))]
ClockSource::PLLF48M => soc_periph_gptimer_clk_src_t_GPTIMER_CLK_SRC_PLL_F48M,
#[cfg(any(esp32c5, esp32c6, esp32c61, esp32p4, esp32s31))]
#[cfg(any(
esp32c5,
esp32c6,
esp32c61,
esp32p4,
all(esp32s31, not(esp_idf_version_at_least_6_1_1))
))]
ClockSource::PLLF80M => soc_periph_gptimer_clk_src_t_GPTIMER_CLK_SRC_PLL_F80M,
// ESP-IDF v6.1.1 renamed the esp32s31's 80 MHz source REF_F80M
#[cfg(all(esp32s31, esp_idf_version_at_least_6_1_1))]
ClockSource::PLLF80M => soc_periph_gptimer_clk_src_t_GPTIMER_CLK_SRC_REF_F80M,
}
}
}
Expand Down
11 changes: 10 additions & 1 deletion esp-idf-hal/src/uart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,11 +364,20 @@ pub mod config {
esp_idf_soc_uart_support_pll_f80m_clk,
all(
esp_idf_version_at_least_6_0_0,
any(esp32c5, esp32c6, esp32c61, esp32p4, esp32s31)
any(
esp32c5,
esp32c6,
esp32c61,
esp32p4,
all(esp32s31, not(esp_idf_version_at_least_6_1_1))
)
)
)
))]
const PLL_F80M_SCLK: uart_sclk_t = soc_periph_uart_clk_src_legacy_t_UART_SCLK_PLL_F80M;
// ESP-IDF v6.1.1 renamed the esp32s31's 80 MHz source REF_F80M
#[cfg(all(esp32s31, esp_idf_version_at_least_6_1_1))]
const PLL_F80M_SCLK: uart_sclk_t = soc_periph_uart_clk_src_legacy_t_UART_SCLK_REF_F80M;
#[cfg(all(esp_idf_version_major = "4", esp_idf_soc_uart_support_pll_f80m_clk))]
const PLL_F80M_SCLK: uart_sclk_t = uart_sclk_t_UART_SCLK_PLL_F80M;

Expand Down
Loading