aboutsummaryrefslogtreecommitdiff
path: root/examples/mcxa/src/lib.rs
diff options
context:
space:
mode:
authorJames Munns <[email protected]>2025-12-10 14:11:26 +0000
committerGitHub <[email protected]>2025-12-10 14:11:26 +0000
commite932dc131e94f30db32b3fc9fbce8cd929555820 (patch)
tree74fcf10c814babbbd3ea395624a741af868f3180 /examples/mcxa/src/lib.rs
parent28a72e08265aea090e3968c0b564bb929f2a81ed (diff)
parent62966d6fac20a7af7257e0a1a9015e1b7093b5ba (diff)
Merge pull request #5012 from MathisDeroo/adc_driver_v2
[MCXA]: Adc driver v2
Diffstat (limited to 'examples/mcxa/src/lib.rs')
-rw-r--r--examples/mcxa/src/lib.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/examples/mcxa/src/lib.rs b/examples/mcxa/src/lib.rs
deleted file mode 100644
index 2573a6adc..000000000
--- a/examples/mcxa/src/lib.rs
+++ /dev/null
@@ -1,16 +0,0 @@
1#![no_std]
2#![allow(clippy::missing_safety_doc)]
3
4//! Shared board-specific helpers for the FRDM-MCXA276 examples.
5//! These live with the examples so the HAL stays generic.
6
7use hal::{clocks, pins};
8use {defmt_rtt as _, embassy_mcxa as hal, panic_probe as _};
9
10/// Initialize clocks and pin muxing for ADC.
11pub unsafe fn init_adc_pins() {
12 // NOTE: Lpuart has been updated to properly enable + reset its own clocks.
13 // GPIO has not.
14 _ = clocks::enable_and_reset::<hal::peripherals::PORT1>(&clocks::periph_helpers::NoConfig);
15 pins::configure_adc_pins();
16}