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.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/examples/src/lib.rs b/examples/src/lib.rs
index f5f6124c0..2573a6adc 100644
--- a/examples/src/lib.rs
+++ b/examples/src/lib.rs
@@ -7,15 +7,6 @@
7use hal::{clocks, pins}; 7use hal::{clocks, pins};
8use {defmt_rtt as _, embassy_mcxa as hal, panic_probe as _}; 8use {defmt_rtt as _, embassy_mcxa as hal, panic_probe as _};
9 9
10/// Initialize clocks and pin muxing for UART2 debug console.
11/// Safe to call multiple times; writes are idempotent for our use.
12pub unsafe fn init_uart2_pins() {
13 // NOTE: Lpuart has been updated to properly enable + reset its own clocks.
14 // GPIO has not.
15 _ = clocks::enable_and_reset::<hal::peripherals::PORT2>(&clocks::periph_helpers::NoConfig);
16 pins::configure_uart2_pins_port2();
17}
18
19/// Initialize clocks and pin muxing for ADC. 10/// Initialize clocks and pin muxing for ADC.
20pub unsafe fn init_adc_pins() { 11pub unsafe fn init_adc_pins() {
21 // NOTE: Lpuart has been updated to properly enable + reset its own clocks. 12 // NOTE: Lpuart has been updated to properly enable + reset its own clocks.