-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR fixes USB support for ESP IDF 5.2. Note that host mode is still not yet supported for esp32sx. Improvements: - Update to tinyusb master - Move initialisation code into separate Arch source file, patch to support ESP32 IDF 5.2 (not yet in tinyusb upstream) - Add CI support (speeds up library testing) Fixes: - Lazy-initialise flush timer: Causes problems with static Device objects and esp32sx as timer's aren't yet initialised - Enable python UTF8 mode for usbconfig tool (Windows) - UsbSerial conditional on CDC - Don't implement descriptor callbacks unless building for device - Ensure HID device is ready when sendReport called: get div-by-zero exception on esp32s2 otherwise - Fix `Basic_IFS` sample with `ENABLE_USB_STORAGE`: only for rp2040, no host support yet for esp32sx Tested with rp2040, esp32s2.
- Loading branch information
Showing
3 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
Submodule USB
updated
21 files
+19 −0 | .github/workflows/ci-dispatch.yml | |
+9 −0 | .github/workflows/ci-push.yml | |
+0 −125 | .patches/tinyusb/src/portable/template/hcd_template.c | |
+3 −6 | component.mk | |
+6 −0 | samples/Basic_Device/README.rst | |
+1 −1 | samples/Basic_Host/app/xbox.cpp | |
+4 −4 | samples/CDC_MSC_HID_Host/app/cdc_app.cpp | |
+78 −0 | src/Arch/Esp32/init.cpp | |
+30 −0 | src/Arch/Host/init.cpp | |
+30 −0 | src/Arch/Rp2040/init.cpp | |
+2 −46 | src/USB.cpp | |
+1 −1 | src/USB/CDC/Device.cpp | |
+1 −1 | src/USB/CDC/HostDevice.cpp | |
+15 −11 | src/USB/CDC/UsbSerial.cpp | |
+3 −3 | src/USB/CDC/UsbSerial.h | |
+4 −0 | src/USB/Descriptors.cpp | |
+1 −1 | src/USB/HID/Device.cpp | |
+5 −0 | src/USB/HID/Device.h | |
+1 −1 | src/USB/VENDOR/Device.cpp | |
+1 −1 | tinyusb | |
+25 −27 | tinyusb.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
{ | ||
"host": { | ||
"msc": 1 | ||
"hub": { | ||
"port-count": 4 | ||
}, | ||
"msc": { | ||
"maxlun": 4 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters