aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2024-04-23 13:46:09 +0000
committerGitHub <[email protected]>2024-04-23 13:46:09 +0000
commit1de44e7086e05b148dec5cbe38a3971c08dea742 (patch)
treea3a6e2cde912be3ed60bf5f947c0d80683b2ef68 /examples
parent511bee7230d319abfef02b1ac8bfb21e1d2e83d8 (diff)
parente15fd5895fc375c85880cf7fb846b2652df50c01 (diff)
Merge pull request #2840 from MaxiluxSystems/feature/fdcan-runtime-cfg
stm32: can: fd: Properties for common runtime get/set operations
Diffstat (limited to 'examples')
-rw-r--r--examples/stm32g4/src/bin/can.rs4
-rw-r--r--examples/stm32h5/src/bin/can.rs2
-rw-r--r--examples/stm32h7/src/bin/can.rs2
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();