aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPhilipp Scheff <[email protected]>2023-07-04 00:34:24 +0200
committerPhilipp Scheff <[email protected]>2023-07-04 00:34:24 +0200
commit8359d8c020fc44f795e2230b8ba12fe780f1960b (patch)
tree9ebf03e4f4dd8410d5777e69bea5a917c7dc6c8e /tests
parent1869fe02ba8b7dfb503206977d8c70698038c3af (diff)
make stm32 can test work
Diffstat (limited to 'tests')
-rw-r--r--tests/stm32/src/bin/can.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/stm32/src/bin/can.rs b/tests/stm32/src/bin/can.rs
index 33d63d546..05adfe89a 100644
--- a/tests/stm32/src/bin/can.rs
+++ b/tests/stm32/src/bin/can.rs
@@ -43,10 +43,13 @@ async fn main(_spawner: Spawner) {
43 43
44 info!("Configuring can..."); 44 info!("Configuring can...");
45 45
46 can.modify_filters().enable_bank(0, Fifo::Fifo0, Mask32::accept_all()); 46 can.as_mut()
47 .modify_filters()
48 .enable_bank(0, Fifo::Fifo0, Mask32::accept_all());
47 49
48 can.set_bitrate(1_000_000); 50 can.as_mut().set_bitrate(1_000_000);
49 can.modify_config() 51 can.as_mut()
52 .modify_config()
50 .set_loopback(true) // Receive own frames 53 .set_loopback(true) // Receive own frames
51 .set_silent(true) 54 .set_silent(true)
52 // .set_bit_timing(0x001c0003) 55 // .set_bit_timing(0x001c0003)