diff options
| author | Corey Schuhen <[email protected]> | 2024-02-18 13:09:37 +1000 |
|---|---|---|
| committer | Corey Schuhen <[email protected]> | 2024-02-18 13:09:37 +1000 |
| commit | eafa90cd0707298f354d5d1e496f8364117bd781 (patch) | |
| tree | 0295b2a971bbe17b92465f3638e710544de987d2 /examples/stm32h5/src | |
| parent | 5ad291b708528b5772d6ebcc9309fbd3f8a002c8 (diff) | |
Remove the OperatingMode typestates
Instead have two explcit types(without the mode generic arg)types:
- One for config
- One for all operating modes
Diffstat (limited to 'examples/stm32h5/src')
| -rw-r--r-- | examples/stm32h5/src/bin/can.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/stm32h5/src/bin/can.rs b/examples/stm32h5/src/bin/can.rs index 4b29a0d21..e5ccfe4f7 100644 --- a/examples/stm32h5/src/bin/can.rs +++ b/examples/stm32h5/src/bin/can.rs | |||
| @@ -24,8 +24,7 @@ async fn main(_spawner: Spawner) { | |||
| 24 | 24 | ||
| 25 | let peripherals = embassy_stm32::init(config); | 25 | let peripherals = embassy_stm32::init(config); |
| 26 | 26 | ||
| 27 | //let mut can = can::Fdcan::new(peripherals.FDCAN1, peripherals.PB8, peripherals.PB9, Irqs); | 27 | let mut can = can::FdcanConfigurator::new(peripherals.FDCAN1, peripherals.PA11, peripherals.PA12, Irqs); |
| 28 | let mut can = can::Fdcan::new(peripherals.FDCAN1, peripherals.PA11, peripherals.PA12, Irqs); | ||
| 29 | 28 | ||
| 30 | // 250k bps | 29 | // 250k bps |
| 31 | can.set_bitrate(250_000); | 30 | can.set_bitrate(250_000); |
