mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
examples: stm32: can: fix build
This commit is contained in:
parent
543c02e649
commit
846abfae2b
@ -38,7 +38,7 @@ async fn main(_spawner: Spawner) {
|
|||||||
|
|
||||||
let mut can = can::CanConfigurator::new(peripherals.FDCAN1, peripherals.PA11, peripherals.PA12, Irqs);
|
let mut can = can::CanConfigurator::new(peripherals.FDCAN1, peripherals.PA11, peripherals.PA12, Irqs);
|
||||||
|
|
||||||
can.set_extended_filter(
|
can.properties().set_extended_filter(
|
||||||
can::filter::ExtendedFilterSlot::_0,
|
can::filter::ExtendedFilterSlot::_0,
|
||||||
can::filter::ExtendedFilter::accept_all_into_fifo1(),
|
can::filter::ExtendedFilter::accept_all_into_fifo1(),
|
||||||
);
|
);
|
||||||
@ -128,7 +128,7 @@ async fn main(_spawner: Spawner) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
i = 0;
|
i = 0;
|
||||||
let (mut tx, mut rx) = can.split();
|
let (mut tx, mut rx, _props) = can.split();
|
||||||
// With split
|
// With split
|
||||||
loop {
|
loop {
|
||||||
let frame = can::frame::Frame::new_extended(0x123456F, &[i; 8]).unwrap();
|
let frame = can::frame::Frame::new_extended(0x123456F, &[i; 8]).unwrap();
|
||||||
|
@ -67,7 +67,7 @@ async fn main(_spawner: Spawner) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let (mut tx, mut rx) = can.split();
|
let (mut tx, mut rx, _props) = can.split();
|
||||||
// With split
|
// With split
|
||||||
loop {
|
loop {
|
||||||
let frame = can::frame::Frame::new_extended(0x123456F, &[i; 8]).unwrap();
|
let frame = can::frame::Frame::new_extended(0x123456F, &[i; 8]).unwrap();
|
||||||
|
@ -67,7 +67,7 @@ async fn main(_spawner: Spawner) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let (mut tx, mut rx) = can.split();
|
let (mut tx, mut rx, _props) = can.split();
|
||||||
// With split
|
// With split
|
||||||
loop {
|
loop {
|
||||||
let frame = can::frame::Frame::new_extended(0x123456F, &[i; 8]).unwrap();
|
let frame = can::frame::Frame::new_extended(0x123456F, &[i; 8]).unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user