aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/lib.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2021-07-15 05:42:06 +0200
committerBob McWhirter <[email protected]>2021-07-16 14:41:20 -0400
commit3d1391ef2d634ca6a90c68be7cc69af02e3dc33b (patch)
treeb73e2ca0a00486acff55fc200e2d3087c70b4ba1 /embassy-stm32/src/lib.rs
parent69fb1b5418a4fb355d48b3b4357d0cd7562b5c4d (diff)
stm32/dma: impl all variants
Diffstat (limited to 'embassy-stm32/src/lib.rs')
-rw-r--r--embassy-stm32/src/lib.rs14
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;
19pub mod time; 19pub mod time;
20 20
21// Always-present hardware 21// Always-present hardware
22pub mod dma;
22pub mod gpio; 23pub mod gpio;
23pub mod rcc; 24pub mod rcc;
24 25
25// Sometimes-present hardware 26// Sometimes-present hardware
26#[cfg(any(dma, bdma, dmamux))]
27pub mod dma_traits;
28 27
29#[cfg(adc)] 28#[cfg(adc)]
30pub mod adc; 29pub mod adc;
31#[cfg(bdma)]
32pub mod bdma;
33#[cfg(timer)] 30#[cfg(timer)]
34pub mod clock; 31pub mod clock;
35#[cfg(dac)] 32#[cfg(dac)]
36pub mod dac; 33pub mod dac;
37#[cfg(dma)]
38pub mod dma;
39#[cfg(dmamux)]
40pub mod dmamux;
41#[cfg(all(eth, feature = "net"))] 34#[cfg(all(eth, feature = "net"))]
42pub mod eth; 35pub 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