Skip to content

Commit

Permalink
Merge pull request hathach#1614 from kasjer/kasjer/fix-nrf5x-with-iso
Browse files Browse the repository at this point in the history
nrf5x: Fix endpoint internal state when closed
  • Loading branch information
hathach authored Aug 26, 2022
2 parents 101cbf6 + 5e3cfe7 commit b624664
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/portable/nordic/nrf5x/dcd_nrf5x.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ void dcd_edpt_close (uint8_t rhport, uint8_t ep_addr)
// When both ISO endpoint are close there is no need for SOF any more.
if (_dcd.xfer[EP_ISO_NUM][TUSB_DIR_IN].mps + _dcd.xfer[EP_ISO_NUM][TUSB_DIR_OUT].mps == 0) NRF_USBD->INTENCLR = USBD_INTENCLR_SOF_Msk;
}
_dcd.xfer[epnum][dir].started = false;
__ISB(); __DSB();
}

Expand Down

0 comments on commit b624664

Please sign in to comment.