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 /tests | |
| 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 'tests')
| -rw-r--r-- | tests/stm32/src/bin/fdcan.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/stm32/src/bin/fdcan.rs b/tests/stm32/src/bin/fdcan.rs index 76c27d091..398e31ffc 100644 --- a/tests/stm32/src/bin/fdcan.rs +++ b/tests/stm32/src/bin/fdcan.rs | |||
| @@ -75,7 +75,7 @@ async fn main(_spawner: Spawner) { | |||
| 75 | let options = options(); | 75 | let options = options(); |
| 76 | let peripherals = embassy_stm32::init(options.config); | 76 | let peripherals = embassy_stm32::init(options.config); |
| 77 | 77 | ||
| 78 | let mut can = can::Fdcan::new(peripherals.FDCAN1, peripherals.PB8, peripherals.PB9, Irqs); | 78 | let mut can = can::FdcanConfigurator::new(peripherals.FDCAN1, peripherals.PB8, peripherals.PB9, Irqs); |
| 79 | 79 | ||
| 80 | // 250k bps | 80 | // 250k bps |
| 81 | can.set_bitrate(250_000); | 81 | can.set_bitrate(250_000); |
