STM: Start working on bdma-v1

This commit is contained in:
Thales Fragoso
2021-07-03 17:58:59 -03:00
committed by Bob McWhirter
parent 8f28d6b4b1
commit f32caaeaaf
4 changed files with 295 additions and 54 deletions

View File

@ -22,6 +22,8 @@ pub mod rcc;
// Sometimes-present hardware
#[cfg(adc)]
pub mod adc;
#[cfg(bdma)]
pub mod bdma;
#[cfg(timer)]
pub mod clock;
#[cfg(dac)]
@ -86,6 +88,8 @@ pub fn init(config: Config) -> Peripherals {
unsafe {
#[cfg(dma)]
dma::init();
#[cfg(bdma)]
bdma::init();
#[cfg(exti)]
exti::init();
rcc::init(config.rcc);