From 110a5eb4e58ecee5bc45bd47c3366ea241587e1b Mon Sep 17 00:00:00 2001 From: James Munns Date: Wed, 12 Nov 2025 17:16:19 +0100 Subject: Remove example feats, get examples building No CI, but this can be checked with `cargo check --all --examples`, which now succeeds. --- examples/common/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/common/mod.rs') diff --git a/examples/common/mod.rs b/examples/common/mod.rs index 7ada4c456..8c52c8e86 100644 --- a/examples/common/mod.rs +++ b/examples/common/mod.rs @@ -1,13 +1,13 @@ //! Shared board-specific helpers for the FRDM-MCXA276 examples. //! These live with the examples so the HAL stays generic. -use embassy_mcxa276 as hal; use hal::{clocks, pins, reset}; +use {embassy_mcxa276 as hal, panic_probe as _}; /// Initialize clocks and pin muxing for UART2 debug console. /// Safe to call multiple times; writes are idempotent for our use. #[allow(dead_code)] -pub unsafe fn init_uart2(p: &hal::pac::Peripherals) { +pub unsafe fn init_uart2(p: &mcxa_pac::Peripherals) { clocks::ensure_frolf_running(p); clocks::enable_uart2_port2(p); reset::release_reset_port2(p); @@ -18,7 +18,7 @@ pub unsafe fn init_uart2(p: &hal::pac::Peripherals) { /// Initialize clocks for the LED GPIO/PORT used by the blink example. #[allow(dead_code)] -pub unsafe fn init_led(p: &hal::pac::Peripherals) { +pub unsafe fn init_led(p: &mcxa_pac::Peripherals) { clocks::enable_led_port(p); reset::release_reset_gpio3(p); reset::release_reset_port3(p); @@ -26,7 +26,7 @@ pub unsafe fn init_led(p: &hal::pac::Peripherals) { /// Initialize clocks for OSTIMER0 (1 MHz source). #[allow(dead_code)] -pub unsafe fn init_ostimer0(p: &hal::pac::Peripherals) { +pub unsafe fn init_ostimer0(p: &mcxa_pac::Peripherals) { clocks::ensure_frolf_running(p); clocks::enable_ostimer0(p); reset::release_reset_ostimer0(p); @@ -35,7 +35,7 @@ pub unsafe fn init_ostimer0(p: &hal::pac::Peripherals) { /// Initialize clocks and pin muxing for ADC. #[allow(dead_code)] -pub unsafe fn init_adc(p: &hal::pac::Peripherals) { +pub unsafe fn init_adc(p: &mcxa_pac::Peripherals) { clocks::ensure_frolf_running(p); clocks::enable_adc(p); reset::release_reset_port1(p); -- cgit