diff options
| author | Torin Cooper-Bennun <[email protected]> | 2024-04-19 15:20:04 +0100 |
|---|---|---|
| committer | Torin Cooper-Bennun <[email protected]> | 2024-04-22 13:31:01 +0100 |
| commit | 846abfae2b8a24715542d57d4e6ea4386607d845 (patch) | |
| tree | e70464b1aeda1c6bad93c6c1e6a4bee4e2fe91c6 /examples | |
| parent | 543c02e649ea8ec05597daca3816c05db2c6ab53 (diff) | |
examples: stm32: can: fix build
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32g4/src/bin/can.rs | 4 | ||||
| -rw-r--r-- | examples/stm32h5/src/bin/can.rs | 2 | ||||
| -rw-r--r-- | examples/stm32h7/src/bin/can.rs | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/examples/stm32g4/src/bin/can.rs b/examples/stm32g4/src/bin/can.rs index 2ed632a93..7836334af 100644 --- a/examples/stm32g4/src/bin/can.rs +++ b/examples/stm32g4/src/bin/can.rs | |||
| @@ -38,7 +38,7 @@ async fn main(_spawner: Spawner) { | |||
| 38 | 38 | ||
| 39 | let mut can = can::CanConfigurator::new(peripherals.FDCAN1, peripherals.PA11, peripherals.PA12, Irqs); | 39 | let mut can = can::CanConfigurator::new(peripherals.FDCAN1, peripherals.PA11, peripherals.PA12, Irqs); |
| 40 | 40 | ||
| 41 | can.set_extended_filter( | 41 | can.properties().set_extended_filter( |
| 42 | can::filter::ExtendedFilterSlot::_0, | 42 | can::filter::ExtendedFilterSlot::_0, |
| 43 | can::filter::ExtendedFilter::accept_all_into_fifo1(), | 43 | can::filter::ExtendedFilter::accept_all_into_fifo1(), |
| 44 | ); | 44 | ); |
| @@ -128,7 +128,7 @@ async fn main(_spawner: Spawner) { | |||
| 128 | } | 128 | } |
| 129 | } | 129 | } |
| 130 | i = 0; | 130 | i = 0; |
| 131 | let (mut tx, mut rx) = can.split(); | 131 | let (mut tx, mut rx, _props) = can.split(); |
| 132 | // With split | 132 | // With split |
| 133 | loop { | 133 | loop { |
| 134 | let frame = can::frame::Frame::new_extended(0x123456F, &[i; 8]).unwrap(); | 134 | let frame = can::frame::Frame::new_extended(0x123456F, &[i; 8]).unwrap(); |
diff --git a/examples/stm32h5/src/bin/can.rs b/examples/stm32h5/src/bin/can.rs index dd625c90a..dc77ec3bf 100644 --- a/examples/stm32h5/src/bin/can.rs +++ b/examples/stm32h5/src/bin/can.rs | |||
| @@ -67,7 +67,7 @@ async fn main(_spawner: Spawner) { | |||
| 67 | } | 67 | } |
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | let (mut tx, mut rx) = can.split(); | 70 | let (mut tx, mut rx, _props) = can.split(); |
| 71 | // With split | 71 | // With split |
| 72 | loop { | 72 | loop { |
| 73 | let frame = can::frame::Frame::new_extended(0x123456F, &[i; 8]).unwrap(); | 73 | let frame = can::frame::Frame::new_extended(0x123456F, &[i; 8]).unwrap(); |
diff --git a/examples/stm32h7/src/bin/can.rs b/examples/stm32h7/src/bin/can.rs index 22cb27481..a889d5860 100644 --- a/examples/stm32h7/src/bin/can.rs +++ b/examples/stm32h7/src/bin/can.rs | |||
| @@ -67,7 +67,7 @@ async fn main(_spawner: Spawner) { | |||
| 67 | } | 67 | } |
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | let (mut tx, mut rx) = can.split(); | 70 | let (mut tx, mut rx, _props) = can.split(); |
| 71 | // With split | 71 | // With split |
| 72 | loop { | 72 | loop { |
| 73 | let frame = can::frame::Frame::new_extended(0x123456F, &[i; 8]).unwrap(); | 73 | let frame = can::frame::Frame::new_extended(0x123456F, &[i; 8]).unwrap(); |
