Enable the DMAMUX clocks.

This commit is contained in:
Bob McWhirter 2021-10-26 14:01:39 -04:00
parent a6fe031d34
commit 959aecf6ac

View file

@ -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();
};
}
}