diff options
| author | James Munns <[email protected]> | 2025-12-11 16:19:50 +0100 |
|---|---|---|
| committer | James Munns <[email protected]> | 2025-12-11 16:19:50 +0100 |
| commit | c4855d254fdfa3f06583b0883f603fee0615bd41 (patch) | |
| tree | 83f9b68faa0a62ccfe30ff12a3caf032a8906d6f | |
| parent | f650afc33b2d6b39116f27c6545c5f2d9e3c7d06 (diff) | |
Remove some unusual top level re-exports
| -rw-r--r-- | embassy-mcxa/src/i2c/controller.rs | 2 | ||||
| -rw-r--r-- | embassy-mcxa/src/lib.rs | 3 | ||||
| -rw-r--r-- | embassy-mcxa/src/lpuart/mod.rs | 4 | ||||
| -rw-r--r-- | examples/mcxa/src/bin/clkout.rs | 3 | ||||
| -rw-r--r-- | examples/mcxa/src/bin/i2c-scan-blocking.rs | 3 |
5 files changed, 6 insertions, 9 deletions
diff --git a/embassy-mcxa/src/i2c/controller.rs b/embassy-mcxa/src/i2c/controller.rs index c27d508b0..62789f85f 100644 --- a/embassy-mcxa/src/i2c/controller.rs +++ b/embassy-mcxa/src/i2c/controller.rs | |||
| @@ -8,9 +8,9 @@ use embassy_hal_internal::drop::OnDrop; | |||
| 8 | use mcxa_pac::lpi2c0::mtdr::Cmd; | 8 | use mcxa_pac::lpi2c0::mtdr::Cmd; |
| 9 | 9 | ||
| 10 | use super::{Async, Blocking, Error, Instance, InterruptHandler, Mode, Result, SclPin, SdaPin}; | 10 | use super::{Async, Blocking, Error, Instance, InterruptHandler, Mode, Result, SclPin, SdaPin}; |
| 11 | use crate::AnyPin; | ||
| 12 | use crate::clocks::periph_helpers::{Div4, Lpi2cClockSel, Lpi2cConfig}; | 11 | use crate::clocks::periph_helpers::{Div4, Lpi2cClockSel, Lpi2cConfig}; |
| 13 | use crate::clocks::{PoweredClock, enable_and_reset}; | 12 | use crate::clocks::{PoweredClock, enable_and_reset}; |
| 13 | use crate::gpio::AnyPin; | ||
| 14 | use crate::interrupt::typelevel::Interrupt; | 14 | use crate::interrupt::typelevel::Interrupt; |
| 15 | 15 | ||
| 16 | /// Bus speed (nominal SCL, no clock stretching) | 16 | /// Bus speed (nominal SCL, no clock stretching) |
diff --git a/embassy-mcxa/src/lib.rs b/embassy-mcxa/src/lib.rs index be279e509..25791b164 100644 --- a/embassy-mcxa/src/lib.rs +++ b/embassy-mcxa/src/lib.rs | |||
| @@ -19,6 +19,7 @@ pub mod lpuart; | |||
| 19 | pub mod ostimer; | 19 | pub mod ostimer; |
| 20 | pub mod rtc; | 20 | pub mod rtc; |
| 21 | 21 | ||
| 22 | use crate::interrupt::InterruptExt; | ||
| 22 | pub use crate::pac::NVIC_PRIO_BITS; | 23 | pub use crate::pac::NVIC_PRIO_BITS; |
| 23 | 24 | ||
| 24 | #[rustfmt::skip] | 25 | #[rustfmt::skip] |
| @@ -337,8 +338,6 @@ embassy_hal_internal::peripherals!( | |||
| 337 | // Use cortex-m-rt's #[interrupt] attribute directly; PAC does not re-export it. | 338 | // Use cortex-m-rt's #[interrupt] attribute directly; PAC does not re-export it. |
| 338 | 339 | ||
| 339 | // Re-export interrupt traits and types | 340 | // Re-export interrupt traits and types |
| 340 | pub use gpio::{AnyPin, Flex, Gpio as GpioToken, Input, Level, Output}; | ||
| 341 | pub use interrupt::InterruptExt; | ||
| 342 | #[cfg(feature = "unstable-pac")] | 341 | #[cfg(feature = "unstable-pac")] |
| 343 | pub use mcxa_pac as pac; | 342 | pub use mcxa_pac as pac; |
| 344 | #[cfg(not(feature = "unstable-pac"))] | 343 | #[cfg(not(feature = "unstable-pac"))] |
diff --git a/embassy-mcxa/src/lpuart/mod.rs b/embassy-mcxa/src/lpuart/mod.rs index e59ce8140..bce3986b5 100644 --- a/embassy-mcxa/src/lpuart/mod.rs +++ b/embassy-mcxa/src/lpuart/mod.rs | |||
| @@ -6,12 +6,12 @@ use paste::paste; | |||
| 6 | 6 | ||
| 7 | use crate::clocks::periph_helpers::{Div4, LpuartClockSel, LpuartConfig}; | 7 | use crate::clocks::periph_helpers::{Div4, LpuartClockSel, LpuartConfig}; |
| 8 | use crate::clocks::{ClockError, Gate, PoweredClock, enable_and_reset}; | 8 | use crate::clocks::{ClockError, Gate, PoweredClock, enable_and_reset}; |
| 9 | use crate::gpio::SealedPin; | 9 | use crate::gpio::{AnyPin, SealedPin}; |
| 10 | use crate::pac::lpuart0::baud::Sbns as StopBits; | 10 | use crate::pac::lpuart0::baud::Sbns as StopBits; |
| 11 | use crate::pac::lpuart0::ctrl::{Idlecfg as IdleConfig, Ilt as IdleType, M as DataBits, Pt as Parity}; | 11 | use crate::pac::lpuart0::ctrl::{Idlecfg as IdleConfig, Ilt as IdleType, M as DataBits, Pt as Parity}; |
| 12 | use crate::pac::lpuart0::modir::{Txctsc as TxCtsConfig, Txctssrc as TxCtsSource}; | 12 | use crate::pac::lpuart0::modir::{Txctsc as TxCtsConfig, Txctssrc as TxCtsSource}; |
| 13 | use crate::pac::lpuart0::stat::Msbf as MsbFirst; | 13 | use crate::pac::lpuart0::stat::Msbf as MsbFirst; |
| 14 | use crate::{AnyPin, interrupt, pac}; | 14 | use crate::{interrupt, pac}; |
| 15 | 15 | ||
| 16 | pub mod buffered; | 16 | pub mod buffered; |
| 17 | 17 | ||
diff --git a/examples/mcxa/src/bin/clkout.rs b/examples/mcxa/src/bin/clkout.rs index bfd963540..1e52912d3 100644 --- a/examples/mcxa/src/bin/clkout.rs +++ b/examples/mcxa/src/bin/clkout.rs | |||
| @@ -4,8 +4,7 @@ | |||
| 4 | use embassy_executor::Spawner; | 4 | use embassy_executor::Spawner; |
| 5 | use embassy_mcxa::clkout::{ClockOut, ClockOutSel, Config, Div4}; | 5 | use embassy_mcxa::clkout::{ClockOut, ClockOutSel, Config, Div4}; |
| 6 | use embassy_mcxa::clocks::PoweredClock; | 6 | use embassy_mcxa::clocks::PoweredClock; |
| 7 | use embassy_mcxa::gpio::{DriveStrength, SlewRate}; | 7 | use embassy_mcxa::gpio::{DriveStrength, Level, Output, SlewRate}; |
| 8 | use embassy_mcxa::{Level, Output}; | ||
| 9 | use embassy_time::Timer; | 8 | use embassy_time::Timer; |
| 10 | use {defmt_rtt as _, embassy_mcxa as hal, panic_probe as _}; | 9 | use {defmt_rtt as _, embassy_mcxa as hal, panic_probe as _}; |
| 11 | 10 | ||
diff --git a/examples/mcxa/src/bin/i2c-scan-blocking.rs b/examples/mcxa/src/bin/i2c-scan-blocking.rs index 0197f9b1d..bd706d712 100644 --- a/examples/mcxa/src/bin/i2c-scan-blocking.rs +++ b/examples/mcxa/src/bin/i2c-scan-blocking.rs | |||
| @@ -2,8 +2,7 @@ | |||
| 2 | #![no_main] | 2 | #![no_main] |
| 3 | 3 | ||
| 4 | use embassy_executor::Spawner; | 4 | use embassy_executor::Spawner; |
| 5 | use embassy_mcxa::Input; | 5 | use embassy_mcxa::gpio::{Input, Pull}; |
| 6 | use embassy_mcxa::gpio::Pull; | ||
| 7 | use embassy_time::Timer; | 6 | use embassy_time::Timer; |
| 8 | use hal::clocks::config::Div8; | 7 | use hal::clocks::config::Div8; |
| 9 | use hal::config::Config; | 8 | use hal::config::Config; |
