Changelog

This commit is contained in:
Dániel Buga 2025-01-08 17:34:04 +01:00
parent e052364589
commit 53b0c8628d
No known key found for this signature in database
3 changed files with 20 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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.