diff options
| author | Corey Schuhen <[email protected]> | 2024-06-02 20:16:57 +1000 |
|---|---|---|
| committer | Corey Schuhen <[email protected]> | 2024-06-02 20:16:57 +1000 |
| commit | 58ef2594e511bd5147aae504b8ff723152ab1d1b (patch) | |
| tree | eca4ce4518eb7b1ec62dc2286f03e3a6ca2f6fab /examples | |
| parent | 367a22cc0eef61f05061aaadc714990723c25940 (diff) | |
Fix F7 example.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32f7/src/bin/can.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32f7/src/bin/can.rs b/examples/stm32f7/src/bin/can.rs index f4d6d8c19..a82e335a9 100644 --- a/examples/stm32f7/src/bin/can.rs +++ b/examples/stm32f7/src/bin/can.rs | |||
| @@ -45,7 +45,7 @@ async fn main(spawner: Spawner) { | |||
| 45 | let rx_pin = Input::new(&mut p.PA15, Pull::Up); | 45 | let rx_pin = Input::new(&mut p.PA15, Pull::Up); |
| 46 | core::mem::forget(rx_pin); | 46 | core::mem::forget(rx_pin); |
| 47 | 47 | ||
| 48 | static CAN: StaticCell<Can<'static, CAN3>> = StaticCell::new(); | 48 | static CAN: StaticCell<Can<'static>> = StaticCell::new(); |
| 49 | let can = CAN.init(Can::new(p.CAN3, p.PA8, p.PA15, Irqs)); | 49 | let can = CAN.init(Can::new(p.CAN3, p.PA8, p.PA15, Irqs)); |
| 50 | can.modify_filters().enable_bank(0, Fifo::Fifo0, Mask32::accept_all()); | 50 | can.modify_filters().enable_bank(0, Fifo::Fifo0, Mask32::accept_all()); |
| 51 | 51 | ||
