diff options
Diffstat (limited to 'examples/src/bin/hello.rs')
| -rw-r--r-- | examples/src/bin/hello.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/src/bin/hello.rs b/examples/src/bin/hello.rs index 207c157c3..e2d0b413d 100644 --- a/examples/src/bin/hello.rs +++ b/examples/src/bin/hello.rs | |||
| @@ -26,14 +26,14 @@ async fn main(_spawner: Spawner) { | |||
| 26 | ..Default::default() | 26 | ..Default::default() |
| 27 | }; | 27 | }; |
| 28 | 28 | ||
| 29 | // Create UART instance using LPUART2 with PIO2_2 as TX and PIO2_3 as RX | 29 | // Create UART instance using LPUART2 with P2_2 as TX and P2_3 as RX |
| 30 | unsafe { | 30 | unsafe { |
| 31 | embassy_mcxa_examples::init_uart2_pins(hal::pac()); | 31 | embassy_mcxa_examples::init_uart2_pins(hal::pac()); |
| 32 | } | 32 | } |
| 33 | let mut uart = Lpuart::new_blocking( | 33 | let mut uart = Lpuart::new_blocking( |
| 34 | p.LPUART2, // Peripheral | 34 | p.LPUART2, // Peripheral |
| 35 | p.PIO2_2, // TX pin | 35 | p.P2_2, // TX pin |
| 36 | p.PIO2_3, // RX pin | 36 | p.P2_3, // RX pin |
| 37 | config, | 37 | config, |
| 38 | ) | 38 | ) |
| 39 | .unwrap(); | 39 | .unwrap(); |
