Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dwc2_esp32): Fixed define for DWC_EP_MAX value #6

Merged
merged 1 commit into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ChangeLog

## v0.16.0~6 - 2024-07-31

* Fixed define for DWC_EP_MAX value(dwc2_esp32)

## v0.16.0~5 - 2024-06-19

* Support source code only mode. enable `TINYUSB_SOURCE_CODE_ONLY` (disable by default) to not build as static library. This is useful for projects that want to include tinyusb source code directly in their project.
Expand Down
2 changes: 1 addition & 1 deletion idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "0.16.0~5"
version: "0.16.0~6"
targets:
- esp32s2
- esp32s3
Expand Down
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