fix correct DWC2_EP_COUNT

This commit is contained in:
hathach 2024-12-11 15:02:02 +07:00
parent cb22301f91
commit d502a0c481
No known key found for this signature in database
GPG Key ID: 26FAB84F615C3C52

View File

@ -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
//--------------------------------------------------------------------+