Enable the DMAMUX clocks.
This commit is contained in:
parent
a6fe031d34
commit
959aecf6ac
1 changed files with 9 additions and 1 deletions
|
@ -47,5 +47,13 @@ pac::dma_channels! {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
use crate::rcc::sealed::RccPeripheral;
|
||||||
|
|
||||||
/// safety: must be called only once
|
/// safety: must be called only once
|
||||||
pub(crate) unsafe fn init() {}
|
pub(crate) unsafe fn init() {
|
||||||
|
pac::peripherals! {
|
||||||
|
(dmamux, $peri:ident) => {
|
||||||
|
crate::peripherals::$peri::enable();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue