Skip to content

Fix esp32 max3421e #510

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

Merged
merged 3 commits into from
Mar 20, 2025
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
1 change: 1 addition & 0 deletions .github/workflows/githubci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
matrix:
arduino-platform:
# ESP32 ci use dev json
- 'feather_esp32_v2'
- 'feather_esp32s2'
- 'feather_esp32s3'
- 'esp32p4'
Expand Down
1 change: 1 addition & 0 deletions examples/CDC/cdc_multi/.skip.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
feather_esp32_v2
feather_esp32s2
feather_esp32s3
funhouse
Expand Down
Empty file.
2 changes: 2 additions & 0 deletions examples/CDC/no_serial/.skip.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
Empty file.
2 changes: 2 additions & 0 deletions examples/CDC/serial_echo/.skip.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
Empty file.
2 changes: 2 additions & 0 deletions examples/Composite/mouse_ramdisk/.skip.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
1 change: 1 addition & 0 deletions examples/DualRole/HID/hid_mouse_log_filter/.skip.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
CH32V20x_EVT
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ uint8_t const desc_hid_report[] = {
TUD_HID_REPORT_DESC_MOUSE()
};

// USB HID object. For ESP32 these values cannot be changed after this declaration
// desc report, desc len, protocol, interval, use out endpoint
// USB HID object: desc report, desc len, protocol, interval, use out endpoint
Adafruit_USBD_HID usb_hid(desc_hid_report, sizeof(desc_hid_report), HID_ITF_PROTOCOL_MOUSE, 2, false);

/* Adjustable parameters for the log_filter() method.
Expand Down
1 change: 1 addition & 0 deletions examples/DualRole/HID/hid_mouse_tremor_filter/.skip.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
CH32V20x_EVT
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ uint8_t const desc_hid_report[] = {
TUD_HID_REPORT_DESC_MOUSE()
};

// USB HID object. For ESP32 these values cannot be changed after this declaration
// desc report, desc len, protocol, interval, use out endpoint
// USB HID object: desc report, desc len, protocol, interval, use out endpoint
Adafruit_USBD_HID usb_hid(desc_hid_report, sizeof(desc_hid_report), HID_ITF_PROTOCOL_MOUSE, 2, false);

//------------- Low pass filter with Butterworth -------------//
Expand Down
1 change: 1 addition & 0 deletions examples/DualRole/HID/hid_remapper/.skip.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
CH32V20x_EVT
4 changes: 1 addition & 3 deletions examples/DualRole/HID/hid_remapper/hid_remapper.ino
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,9 @@ uint8_t const desc_hid_report[] = {
TUD_HID_REPORT_DESC_KEYBOARD()
};

// USB HID object. For ESP32 these values cannot be changed after this declaration
// desc report, desc len, protocol, interval, use out endpoint
// USB HID object: desc report, desc len, protocol, interval, use out endpoint
Adafruit_USBD_HID usb_hid(desc_hid_report, sizeof(desc_hid_report), HID_ITF_PROTOCOL_KEYBOARD, 2, false);


void setup() {
Serial.begin(115200);
usb_hid.begin();
Expand Down
Empty file.
2 changes: 2 additions & 0 deletions examples/HID/hid_boot_keyboard/.skip.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
Empty file.
2 changes: 2 additions & 0 deletions examples/HID/hid_boot_mouse/.skip.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
Empty file.
2 changes: 2 additions & 0 deletions examples/HID/hid_composite/.skip.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
1 change: 1 addition & 0 deletions examples/HID/hid_composite_joy_featherwing/.skip.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
CH32V20x_EVT
Empty file.
2 changes: 2 additions & 0 deletions examples/HID/hid_dual_interfaces/.skip.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
Empty file.
2 changes: 2 additions & 0 deletions examples/HID/hid_gamepad/.skip.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
Empty file.
2 changes: 2 additions & 0 deletions examples/HID/hid_generic_inout/.skip.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
Empty file.
2 changes: 2 additions & 0 deletions examples/MIDI/midi_multi_ports/.skip.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
Empty file.
2 changes: 2 additions & 0 deletions examples/MIDI/midi_test/.skip.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
1 change: 1 addition & 0 deletions examples/MassStorage/msc_external_flash/.skip.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
CH32V20x_EVT
1 change: 1 addition & 0 deletions examples/MassStorage/msc_external_flash_sdcard/.skip.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
CH32V20x_EVT
1 change: 1 addition & 0 deletions examples/MassStorage/msc_ramdisk/.skip.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
1 change: 1 addition & 0 deletions examples/MassStorage/msc_ramdisk_dual/.skip.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
CH32V20x_EVT
1 change: 1 addition & 0 deletions examples/MassStorage/msc_sd/.skip.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
feather_esp32_v2
feather_esp32s2
feather_esp32s3
funhouse
Expand Down
1 change: 1 addition & 0 deletions examples/MassStorage/msc_sdfat/.skip.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
1 change: 1 addition & 0 deletions examples/Vendor/i2c_tiny_usb_adapter/.skip.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
CH32V20x_EVT
1 change: 1 addition & 0 deletions examples/Video/video_capture/.skip.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
CH32V20x_EVT
1 change: 1 addition & 0 deletions examples/WebUSB/webusb_rgb/.skip.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
CH32V20x_EVT
# CH32V20x_EVT is not supported due to Adafruit_Neopixel
1 change: 1 addition & 0 deletions examples/WebUSB/webusb_serial/.skip.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
CH32V20x_EVT
# CH32V20x_EVT is not supported due to lacking of HardwareSerial::read(uint8_t [64], int)
5 changes: 5 additions & 0 deletions src/arduino/ports/esp32/tusb_config_esp32.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,13 @@ extern "C" {

//--------------------------------------------------------------------
// DEVICE CONFIGURATION
// only enabled if USB OTG is supported
//--------------------------------------------------------------------
#if defined(CONFIG_USB_OTG_SUPPORTED) && CONFIG_USB_OTG_SUPPORTED
#define CFG_TUD_ENABLED 1
#else
#define CFG_TUD_ENABLED 0
#endif

#define CFG_TUD_CDC 2
#define CFG_TUD_MSC 1
Expand Down