stm32: Allow for RccPeripheral without reset field
This fix build on F0, since it doesn't have DMARST. This change makes RccPeripheral::reset a no-op on peripherals where a reset field couldn't be found
This commit is contained in:
@ -177,7 +177,7 @@ pub(crate) unsafe fn init() {
|
||||
}
|
||||
pac::peripherals! {
|
||||
(bdma, $peri:ident) => {
|
||||
crate::peripherals::$peri::enable();
|
||||
<crate::peripherals::$peri as RccPeripheral>::enable();
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user