diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-09-24 23:54:32 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-09-25 01:07:55 +0200 |
| commit | e03239e88d7f2d01f31de5e5eef2b4d79522679d (patch) | |
| tree | 077c0a9cb985a857f1eec1a4b2f5b348d5a25319 /embassy-stm32/src/usb/usb.rs | |
| parent | 65d36f9f99c3b8055e7b9c02e1b1aae3cb242d6a (diff) | |
stm32: centralize enabling pwr, syscfg, flash.
Diffstat (limited to 'embassy-stm32/src/usb/usb.rs')
| -rw-r--r-- | embassy-stm32/src/usb/usb.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/embassy-stm32/src/usb/usb.rs b/embassy-stm32/src/usb/usb.rs index cef196355..b24fc74eb 100644 --- a/embassy-stm32/src/usb/usb.rs +++ b/embassy-stm32/src/usb/usb.rs | |||
| @@ -264,10 +264,7 @@ impl<'d, T: Instance> Driver<'d, T> { | |||
| 264 | let regs = T::regs(); | 264 | let regs = T::regs(); |
| 265 | 265 | ||
| 266 | #[cfg(stm32l5)] | 266 | #[cfg(stm32l5)] |
| 267 | { | 267 | crate::pac::PWR.cr2().modify(|w| w.set_usv(true)); |
| 268 | crate::peripherals::PWR::enable(); | ||
| 269 | crate::pac::PWR.cr2().modify(|w| w.set_usv(true)); | ||
| 270 | } | ||
| 271 | 268 | ||
| 272 | #[cfg(pwr_h5)] | 269 | #[cfg(pwr_h5)] |
| 273 | crate::pac::PWR.usbscr().modify(|w| w.set_usb33sv(true)); | 270 | crate::pac::PWR.usbscr().modify(|w| w.set_usb33sv(true)); |
