mirror of https://github.com/ARMmbed/mbed-os.git
Added code to ignore ZLP packets on the ISOOUT endpoint... not fixing issue yet
parent
d3844a181c
commit
dde7bffb87
|
@ -467,9 +467,20 @@ void USBPhyHw::process() {
|
||||||
events->ep0_out();
|
events->ep0_out();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
// TODO - this may impact valid ZLP transfers
|
||||||
|
// on the ISOOUT endpoint
|
||||||
|
// If ISOOUT endpoint transaction occurred
|
||||||
|
// and the ZERO bit of SIZE.ISOOUT is set...
|
||||||
|
// ignore it for now... possible hardware bug?
|
||||||
|
if((usb_event.data.eptransfer.ep == NRF_DRV_USBD_EPOUT8)
|
||||||
|
&& (NRF_USBD->SIZE.ISOOUT & (1 << 16)))
|
||||||
|
break;
|
||||||
|
|
||||||
events->out((usb_ep_t) usb_event.data.eptransfer.ep);
|
events->out((usb_ep_t) usb_event.data.eptransfer.ep);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case NRF_DRV_USBD_EVT_SETUP: {
|
case NRF_DRV_USBD_EVT_SETUP: {
|
||||||
nrf_drv_usbd_ep_stall_clear(NRF_DRV_USBD_EPIN0);
|
nrf_drv_usbd_ep_stall_clear(NRF_DRV_USBD_EPIN0);
|
||||||
|
|
Loading…
Reference in New Issue