summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2022-08-26 13:47:36 +0700
committerGitHub <[email protected]>2022-08-26 13:47:36 +0700
commitb624664f52df9454755a8a67518b2a11b06cfb8b (patch)
tree836e30a3f8c56a1ee5d6e1963183c3adbba0c47f
parent101cbf6e31916267ba05b79ee6596e6f9306b20b (diff)
parent5e3cfe7b5784ee94a4914b36232d28ce96cf18f2 (diff)
Merge pull request #1614 from kasjer/kasjer/fix-nrf5x-with-iso
nrf5x: Fix endpoint internal state when closed
-rw-r--r--src/portable/nordic/nrf5x/dcd_nrf5x.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/portable/nordic/nrf5x/dcd_nrf5x.c b/src/portable/nordic/nrf5x/dcd_nrf5x.c
index efa30c60a..f213e9f9f 100644
--- a/src/portable/nordic/nrf5x/dcd_nrf5x.c
+++ b/src/portable/nordic/nrf5x/dcd_nrf5x.c
@@ -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();
}