Skip to content

Commit

Permalink
Changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Jan 9, 2025
1 parent dcedfcd commit debcae6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions esp-hal/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
14 changes: 14 additions & 0 deletions esp-hal/MIGRATING-0.22.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit debcae6

Please sign in to comment.