summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2024-12-11 15:56:35 +0700
committerGitHub <[email protected]>2024-12-11 15:56:35 +0700
commitf0dd198462d6902ae3b2de473400ea0218cb5d9c (patch)
tree99fd0bdd32b61f33118a3f1c3f2ff2d370209de7
parentcb22301f91f0465a5578be35d9be284657ddd31d (diff)
parentd502a0c481b7e0e742e2997f0d3fb5ef9f4eb9d4 (diff)
Merge pull request #2901 from hathach/fix-dwc2-epcount
fix correct DWC2_EP_COUNT
-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
//--------------------------------------------------------------------+