aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32f7/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stm32f7/src/bin')
-rw-r--r--examples/stm32f7/src/bin/can.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32f7/src/bin/can.rs b/examples/stm32f7/src/bin/can.rs
index a82e335a9..58ba940a8 100644
--- a/examples/stm32f7/src/bin/can.rs
+++ b/examples/stm32f7/src/bin/can.rs
@@ -42,7 +42,7 @@ async fn main(spawner: Spawner) {
42 // To synchronise to the bus the RX input needs to see a high level. 42 // To synchronise to the bus the RX input needs to see a high level.
43 // Use `mem::forget()` to release the borrow on the pin but keep the 43 // Use `mem::forget()` to release the borrow on the pin but keep the
44 // pull-up resistor enabled. 44 // pull-up resistor enabled.
45 let rx_pin = Input::new(&mut p.PA15, Pull::Up); 45 let rx_pin = Input::new(p.PA15.reborrow(), Pull::Up);
46 core::mem::forget(rx_pin); 46 core::mem::forget(rx_pin);
47 47
48 static CAN: StaticCell<Can<'static>> = StaticCell::new(); 48 static CAN: StaticCell<Can<'static>> = StaticCell::new();