aboutsummaryrefslogtreecommitdiff
path: root/examples/src/bin/hello.rs
diff options
context:
space:
mode:
authorJames Munns <[email protected]>2025-11-25 18:08:13 +0100
committerGitHub <[email protected]>2025-11-25 18:08:13 +0100
commit05bf2d0438fe8c41d0fe26b85106ff73a6e273e9 (patch)
tree8a2969ac89735154f8090d629d9c37814a25190a /examples/src/bin/hello.rs
parent7ee5cb570f0c0daeb2e6a9d5120fd96ee885025f (diff)
Wire up Lpuart pins (#43)
Allow the HAL lpuart driver to correctly configure pins as requested on init.
Diffstat (limited to 'examples/src/bin/hello.rs')
-rw-r--r--examples/src/bin/hello.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/examples/src/bin/hello.rs b/examples/src/bin/hello.rs
index 0362480c1..f426d1898 100644
--- a/examples/src/bin/hello.rs
+++ b/examples/src/bin/hello.rs
@@ -27,9 +27,6 @@ async fn main(_spawner: Spawner) {
27 }; 27 };
28 28
29 // Create UART instance using LPUART2 with P2_2 as TX and P2_3 as RX 29 // Create UART instance using LPUART2 with P2_2 as TX and P2_3 as RX
30 unsafe {
31 embassy_mcxa_examples::init_uart2_pins();
32 }
33 let mut uart = Lpuart::new_blocking( 30 let mut uart = Lpuart::new_blocking(
34 p.LPUART2, // Peripheral 31 p.LPUART2, // Peripheral
35 p.P2_2, // TX pin 32 p.P2_2, // TX pin