aboutsummaryrefslogtreecommitdiff
path: root/examples/src/bin/hello.rs
diff options
context:
space:
mode:
authorJames Munns <[email protected]>2025-11-24 18:41:43 +0100
committerGitHub <[email protected]>2025-11-24 18:41:43 +0100
commit7ee5cb570f0c0daeb2e6a9d5120fd96ee885025f (patch)
treee10b98df1dd9f96b7b3874a06f201d2e23f2fbc9 /examples/src/bin/hello.rs
parent6e1bc1139b7dcc8407fd1213bf0cb0788d26288e (diff)
Remove the pac singleton function (#42)
There will be a follow up PR that removes the unsafe `init` functions, but I wanted to squash this out first in case I don't get to it all today.
Diffstat (limited to 'examples/src/bin/hello.rs')
-rw-r--r--examples/src/bin/hello.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/src/bin/hello.rs b/examples/src/bin/hello.rs
index e2d0b413d..0362480c1 100644
--- a/examples/src/bin/hello.rs
+++ b/examples/src/bin/hello.rs
@@ -28,7 +28,7 @@ async fn main(_spawner: Spawner) {
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 { 30 unsafe {
31 embassy_mcxa_examples::init_uart2_pins(hal::pac()); 31 embassy_mcxa_examples::init_uart2_pins();
32 } 32 }
33 let mut uart = Lpuart::new_blocking( 33 let mut uart = Lpuart::new_blocking(
34 p.LPUART2, // Peripheral 34 p.LPUART2, // Peripheral