165 Commits

Author SHA1 Message Date
igor.masar 37f58cf498 ci(usb/host): enable esp32s31 and esp32h4 for USB host examples
Remove the temporary esp32s31 disable from usb/host build-test rules.
Add esp32s31 and esp32h4 to the usb_host_msc and usb_host_lib pytest
matrices. Keep the tests temp-skipped in CI until usb_host_flash_disk
runners exist.
2026-04-16 16:25:26 +02:00
Martin Vychodil 0fd5bae048 Merge branch 'refactor/fatfs_vfs_change_esp_vfs_fat_register_prototype' into 'master'
refactor(fatfs): Update esp_vfs_fat_register function prototype

Closes IDF-9212 and DOC-12416

See merge request espressif/esp-idf!41953
2026-02-20 03:07:35 +08:00
peter.marcisovsky c9c0af84b7 fix(usb_device_ncm): Fix example support for iOS devices
NCM device usage with an iOS device as a USB Host
    Closes https://github.com/espressif/esp-idf/issues/18079
2026-02-19 09:21:34 +01:00
peter.marcisovsky 455d8589ff fix(usb_device): Enable compile warning on device examples 2026-02-16 16:43:31 +01:00
Tomas Rezucha b028d25f91 refactor: Merge USB Host CDC-ACM and CDC-VCP examples 2026-02-06 09:03:14 +01:00
Adam Múdry d58b9406d8 fix: Update examples etc. to use esp_vfs_fat_register
Instead of deprecated esp_vfs_fat_register_cfg
2026-02-04 16:33:40 +01:00
Adam Múdry 006b95f384 fix: Update cherryusb_host and examples using esp_tinyusb and usb_host_msc 2026-02-04 14:07:13 +01:00
Tomas Rohlinek 203c4da5f8 Merge branch 'feat/vfs_remove_old_api' into 'master'
feat(storage/vfs): v6 API breaking changes

Closes DOC-13273

See merge request espressif/esp-idf!42182
2025-12-17 20:21:27 +01:00
Tomáš Rohlínek 8c9d62de98 feat(storage/vfs): Remove old API usage 2025-12-16 17:48:55 +08:00
Tomas Rezucha b3445d09df fix(usb/host): Update CDC example so it opens device with any VID/PID
Closes https://github.com/espressif/esp-usb/issues/302
2025-12-15 13:37:22 +01:00
peter.marcisovsky b670f1cece fix(usb_host): Dont abort on unsupported client events
- suspend and resume client events
2025-12-09 09:58:01 +01:00
Tomas Rezucha 98af307c66 ci(usb/device): re-enable usb_device tests for ESP32-P4 2025-11-25 16:06:57 +01:00
armando b25ba4a0c1 ci(p4): disable p4 rev3 invalid tests temporarily 2025-11-17 12:11:39 +08:00
igor.masar 7492f9b9cd docs(usb): add ESP32-H4 support notes and pin map
- usb_device: add esp32h4 DP/DM defaults (GPIO22/21) and "only:: esp32h4";
  add H4 PHY considerations; add H4 MSC write-speed table; generalize MSC SD
  note to {IDF_TARGET_NAME}; exclude tusb_ncm on H4
- usb_host: include esp32h4 in feature gates; add H4 PHY considerations
- usb_host_notes_dwc_otg: enable H4 by extending "only::" selector
- examples/usb: add ESP32-H4 row to DP/DM pin map
- docs_not_updated: drop H4 entries for usb_device, usb_host, and related
  usb_host notes now covered
- soc(esp32h4): set internal PHY mapping to DP=22, DM=21
2025-11-07 12:19:26 +01:00
Roman Leonov dc2013697a feat(tusb_hid_example): Added possibility to wakeup the Host with the button press 2025-11-04 22:17:25 +08:00
igor.masar c74ce1c201 feat(usb/h4): Add USB OTG host support for ESP32-H4
- hal: add DWC OTG core LL (usb_dwc_ll.h) and USB wrap LL (usb_wrap_ll.h)
- soc: add DWC register map/cfg (usb_dwc_struct.h, usb_dwc_cfg.h) and caps
- soc/kconfig: enable SOC_USB_OTG_SUPPORTED=1, SOC_USB_OTG_PERIPH_NUM=1
- docs: add ESP32-H4 to usb_phy test app “Supported Targets”
- ld: export USB_WRAP symbol
- doxygen: include USB Host headers for H4 to emit .inc files
2025-10-02 23:21:08 +02:00
peter.marcisovsky b3bb053160 refactor(usb_host): Remove usb component form esp-idf
- usb component was relocated from esp-idf to esp-usb
    - the component is now a managed component
2025-09-29 17:15:17 +02:00
Kapil Gupta 0f63b92501 fix(esp_wifi): remove esp_interface.h and update usages 2025-09-26 21:42:30 +05:30
peter.marcisovsky bb4c016d59 fix(usb_host): Updaing changed Kconfig value from usb_host_uvc component in UVC example 2025-09-26 03:41:37 +08:00
Tomas Rezucha 617a608027 fix(usb/host): Use ESP_INTR_FLAG_LOWMED interrupt priority for USB examples 2025-09-19 14:12:53 +02:00
Tomas Rezucha 5efa5ab9f5 Merge branch 'feature/usb_device_examples_update_v2.0.0' into 'master'
feature(usb_device): Examples update to esp_tinyusb v2.0.0

Closes IDF-13618

See merge request espressif/esp-idf!41610
2025-09-15 09:28:49 +02:00
Roman Leonov e55b7fe2b5 feat(usb_device): Update examples to esp_tinyusb v2.0.0 2025-09-12 11:28:35 +02:00
peter.marcisovsky af4f9cbaed feat(cherry_usb): Pin cherryusb component version
- prerequisite for usb component migration from esp-idf
2025-09-12 09:13:29 +02:00
Li Peng 36229958d9 Merge branch 'feat/add_cherryusb_demo' into 'master'
feat(usb): add CherryUSB serial device and host example

See merge request espressif/esp-idf!39467
2025-09-03 10:14:46 +08:00
LiPeng 1f76ea953e fix(usb): fix ths bug that ALT escape input for USB HID keyboard 2025-09-02 10:42:39 +08:00
Alexey Lapshin 28ced4efad fix(config): actualize newlib Kconfig options 2025-08-28 12:25:09 +08:00
LiPeng 8f9eeedae1 feat(usb): add CherryUSB support for multiple USB controllers selection 2025-08-27 16:59:37 +08:00
LiPeng 0ac445cbd6 feat(usb): add CherryUSB host msc example 2025-08-27 16:59:37 +08:00
LiPeng 4366f118ed feat(usb): add ALT escape input for USB HID keyboard 2025-08-27 16:59:37 +08:00
LiPeng 6069bdcdca feat(examples/peripherals/usb/cherryusb/host/cherryusb_host): add CherryUSB host example 2025-08-27 16:59:37 +08:00
LiPeng f866fbd9bc feat(examples/peripherals/usb/cherryusb/device/cherryusb_serial_device): add CherryUSB serial device example 2025-08-27 16:59:37 +08:00
Marek Fiala 9d35d63651 feat(cmake): Update minimum cmake version to 3.22 (whole repository) 2025-08-19 14:44:32 +02:00
peter.marcisovsky 4deccbc4a6 fix(usb_host): Run esp-usb pre-commit:
- trailing whitespaces
    - end-of-file-fixer
    - codespell
    - astyle_py: align pointer name
2025-08-11 13:14:36 +02:00
Darian Leung 5454499877 refactor: Use enum values for gpio pull up/down fields
Ensure that enum values are used When assigning `pull_up_en` and `pull_down_en`
fields of `gpio_config_t`. Helps avoid `invalid conversion` errors when
building those code snippets in C++.
2025-08-07 11:45:11 +08:00
Roman Leonov 7fbe72ca27 refactor(usb_host_example): Added opening only for device with proto 2025-06-30 11:19:42 +02:00
Tomas Rezucha 025aec91c5 docs(usb): Update ESP32-P4 USB pins to MP version
Closes https://github.com/espressif/esp-idf/issues/16136
2025-06-16 13:32:51 +02:00
Tomas Rezucha b961f42e8b feat(usb/host): Add option to choose peripheral for USB host library
Starting with ESP32-P4 we can have targets that have more than 1 USB-OTG peripheral.
This commit adds an option to choose which peripherals will be used by USB Host lib.

Internally, we will still have only 1 Root HUB but with multiple Root ports.
2025-05-14 10:34:11 +02:00
peter.marcisovsky cd5b3877bf feat(usb_host): Move DMA capable memory to external ram on P4
- DWC-OTG internal DMA can access psram on esp32p4
    - Move DMA memory buffs to psram, to save internal ram
    - HCD tests and MSC example runs in CI with psram enabled
2025-05-13 15:37:30 +08:00
Ivan Grokhotkov 236200a93f change(examples): remove idf version dependency 2025-05-12 11:39:41 +02:00
Tomas Rezucha 1816b95261 refactor(usb/host): Update UVC example for new UVC driver v2.0 2025-04-22 08:48:18 +02:00
Adam Múdry 93ff1aec46 Merge branch 'feat/remove_const_from_voltopart' into 'master'
feat(fatfs/diskio): Remove const from PARTITION VolToPart

Closes IDFGH-13211

See merge request espressif/esp-idf!38150
2025-04-16 23:46:19 +08:00
Peter Marcisovsky e9bdd39599 Merge branch 'fix/usb_device_fix_ncm_pytest' into 'master'
fix(usb_device): Fix failing NCM device test by increasing dealy for the network ifc

See merge request espressif/esp-idf!38384
2025-04-14 22:40:23 +08:00
peter.marcisovsky 07765cde50 fix(usb_host): Fix msc example pytest to support external hub 2025-04-11 17:25:30 +02:00
peter.marcisovsky dbc111ebff fix(usb_device): Fix failing NCM device test by increasing dealy for the network ifc 2025-04-11 16:49:04 +02:00
Guillaume Souchere 8f0e9f038b fix(tinyusb): Update console exit mechanism in tusb_msc example 2025-04-03 10:06:59 +02:00
Guillaume Souchere 30f8b59ed0 feat(console): Make console deinit optional 2025-04-03 10:06:01 +02:00
Adam Múdry b5b2fbc87d feat(fatfs/diskio): Remove const from PARTITION VolToPart
Closes https://github.com/espressif/esp-idf/issues/14148
2025-03-31 13:35:39 +02:00
Igor Masar 9722bfcf33 feat(usb_host/msc): Add support for multiple MSC devices
Enhanced the USB MSC host example to support multiple simultaneously
connected Mass Storage Class (MSC) devices.

- Implemented dynamic allocation and mounting of multiple MSC devices.
- Improved example logic for handling USB device connections and disconnections.
- Updated documentation to clarify USB host limitations and endpoint allocation.
2025-03-20 17:40:47 +08:00
igor.udot daf2d31008 test: format all test scripts 2025-03-05 12:08:48 +08:00
Tomas Rezucha 65c2cc095d refactor(usb/phy): Merge P4 and S2/S3 PHYs into one module
P4 had separate PHY implementation for initial bring-up,
now we can merge it with the original PHY driver.
2025-01-15 11:18:10 +01:00