stm32: add H5 support.

This commit is contained in:
Dario Nieuwenhuis
2023-04-06 18:53:51 +02:00
parent 9f28d80977
commit 611d023829
22 changed files with 1390 additions and 21 deletions

View File

@ -186,6 +186,11 @@ impl<'d, T: Instance> Driver<'d, T> {
crate::pac::PWR.cr2().modify(|w| w.set_usv(true));
}
#[cfg(pwr_h5)]
unsafe {
crate::pac::PWR.usbscr().modify(|w| w.set_usb33sv(true))
}
unsafe {
<T as RccPeripheral>::enable();
<T as RccPeripheral>::reset();