Skip to content

Commit 5935cad

Browse files
dgoodladCryowatt
authored andcommitted
No more need for the delay after selecting PHY
1 parent 8cae79a commit 5935cad

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/bus.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -431,13 +431,6 @@ impl<USB: UsbPeripheral> usb_device::bus::UsbBus for UsbBus<USB> {
431431
}
432432
}
433433

434-
// Delay a few cycles after selecting PHY before doing a core reset
435-
// https://community.st.com/s/question/0D53W00000znL7jSAE/stm32h745-usbotg-intermittently-fails-to-respond-to-core-reset
436-
#[cfg(not(feature = "cortex-m"))]
437-
for _ in 0..500000 {};
438-
#[cfg(feature = "cortex-m")]
439-
cortex_m::asm::delay(25600);
440-
441434
// Perform core soft-reset
442435
while read_reg!(otg_global, regs.global(), GRSTCTL, AHBIDL) == 0 {}
443436
modify_reg!(otg_global, regs.global(), GRSTCTL, CSRST: 1);

0 commit comments

Comments
 (0)