diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-07-15 05:42:06 +0200 |
|---|---|---|
| committer | Bob McWhirter <[email protected]> | 2021-07-16 14:41:20 -0400 |
| commit | 3d1391ef2d634ca6a90c68be7cc69af02e3dc33b (patch) | |
| tree | b73e2ca0a00486acff55fc200e2d3087c70b4ba1 /embassy-stm32/src/lib.rs | |
| parent | 69fb1b5418a4fb355d48b3b4357d0cd7562b5c4d (diff) | |
stm32/dma: impl all variants
Diffstat (limited to 'embassy-stm32/src/lib.rs')
| -rw-r--r-- | embassy-stm32/src/lib.rs | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/embassy-stm32/src/lib.rs b/embassy-stm32/src/lib.rs index 22999a69e..c10310e2d 100644 --- a/embassy-stm32/src/lib.rs +++ b/embassy-stm32/src/lib.rs | |||
| @@ -19,25 +19,18 @@ pub mod interrupt; | |||
| 19 | pub mod time; | 19 | pub mod time; |
| 20 | 20 | ||
| 21 | // Always-present hardware | 21 | // Always-present hardware |
| 22 | pub mod dma; | ||
| 22 | pub mod gpio; | 23 | pub mod gpio; |
| 23 | pub mod rcc; | 24 | pub mod rcc; |
| 24 | 25 | ||
| 25 | // Sometimes-present hardware | 26 | // Sometimes-present hardware |
| 26 | #[cfg(any(dma, bdma, dmamux))] | ||
| 27 | pub mod dma_traits; | ||
| 28 | 27 | ||
| 29 | #[cfg(adc)] | 28 | #[cfg(adc)] |
| 30 | pub mod adc; | 29 | pub mod adc; |
| 31 | #[cfg(bdma)] | ||
| 32 | pub mod bdma; | ||
| 33 | #[cfg(timer)] | 30 | #[cfg(timer)] |
| 34 | pub mod clock; | 31 | pub mod clock; |
| 35 | #[cfg(dac)] | 32 | #[cfg(dac)] |
| 36 | pub mod dac; | 33 | pub mod dac; |
| 37 | #[cfg(dma)] | ||
| 38 | pub mod dma; | ||
| 39 | #[cfg(dmamux)] | ||
| 40 | pub mod dmamux; | ||
| 41 | #[cfg(all(eth, feature = "net"))] | 34 | #[cfg(all(eth, feature = "net"))] |
| 42 | pub mod eth; | 35 | pub mod eth; |
| 43 | #[cfg(exti)] | 36 | #[cfg(exti)] |
| @@ -94,12 +87,7 @@ pub fn init(config: Config) -> Peripherals { | |||
| 94 | let p = Peripherals::take(); | 87 | let p = Peripherals::take(); |
| 95 | 88 | ||
| 96 | unsafe { | 89 | unsafe { |
| 97 | #[cfg(dma)] | ||
| 98 | dma::init(); | 90 | dma::init(); |
| 99 | #[cfg(bdma)] | ||
| 100 | bdma::init(); | ||
| 101 | #[cfg(dmamux)] | ||
| 102 | dmamux::init(); | ||
| 103 | #[cfg(exti)] | 91 | #[cfg(exti)] |
| 104 | exti::init(); | 92 | exti::init(); |
| 105 | 93 | ||
