Skip to content

Commit

Permalink
Merge pull request #2901 from hathach/fix-dwc2-epcount
Browse files Browse the repository at this point in the history
fix correct DWC2_EP_COUNT
  • Loading branch information
hathach authored Dec 11, 2024
2 parents cb22301 + d502a0c commit f0dd198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/portable/synopsys/dwc2/dcd_dwc2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

//--------------------------------------------------------------------+
Expand Down

0 comments on commit f0dd198

Please sign in to comment.