diff options
| author | James Munns <[email protected]> | 2025-12-05 14:32:21 +0100 |
|---|---|---|
| committer | James Munns <[email protected]> | 2025-12-05 14:36:01 +0100 |
| commit | 273b996efe489b285f2da6ab6e2ad8077463a576 (patch) | |
| tree | ddb199eda33b7f1f5e66970060e9adfec34bf59e /embassy-mcxa/src/lib.rs | |
| parent | 4053e5233fab875c4607cd2fed7a7cf5659ce3e1 (diff) | |
| parent | b252db845e19603faf528cf93fe0c44757a27430 (diff) | |
Merge remote-tracking branch 'james-mcxa/feat/mcxa276-hal' into james/rebase-dma
Diffstat (limited to 'embassy-mcxa/src/lib.rs')
| -rw-r--r-- | embassy-mcxa/src/lib.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/embassy-mcxa/src/lib.rs b/embassy-mcxa/src/lib.rs index c6d8adc8f..23cda7511 100644 --- a/embassy-mcxa/src/lib.rs +++ b/embassy-mcxa/src/lib.rs | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | // #![doc = document_features::document_features!(feature_label = r#"<span class="stab portability"><code>{feature}</code></span>"#)] | 6 | // #![doc = document_features::document_features!(feature_label = r#"<span class="stab portability"><code>{feature}</code></span>"#)] |
| 7 | 7 | ||
| 8 | pub mod clocks; // still provide clock helpers | 8 | pub mod clocks; // still provide clock helpers |
| 9 | pub mod dma; | ||
| 9 | pub mod gpio; | 10 | pub mod gpio; |
| 10 | pub mod pins; // pin mux helpers | 11 | pub mod pins; // pin mux helpers |
| 11 | 12 | ||
| @@ -51,6 +52,14 @@ embassy_hal_internal::peripherals!( | |||
| 51 | 52 | ||
| 52 | DBGMAILBOX, | 53 | DBGMAILBOX, |
| 53 | DMA0, | 54 | DMA0, |
| 55 | DMA_CH0, | ||
| 56 | DMA_CH1, | ||
| 57 | DMA_CH2, | ||
| 58 | DMA_CH3, | ||
| 59 | DMA_CH4, | ||
| 60 | DMA_CH5, | ||
| 61 | DMA_CH6, | ||
| 62 | DMA_CH7, | ||
| 54 | EDMA0_TCD0, | 63 | EDMA0_TCD0, |
| 55 | EIM0, | 64 | EIM0, |
| 56 | EQDC0, | 65 | EQDC0, |
| @@ -363,6 +372,9 @@ pub fn init(cfg: crate::config::Config) -> Peripherals { | |||
| 363 | crate::gpio::init(); | 372 | crate::gpio::init(); |
| 364 | } | 373 | } |
| 365 | 374 | ||
| 375 | // Initialize DMA controller (clock, reset, configuration) | ||
| 376 | crate::dma::init(); | ||
| 377 | |||
| 366 | // Initialize embassy-time global driver backed by OSTIMER0 | 378 | // Initialize embassy-time global driver backed by OSTIMER0 |
| 367 | #[cfg(feature = "time")] | 379 | #[cfg(feature = "time")] |
| 368 | crate::ostimer::time_driver::init(crate::config::Config::default().time_interrupt_priority, 1_000_000); | 380 | crate::ostimer::time_driver::init(crate::config::Config::default().time_interrupt_priority, 1_000_000); |
