Merge pull request #510 from adafruit/fix-esp32-max3421e

Fix esp32 max3421e
This commit is contained in:
Ha Thach 2025-03-20 20:09:29 +07:00 committed by GitHub
commit 4b9a629a55
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 46 additions and 7 deletions

View file

@ -48,6 +48,7 @@ jobs:
matrix:
arduino-platform:
# ESP32 ci use dev json
- 'feather_esp32_v2'
- 'feather_esp32s2'
- 'feather_esp32s3'
- 'esp32p4'

View file

@ -1,3 +1,4 @@
feather_esp32_v2
feather_esp32s2
feather_esp32s3
funhouse

View file

@ -0,0 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host

View file

@ -0,0 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host

View file

@ -0,0 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host

View file

@ -1,2 +1,3 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
CH32V20x_EVT

View file

@ -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.

View file

@ -1,2 +1,3 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
CH32V20x_EVT

View file

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

View file

@ -1,2 +1,3 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
CH32V20x_EVT

View file

@ -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();

View file

@ -0,0 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host

View file

@ -0,0 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host

View file

@ -0,0 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host

View file

@ -1,2 +1,3 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
CH32V20x_EVT

View file

@ -0,0 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host

View file

@ -0,0 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host

View file

@ -0,0 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host

View file

@ -0,0 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host

View file

@ -0,0 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host

View file

@ -1,2 +1,3 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
CH32V20x_EVT

View file

@ -1,2 +1,3 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
CH32V20x_EVT

View file

@ -1 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host

View file

@ -1,2 +1,3 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
CH32V20x_EVT

View file

@ -1,3 +1,4 @@
feather_esp32_v2
feather_esp32s2
feather_esp32s3
funhouse

View file

@ -1 +1,2 @@
feather_esp32_v2
pico_rp2040_tinyusb_host

View file

@ -1,2 +1,3 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
CH32V20x_EVT

View file

@ -1,2 +1,3 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
CH32V20x_EVT

View file

@ -1,3 +1,4 @@
feather_esp32_v2
pico_rp2040_tinyusb_host
CH32V20x_EVT
# CH32V20x_EVT is not supported due to Adafruit_Neopixel

View file

@ -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)

View file

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