Merge pull request #2610 from DieHertz/fix-usb-disconnect
Fixed USB disconnect (pull LOW for 200 ms)
This commit is contained in:
commit
4e39aa2a96
|
@ -68,10 +68,10 @@ void usbGenerateDisconnectPulse(void)
|
|||
IO_t usbPin = IOGetByTag(IO_TAG(PA12));
|
||||
IOConfigGPIO(usbPin, IOCFG_OUT_OD);
|
||||
|
||||
IOHi(usbPin);
|
||||
IOLo(usbPin);
|
||||
|
||||
delay(200);
|
||||
|
||||
IOLo(usbPin);
|
||||
IOHi(usbPin);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue