458: Enable the DMAMUX clocks. r=Dirbaio a=bobmcwhirter



Co-authored-by: Bob McWhirter <bmcwhirt@redhat.com>
This commit is contained in:
bors[bot] 2021-10-26 18:37:54 +00:00 committed by GitHub
commit 9393cd4487
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,4 +48,17 @@ pac::dma_channels! {
} }
/// 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) => {
{
pac::peripheral_rcc! {
($peri, $clock:ident, $en_reg:ident, $rst_reg:ident, $en_fn:ident, $rst_fn:ident) => {
use crate::rcc::sealed::RccPeripheral;
crate::peripherals::$peri::enable()
};
}
}
};
}
}