Skip to content

Commit

Permalink
Merge pull request #29 from espressif/fix/hs_max_ep_number
Browse files Browse the repository at this point in the history
fix(dwc2_esp32): Fixed define for DWC_EP_MAX value
  • Loading branch information
roma-jam authored Oct 22, 2024
2 parents 33d36cb + 8e732dd commit d141872
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/portable/synopsys/dwc2/dwc2_esp32.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
// OTG HS always has higher number of endpoints than FS
// Declare the DWC2_EP_MAX as a higher number, because dcd_dwc2.c has a xfer_status
// buffer, tied to the EP MAX value.
// IMPORTANT: Be careful during usage of two USB periphs (HS and FS) at the same time with full EPs load.
#ifdef USB_OTG_HS_PERIPH_BASE
// IMPORTANT: Be careful during usage of two USB peripherals (HS and FS) at the same time with full EPs load.
#ifdef DWC2_HS_PERIPH_BASE
#define DWC2_EP_MAX DWC2_HS_EP_MAX
#else
#define DWC2_EP_MAX DWC2_FS_EP_MAX
Expand Down

0 comments on commit d141872

Please sign in to comment.