Merge pull request #510 from adafruit/fix-esp32-max3421e
Fix esp32 max3421e
This commit is contained in:
commit
4b9a629a55
42 changed files with 46 additions and 7 deletions
1
.github/workflows/githubci.yml
vendored
1
.github/workflows/githubci.yml
vendored
|
|
@ -48,6 +48,7 @@ jobs:
|
|||
matrix:
|
||||
arduino-platform:
|
||||
# ESP32 ci use dev json
|
||||
- 'feather_esp32_v2'
|
||||
- 'feather_esp32s2'
|
||||
- 'feather_esp32s3'
|
||||
- 'esp32p4'
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
feather_esp32_v2
|
||||
feather_esp32s2
|
||||
feather_esp32s3
|
||||
funhouse
|
||||
|
|
|
|||
2
examples/CDC/no_serial/.skip.txt
Normal file
2
examples/CDC/no_serial/.skip.txt
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
feather_esp32_v2
|
||||
pico_rp2040_tinyusb_host
|
||||
2
examples/CDC/serial_echo/.skip.txt
Normal file
2
examples/CDC/serial_echo/.skip.txt
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
feather_esp32_v2
|
||||
pico_rp2040_tinyusb_host
|
||||
2
examples/Composite/mouse_ramdisk/.skip.txt
Normal file
2
examples/Composite/mouse_ramdisk/.skip.txt
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
feather_esp32_v2
|
||||
pico_rp2040_tinyusb_host
|
||||
|
|
@ -1,2 +1,3 @@
|
|||
feather_esp32_v2
|
||||
pico_rp2040_tinyusb_host
|
||||
CH32V20x_EVT
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
feather_esp32_v2
|
||||
pico_rp2040_tinyusb_host
|
||||
CH32V20x_EVT
|
||||
|
|
|
|||
|
|
@ -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 -------------//
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
feather_esp32_v2
|
||||
pico_rp2040_tinyusb_host
|
||||
CH32V20x_EVT
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
2
examples/HID/hid_boot_keyboard/.skip.txt
Normal file
2
examples/HID/hid_boot_keyboard/.skip.txt
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
feather_esp32_v2
|
||||
pico_rp2040_tinyusb_host
|
||||
2
examples/HID/hid_boot_mouse/.skip.txt
Normal file
2
examples/HID/hid_boot_mouse/.skip.txt
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
feather_esp32_v2
|
||||
pico_rp2040_tinyusb_host
|
||||
2
examples/HID/hid_composite/.skip.txt
Normal file
2
examples/HID/hid_composite/.skip.txt
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
feather_esp32_v2
|
||||
pico_rp2040_tinyusb_host
|
||||
|
|
@ -1,2 +1,3 @@
|
|||
feather_esp32_v2
|
||||
pico_rp2040_tinyusb_host
|
||||
CH32V20x_EVT
|
||||
|
|
|
|||
2
examples/HID/hid_dual_interfaces/.skip.txt
Normal file
2
examples/HID/hid_dual_interfaces/.skip.txt
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
feather_esp32_v2
|
||||
pico_rp2040_tinyusb_host
|
||||
2
examples/HID/hid_gamepad/.skip.txt
Normal file
2
examples/HID/hid_gamepad/.skip.txt
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
feather_esp32_v2
|
||||
pico_rp2040_tinyusb_host
|
||||
2
examples/HID/hid_generic_inout/.skip.txt
Normal file
2
examples/HID/hid_generic_inout/.skip.txt
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
feather_esp32_v2
|
||||
pico_rp2040_tinyusb_host
|
||||
2
examples/MIDI/midi_multi_ports/.skip.txt
Normal file
2
examples/MIDI/midi_multi_ports/.skip.txt
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
feather_esp32_v2
|
||||
pico_rp2040_tinyusb_host
|
||||
2
examples/MIDI/midi_test/.skip.txt
Normal file
2
examples/MIDI/midi_test/.skip.txt
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
feather_esp32_v2
|
||||
pico_rp2040_tinyusb_host
|
||||
|
|
@ -1,2 +1,3 @@
|
|||
feather_esp32_v2
|
||||
pico_rp2040_tinyusb_host
|
||||
CH32V20x_EVT
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
feather_esp32_v2
|
||||
pico_rp2040_tinyusb_host
|
||||
CH32V20x_EVT
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
feather_esp32_v2
|
||||
pico_rp2040_tinyusb_host
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
feather_esp32_v2
|
||||
pico_rp2040_tinyusb_host
|
||||
CH32V20x_EVT
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
feather_esp32_v2
|
||||
feather_esp32s2
|
||||
feather_esp32s3
|
||||
funhouse
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
feather_esp32_v2
|
||||
pico_rp2040_tinyusb_host
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
feather_esp32_v2
|
||||
pico_rp2040_tinyusb_host
|
||||
CH32V20x_EVT
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
feather_esp32_v2
|
||||
pico_rp2040_tinyusb_host
|
||||
CH32V20x_EVT
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
feather_esp32_v2
|
||||
pico_rp2040_tinyusb_host
|
||||
CH32V20x_EVT
|
||||
# CH32V20x_EVT is not supported due to Adafruit_Neopixel
|
||||
|
|
@ -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)
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue