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 /embassy-mcxa/src/lib.rs | |
| parent | af02ef481498441289a6decfe3baf7f3878f7871 (diff) | |
| parent | 3588023e3e04b18cf98a2a0d10756e1f236ca351 (diff) | |
Merge remote-tracking branch 'upstream/main' into mcxa/trng
Diffstat (limited to 'embassy-mcxa/src/lib.rs')
| -rw-r--r-- | embassy-mcxa/src/lib.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/embassy-mcxa/src/lib.rs b/embassy-mcxa/src/lib.rs index 12c2708de..6383353db 100644 --- a/embassy-mcxa/src/lib.rs +++ b/embassy-mcxa/src/lib.rs | |||
| @@ -8,7 +8,6 @@ | |||
| 8 | pub mod clocks; // still provide clock helpers | 8 | pub mod clocks; // still provide clock helpers |
| 9 | pub mod dma; | 9 | pub mod dma; |
| 10 | pub mod gpio; | 10 | pub mod gpio; |
| 11 | pub mod pins; // pin mux helpers | ||
| 12 | 11 | ||
| 13 | pub mod adc; | 12 | pub mod adc; |
| 14 | pub mod clkout; | 13 | pub mod clkout; |
| @@ -18,15 +17,19 @@ pub mod i2c; | |||
| 18 | pub mod interrupt; | 17 | pub mod interrupt; |
| 19 | pub mod lpuart; | 18 | pub mod lpuart; |
| 20 | pub mod ostimer; | 19 | pub mod ostimer; |
| 20 | pub mod reset_reason; | ||
| 21 | pub mod rtc; | 21 | pub mod rtc; |
| 22 | pub mod trng; | 22 | pub mod trng; |
| 23 | 23 | ||
| 24 | use crate::interrupt::InterruptExt; | ||
| 24 | pub use crate::pac::NVIC_PRIO_BITS; | 25 | pub use crate::pac::NVIC_PRIO_BITS; |
| 25 | 26 | ||
| 26 | #[rustfmt::skip] | 27 | #[rustfmt::skip] |
| 27 | embassy_hal_internal::peripherals!( | 28 | embassy_hal_internal::peripherals!( |
| 28 | ADC0, | 29 | ADC0, |
| 29 | ADC1, | 30 | ADC1, |
| 31 | ADC2, | ||
| 32 | ADC3, | ||
| 30 | 33 | ||
| 31 | AOI0, | 34 | AOI0, |
| 32 | AOI1, | 35 | AOI1, |
| @@ -337,9 +340,6 @@ embassy_hal_internal::peripherals!( | |||
| 337 | // Use cortex-m-rt's #[interrupt] attribute directly; PAC does not re-export it. | 340 | // Use cortex-m-rt's #[interrupt] attribute directly; PAC does not re-export it. |
| 338 | 341 | ||
| 339 | // Re-export interrupt traits and types | 342 | // Re-export interrupt traits and types |
| 340 | pub use adc::Adc1 as Adc1Token; | ||
| 341 | pub use gpio::{AnyPin, Flex, Gpio as GpioToken, Input, Level, Output}; | ||
| 342 | pub use interrupt::InterruptExt; | ||
| 343 | #[cfg(feature = "unstable-pac")] | 343 | #[cfg(feature = "unstable-pac")] |
| 344 | pub use mcxa_pac as pac; | 344 | pub use mcxa_pac as pac; |
| 345 | #[cfg(not(feature = "unstable-pac"))] | 345 | #[cfg(not(feature = "unstable-pac"))] |
| @@ -355,8 +355,6 @@ pub fn init(cfg: crate::config::Config) -> Peripherals { | |||
| 355 | // Apply user-configured priority early; enabling is left to examples/apps | 355 | // Apply user-configured priority early; enabling is left to examples/apps |
| 356 | crate::interrupt::RTC.set_priority(cfg.rtc_interrupt_priority); | 356 | crate::interrupt::RTC.set_priority(cfg.rtc_interrupt_priority); |
| 357 | // Apply user-configured priority early; enabling is left to examples/apps | 357 | // Apply user-configured priority early; enabling is left to examples/apps |
| 358 | crate::interrupt::ADC1.set_priority(cfg.adc_interrupt_priority); | ||
| 359 | // Apply user-configured priority early; enabling is left to examples/apps | ||
| 360 | crate::interrupt::GPIO0.set_priority(cfg.gpio_interrupt_priority); | 358 | crate::interrupt::GPIO0.set_priority(cfg.gpio_interrupt_priority); |
| 361 | // Apply user-configured priority early; enabling is left to examples/apps | 359 | // Apply user-configured priority early; enabling is left to examples/apps |
| 362 | crate::interrupt::GPIO1.set_priority(cfg.gpio_interrupt_priority); | 360 | crate::interrupt::GPIO1.set_priority(cfg.gpio_interrupt_priority); |
