diff options
| author | James Munns <[email protected]> | 2025-11-24 18:41:43 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-11-24 18:41:43 +0100 |
| commit | 7ee5cb570f0c0daeb2e6a9d5120fd96ee885025f (patch) | |
| tree | e10b98df1dd9f96b7b3874a06f201d2e23f2fbc9 /examples/src/bin/adc_interrupt.rs | |
| parent | 6e1bc1139b7dcc8407fd1213bf0cb0788d26288e (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/adc_interrupt.rs')
| -rw-r--r-- | examples/src/bin/adc_interrupt.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/src/bin/adc_interrupt.rs b/examples/src/bin/adc_interrupt.rs index 9fed052fd..0d3a75a28 100644 --- a/examples/src/bin/adc_interrupt.rs +++ b/examples/src/bin/adc_interrupt.rs | |||
| @@ -36,7 +36,7 @@ async fn main(_spawner: Spawner) { | |||
| 36 | 36 | ||
| 37 | // Create UART instance using LPUART2 with P2_2 as TX and P2_3 as RX | 37 | // Create UART instance using LPUART2 with P2_2 as TX and P2_3 as RX |
| 38 | unsafe { | 38 | unsafe { |
| 39 | embassy_mcxa_examples::init_uart2_pins(hal::pac()); | 39 | embassy_mcxa_examples::init_uart2_pins(); |
| 40 | } | 40 | } |
| 41 | let mut uart = Lpuart::new_blocking( | 41 | let mut uart = Lpuart::new_blocking( |
| 42 | p.LPUART2, // Peripheral | 42 | p.LPUART2, // Peripheral |
| @@ -48,7 +48,7 @@ async fn main(_spawner: Spawner) { | |||
| 48 | uart.write_str_blocking("\r\n=== ADC interrupt Example ===\r\n"); | 48 | uart.write_str_blocking("\r\n=== ADC interrupt Example ===\r\n"); |
| 49 | 49 | ||
| 50 | unsafe { | 50 | unsafe { |
| 51 | init_adc_pins(hal::pac()); | 51 | init_adc_pins(); |
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | let adc_config = LpadcConfig { | 54 | let adc_config = LpadcConfig { |
