Only attempt to enable the dmamux peri clock if it has an enable bit.
This commit is contained in:
parent
959aecf6ac
commit
a72816492a
@ -53,7 +53,11 @@ use crate::rcc::sealed::RccPeripheral;
|
|||||||
pub(crate) unsafe fn init() {
|
pub(crate) unsafe fn init() {
|
||||||
pac::peripherals! {
|
pac::peripherals! {
|
||||||
(dmamux, $peri:ident) => {
|
(dmamux, $peri:ident) => {
|
||||||
crate::peripherals::$peri::enable();
|
pac::peripheral_rcc! {
|
||||||
|
($peri, $clock:ident, $en_reg:ident, $rst_reg:ident, $en_fn:ident, $rst_fn:ident) => {
|
||||||
|
crate::peripherals::$peri::enable()
|
||||||
|
};
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user