diff --git a/esp-hal-procmacros/CHANGELOG.md b/esp-hal-procmacros/CHANGELOG.md index d8793c08a..ca7d73b40 100644 --- a/esp-hal-procmacros/CHANGELOG.md +++ b/esp-hal-procmacros/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Added the `BuilderLite` derive macro which implements the Builder Lite pattern for a struct (#2614) +- Added the `BuilderLite` derive macro which implements the Builder Lite pattern for a struct (#2614, #2897) ### Fixed diff --git a/esp-hal/CHANGELOG.md b/esp-hal/CHANGELOG.md index a186ea25e..75dca4fcc 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) @@ -103,6 +106,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `ClockSource` enums are now `#[non_exhaustive]` (#2912) - `gpio::{Input, Flex}::wakeup_enable` now returns an error instead of panicking. (#2916) +- SPI `Config::frequency` has been replaced by `clock`. (#2897) +- SPI `Config::with_frequency` has been renamed to `with_clock`. (#2897) ### Fixed diff --git a/esp-hal/MIGRATING-0.22.md b/esp-hal/MIGRATING-0.22.md index 888366622..8fceefacc 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.