Support GD32F103.

This commit is contained in:
NIIBE Yutaka
2018-04-26 17:33:48 +09:00
parent 24adc09406
commit 93a2bac94b
4 changed files with 19 additions and 2 deletions

View File

@@ -1579,6 +1579,10 @@ usb_event_handle (struct usb_dev *dev)
/* Transfer to endpoint (not control endpoint) */
if (ep_num != 0)
{
/* Ignore sprious "Correct Transfer" */
if (bDeviceState != USB_DEVICE_STATE_CONFIGURED)
return 0;
if (USB_EVENT_TXRX (e))
usb_tx_done (ep_num, USB_EVENT_LEN (e));
else