make stm32 can test work

This commit is contained in:
Philipp Scheff 2023-07-04 00:34:24 +02:00
parent 1869fe02ba
commit 8359d8c020

View File

@ -43,10 +43,13 @@ async fn main(_spawner: Spawner) {
info!("Configuring can..."); info!("Configuring can...");
can.modify_filters().enable_bank(0, Fifo::Fifo0, Mask32::accept_all()); can.as_mut()
.modify_filters()
.enable_bank(0, Fifo::Fifo0, Mask32::accept_all());
can.set_bitrate(1_000_000); can.as_mut().set_bitrate(1_000_000);
can.modify_config() can.as_mut()
.modify_config()
.set_loopback(true) // Receive own frames .set_loopback(true) // Receive own frames
.set_silent(true) .set_silent(true)
// .set_bit_timing(0x001c0003) // .set_bit_timing(0x001c0003)