Skip to content

Commit

Permalink
fix(dwc2_esp32): Fixed define for DWC_EP_MAX value
Browse files Browse the repository at this point in the history
  • Loading branch information
roma-jam committed Jul 30, 2024
1 parent 33d36cb commit 8e732dd
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 8e732dd

Please sign in to comment.