aboutsummaryrefslogtreecommitdiff
path: root/examples/src/bin/ostimer_async.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/src/bin/ostimer_async.rs')
-rw-r--r--examples/src/bin/ostimer_async.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/src/bin/ostimer_async.rs b/examples/src/bin/ostimer_async.rs
index 881f09374..f043184e7 100644
--- a/examples/src/bin/ostimer_async.rs
+++ b/examples/src/bin/ostimer_async.rs
@@ -29,14 +29,14 @@ async fn main(_spawner: Spawner) {
29 ..Default::default() 29 ..Default::default()
30 }; 30 };
31 31
32 // Create UART instance using LPUART2 with PIO2_2 as TX and PIO2_3 as RX 32 // Create UART instance using LPUART2 with P2_2 as TX and P2_3 as RX
33 unsafe { 33 unsafe {
34 init_uart2_pins(hal::pac()); 34 init_uart2_pins(hal::pac());
35 } 35 }
36 let mut uart = Lpuart::new_blocking( 36 let mut uart = Lpuart::new_blocking(
37 p.LPUART2, // Peripheral 37 p.LPUART2, // Peripheral
38 p.PIO2_2, // TX pin 38 p.P2_2, // TX pin
39 p.PIO2_3, // RX pin 39 p.P2_3, // RX pin
40 config, 40 config,
41 ) 41 )
42 .unwrap(); 42 .unwrap();