Skip to content

Commit

Permalink
Update migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebraham committed Jan 7, 2025
1 parent 87429bc commit 4b77786
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion esp-hal/MIGRATING-0.22.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ is not compatible with the hardware.
peripherals.SPI2,
Config {
frequency: 100.kHz(),
mode: SpiMode::Mode0,
mode: SpiMode::_0,
..Config::default()
},
-);
Expand Down Expand Up @@ -405,3 +405,12 @@ The specific CPU clock variants are renamed from e.g. `Clock80MHz` to `_80MHz`.
```

Additionally the enum is marked as non-exhaustive.

## SPI Modes

The SPI mode variants are renamed from e.g. `Mode0` to `_0`.

```diff
- Mode::Mode0
+ Mode::_0
```

0 comments on commit 4b77786

Please sign in to comment.