Skip to content

Commit 8d1503b

Browse files
committed
Fix: #13203: USB device: wait_us instead of ThisThread::sleep_for, delay given is 5us
1 parent a6207ca commit 8d1503b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_NXP/USBHAL_LPC17.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ void USBPhyHw::init(USBPhyEvents *events)
411411
LPC_PINCON->PINSEL4 |= 0x00040000;
412412

413413
// Connect must be low for at least 2.5uS
414-
ThisThread::sleep_for(300);
414+
wait_us(5);
415415

416416
// Disable control endpoints
417417
SIEsetEndpointStatus(EP0IN, SIE_SES_DA);

0 commit comments

Comments
 (0)