summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-12-11 16:20:02 +0700
committerhathach <[email protected]>2024-12-11 16:20:02 +0700
commit91799b0df5d3a33499a798af07f5dfd18d8dba3b (patch)
treec4c53001e390131a4bde94d632d67e4a9a9f962d /src
parent29fa07d2ad774181877a311e8c0770195a020b3b (diff)
parent7c7b30f0ae66a856ada3526cb947bd3a255567f8 (diff)
Merge branch 'master' into fork/HiFiPhile/rt1170
Diffstat (limited to 'src')
-rw-r--r--src/portable/synopsys/dwc2/dcd_dwc2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/synopsys/dwc2/dcd_dwc2.c b/src/portable/synopsys/dwc2/dcd_dwc2.c
index bde48ef57..c461d9a79 100644
--- a/src/portable/synopsys/dwc2/dcd_dwc2.c
+++ b/src/portable/synopsys/dwc2/dcd_dwc2.c
@@ -44,7 +44,7 @@
#if TU_CHECK_MCU(OPT_MCU_GD32VF103)
#define DWC2_EP_COUNT(_dwc2) DWC2_EP_MAX
#else
- #define DWC2_EP_COUNT(_dwc2) ((_dwc2)->ghwcfg2_bm.num_dev_ep)
+ #define DWC2_EP_COUNT(_dwc2) ((_dwc2)->ghwcfg2_bm.num_dev_ep + 1)
#endif
//--------------------------------------------------------------------+