Fix F7 example.

This commit is contained in:
Corey Schuhen 2024-06-02 20:16:57 +10:00
parent 367a22cc0e
commit 58ef2594e5

View File

@ -45,7 +45,7 @@ async fn main(spawner: Spawner) {
let rx_pin = Input::new(&mut p.PA15, Pull::Up);
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));
can.modify_filters().enable_bank(0, Fifo::Fifo0, Mask32::accept_all());