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 /embassy-mcxa | |
| parent | f650afc33b2d6b39116f27c6545c5f2d9e3c7d06 (diff) | |
Remove some unusual top level re-exports
Diffstat (limited to 'embassy-mcxa')
| -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 |
3 files changed, 4 insertions, 5 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 | ||
