From debcae609f33a3af1a93559434df9f8038ffaec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Wed, 8 Jan 2025 17:34:04 +0100 Subject: [PATCH] Changelog --- esp-hal/CHANGELOG.md | 6 ++++++ esp-hal/MIGRATING-0.22.md | 14 ++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/esp-hal/CHANGELOG.md b/esp-hal/CHANGELOG.md index 6ce6ee451a..7900cef0f9 100644 --- a/esp-hal/CHANGELOG.md +++ b/esp-hal/CHANGELOG.md @@ -57,6 +57,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added `tsens::TemperatureSensor` peripheral for ESP32C6 and ESP32C3 (#2875) - Added `with_rx()` and `with_tx()` methods to Uart, UartRx, and UartTx () +- `spi::master::BusClockConfig` (#2897) +- BuilderLite now has a `#[builder_lite_into]` helper to accept convertible types (#2897) + ### Changed - Bump MSRV to 1.83 (#2615) @@ -102,6 +105,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `ClockSource` enums are now `#[non_exhaustive]` (#2912) +- SPI `Config::frequency` has been replaced by `clock`. (#2897) +- SPI `Config::with_frequency` has been renamed to `with_clock`. (#2897) + ### Fixed - Xtensa devices now correctly enable the `esp-hal-procmacros/rtc-slow` feature (#2594) diff --git a/esp-hal/MIGRATING-0.22.md b/esp-hal/MIGRATING-0.22.md index 8883666226..8fceefacce 100644 --- a/esp-hal/MIGRATING-0.22.md +++ b/esp-hal/MIGRATING-0.22.md @@ -458,3 +458,17 @@ The Address and Command enums have similarly had their variants changed from e.g - Command::Command1 + Command::_1Bit ``` + +## SPI master driver configuration + +SPI `Config::with_frequency` has been renamed to `with_clock`. This function now takes either +a `fugit::HertzU32` or `BusClockConfig`. + +```diff + let config = Config::default() +- .with_frequency(10.MHz()); ++ .with_clock(10.MHz()); +``` + +The new structure supports configuring a clock source, although currently only `ClockSource::Apb` +is available.