stm32/dma: impl all variants
This commit is contained in:
committed by
Bob McWhirter
parent
69fb1b5418
commit
3d1391ef2d
@ -19,25 +19,18 @@ pub mod interrupt;
|
||||
pub mod time;
|
||||
|
||||
// Always-present hardware
|
||||
pub mod dma;
|
||||
pub mod gpio;
|
||||
pub mod rcc;
|
||||
|
||||
// Sometimes-present hardware
|
||||
#[cfg(any(dma, bdma, dmamux))]
|
||||
pub mod dma_traits;
|
||||
|
||||
#[cfg(adc)]
|
||||
pub mod adc;
|
||||
#[cfg(bdma)]
|
||||
pub mod bdma;
|
||||
#[cfg(timer)]
|
||||
pub mod clock;
|
||||
#[cfg(dac)]
|
||||
pub mod dac;
|
||||
#[cfg(dma)]
|
||||
pub mod dma;
|
||||
#[cfg(dmamux)]
|
||||
pub mod dmamux;
|
||||
#[cfg(all(eth, feature = "net"))]
|
||||
pub mod eth;
|
||||
#[cfg(exti)]
|
||||
@ -94,12 +87,7 @@ pub fn init(config: Config) -> Peripherals {
|
||||
let p = Peripherals::take();
|
||||
|
||||
unsafe {
|
||||
#[cfg(dma)]
|
||||
dma::init();
|
||||
#[cfg(bdma)]
|
||||
bdma::init();
|
||||
#[cfg(dmamux)]
|
||||
dmamux::init();
|
||||
#[cfg(exti)]
|
||||
exti::init();
|
||||
|
||||
|
Reference in New Issue
Block a user