diff options
| author | Felipe Balbi <[email protected]> | 2025-12-11 09:48:32 -0800 |
|---|---|---|
| committer | Felipe Balbi <[email protected]> | 2025-12-11 09:48:32 -0800 |
| commit | 86de5d04b91f38ab4322eaa8ff5b0f371824b57a (patch) | |
| tree | f758f462bd3cc7f670fdb7613282d1beaedefb95 /examples/mcxa/src/lib.rs | |
| parent | af02ef481498441289a6decfe3baf7f3878f7871 (diff) | |
| parent | 3588023e3e04b18cf98a2a0d10756e1f236ca351 (diff) | |
Merge remote-tracking branch 'upstream/main' into mcxa/trng
Diffstat (limited to 'examples/mcxa/src/lib.rs')
| -rw-r--r-- | examples/mcxa/src/lib.rs | 16 |
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 | |||
| 7 | use hal::{clocks, pins}; | ||
| 8 | use {defmt_rtt as _, embassy_mcxa as hal, panic_probe as _}; | ||
| 9 | |||
| 10 | /// Initialize clocks and pin muxing for ADC. | ||
| 11 | pub 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 | } | ||
