mirror of https://github.com/ARMmbed/mbed-os.git
Ignore events that happen when an endpoint is stalled/halted
parent
54b72d2eb3
commit
9e61bbc4e3
|
@ -449,6 +449,8 @@ void USBPhyHw::process() {
|
|||
break;
|
||||
case NRF_DRV_USBD_EVT_EPTRANSFER:
|
||||
if(usb_event.data.eptransfer.status == NRF_USBD_EP_OK)
|
||||
{
|
||||
if(!nrf_drv_usbd_ep_stall_check(usb_event.data.eptransfer.ep))
|
||||
{
|
||||
if(IS_IN_EP(usb_event.data.eptransfer.ep))
|
||||
{
|
||||
|
@ -487,6 +489,7 @@ void USBPhyHw::process() {
|
|||
events->out((usb_ep_t) usb_event.data.eptransfer.ep);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case NRF_DRV_USBD_EVT_SETUP: {
|
||||
nrf_drv_usbd_ep_stall_clear(NRF_DRV_USBD_EPIN0);
|
||||
|
|
Loading…
Reference in New Issue