diff options
| author | hathach <[email protected]> | 2024-12-11 15:02:02 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-12-11 15:02:02 +0700 |
| commit | d502a0c481b7e0e742e2997f0d3fb5ef9f4eb9d4 (patch) | |
| tree | 99fd0bdd32b61f33118a3f1c3f2ff2d370209de7 | |
| parent | cb22301f91f0465a5578be35d9be284657ddd31d (diff) | |
fix correct DWC2_EP_COUNT
| -rw-r--r-- | src/portable/synopsys/dwc2/dcd_dwc2.c | 2 |
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 //--------------------------------------------------------------------+ |
