mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
make stm32 can test work
This commit is contained in:
parent
1869fe02ba
commit
8359d8c020
@ -43,10 +43,13 @@ async fn main(_spawner: Spawner) {
|
||||
|
||||
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.modify_config()
|
||||
can.as_mut().set_bitrate(1_000_000);
|
||||
can.as_mut()
|
||||
.modify_config()
|
||||
.set_loopback(true) // Receive own frames
|
||||
.set_silent(true)
|
||||
// .set_bit_timing(0x001c0003)
|
||||
|
Loading…
Reference in New Issue
Block a user