Skip to content
Commit 18fb3f9a authored by Aleksander Strzebonski's avatar Aleksander Strzebonski Committed by David Leach
Browse files

usb: dwc2: Allow for enabling USB if the cable is disconnected



Adds CONFIG_UDC_DWC2_USBHS_VBUS_READY_TIMEOUT_MS that allows
for waiting for a USBHS VBUS ready event for a specified
amount of time. Earlier it waited forever and because of that,
the udc_enable() was blocked forever if the USB cable was
disconnected. Now the function returns error on timeout.

Signed-off-by: default avatarAleksander Strzebonski <aleksander.strzebonski@nordicsemi.no>
parent ef454346
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment