mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-28 17:52:28 +00:00
Fix F7 example.
This commit is contained in:
parent
367a22cc0e
commit
58ef2594e5
@ -45,7 +45,7 @@ async fn main(spawner: Spawner) {
|
|||||||
let rx_pin = Input::new(&mut p.PA15, Pull::Up);
|
let rx_pin = Input::new(&mut p.PA15, Pull::Up);
|
||||||
core::mem::forget(rx_pin);
|
core::mem::forget(rx_pin);
|
||||||
|
|
||||||
static CAN: StaticCell<Can<'static, CAN3>> = StaticCell::new();
|
static CAN: StaticCell<Can<'static>> = StaticCell::new();
|
||||||
let can = CAN.init(Can::new(p.CAN3, p.PA8, p.PA15, Irqs));
|
let can = CAN.init(Can::new(p.CAN3, p.PA8, p.PA15, Irqs));
|
||||||
can.modify_filters().enable_bank(0, Fifo::Fifo0, Mask32::accept_all());
|
can.modify_filters().enable_bank(0, Fifo::Fifo0, Mask32::accept_all());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user