Merge #458
458: Enable the DMAMUX clocks. r=Dirbaio a=bobmcwhirter Co-authored-by: Bob McWhirter <bmcwhirt@redhat.com>
This commit is contained in:
commit
9393cd4487
1 changed files with 14 additions and 1 deletions
|
@ -48,4 +48,17 @@ pac::dma_channels! {
|
|||
}
|
||||
|
||||
/// 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()
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue