aboutsummaryrefslogtreecommitdiff
path: root/examples/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/src/lib.rs')
-rw-r--r--examples/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/src/lib.rs b/examples/src/lib.rs
index 66b93450a..f5f6124c0 100644
--- a/examples/src/lib.rs
+++ b/examples/src/lib.rs
@@ -9,7 +9,7 @@ use {defmt_rtt as _, embassy_mcxa as hal, panic_probe as _};
9 9
10/// Initialize clocks and pin muxing for UART2 debug console. 10/// Initialize clocks and pin muxing for UART2 debug console.
11/// Safe to call multiple times; writes are idempotent for our use. 11/// Safe to call multiple times; writes are idempotent for our use.
12pub unsafe fn init_uart2_pins(_p: &hal::pac::Peripherals) { 12pub unsafe fn init_uart2_pins() {
13 // NOTE: Lpuart has been updated to properly enable + reset its own clocks. 13 // NOTE: Lpuart has been updated to properly enable + reset its own clocks.
14 // GPIO has not. 14 // GPIO has not.
15 _ = clocks::enable_and_reset::<hal::peripherals::PORT2>(&clocks::periph_helpers::NoConfig); 15 _ = clocks::enable_and_reset::<hal::peripherals::PORT2>(&clocks::periph_helpers::NoConfig);
@@ -17,7 +17,7 @@ pub unsafe fn init_uart2_pins(_p: &hal::pac::Peripherals) {
17} 17}
18 18
19/// Initialize clocks and pin muxing for ADC. 19/// Initialize clocks and pin muxing for ADC.
20pub unsafe fn init_adc_pins(_p: &hal::pac::Peripherals) { 20pub unsafe fn init_adc_pins() {
21 // NOTE: Lpuart has been updated to properly enable + reset its own clocks. 21 // NOTE: Lpuart has been updated to properly enable + reset its own clocks.
22 // GPIO has not. 22 // GPIO has not.
23 _ = clocks::enable_and_reset::<hal::peripherals::PORT1>(&clocks::periph_helpers::NoConfig); 23 _ = clocks::enable_and_reset::<hal::peripherals::PORT1>(&clocks::periph_helpers::NoConfig);