Added code to ignore ZLP packets on the ISOOUT endpoint... not fixing issue yet

pull/10689/head
George Beckstein 2019-01-19 15:09:35 -05:00 committed by aglass0fmilk
parent d3844a181c
commit dde7bffb87
1 changed files with 11 additions and 0 deletions

View File

@ -467,7 +467,18 @@ void USBPhyHw::process() {
events->ep0_out();
}
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);
}
}
}
break;