Commit Graph

80 Commits

Author SHA1 Message Date
peter.marcisovsky
8a9a79468e fix(usb_device_example): Remove non-existing tinyusb reset weak callback 2026-07-22 19:41:02 +08:00
peter.marcisovsky
1e03246965 feat(usb_device_example): Create per-target sdkconfig.defaults 2026-07-15 11:31:55 +02:00
peter.marcisovsky
a465662c66 feat(usb_device): Add SDMMC support for MSC USB Device example for esp32s31 target
- Added CI build of the MSC device example with SDMMC config
2026-07-13 14:29:40 +02:00
morris
651d6a283f refactor(esp_common): centralize ALIGN_UP/ALIGN_DOWN into esp_macros.h
Remove ~50 duplicate local definitions of ALIGN_UP/ALIGN_DOWN/ALIGN_UP_BY/
ALIGN_DOWN_BY across the codebase and replace them with canonical
ESP_ALIGN_UP/ESP_ALIGN_DOWN from esp_macros.h.
2026-07-06 13:36:06 +08:00
Jiang Jiang Jian
41a7095015 Merge branch 'feat/support_usb_wakeup_from_light_sleep' into 'master'
feat: support usb wakeup from light sleep

Closes IDF-7212

See merge request espressif/esp-idf!48988
2026-06-17 19:50:11 +08:00
JiangGuangMing
6020aec177 fix(usb): address wakeup example review comments
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-10 18:59:24 +08:00
Jiang Guang Ming
d65b467108 fix(usb): address usb wakeup review comments 2026-06-10 15:14:37 +08:00
JiangGuangMing
1c9c394197 feat(usb): add usb wakeup from light sleep example 2026-06-10 15:14:33 +08:00
Tomas Rezucha
2d19225f46 feat(usb/example): Enable NCM device example on ESP32-P4 2026-06-08 16:56:17 +08:00
igor.masar
7d0344ac39 feat(usb): Enable ESP32-S31 USB device examples
Enable ESP32-S31 in the USB device example build rules, supported
target tables, USB PHY pin mapping, and pytest target parametrization.

The target supports USB-OTG through its USB 2.0 PHY. Keep ESP32-S31
USB device tests marked as temporary CI skips until runners with the
usb_device tag are available.
2026-05-19 15:10:47 +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
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
Tomáš Rohlínek
8c9d62de98 feat(storage/vfs): Remove old API usage 2025-12-16 17:48:55 +08: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
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
Kapil Gupta
0f63b92501 fix(esp_wifi): remove esp_interface.h and update usages 2025-09-26 21:42:30 +05:30
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
LiPeng
1f76ea953e fix(usb): fix ths bug that ALT escape input for USB HID keyboard 2025-09-02 10:42:39 +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
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
Ivan Grokhotkov
236200a93f change(examples): remove idf version dependency 2025-05-12 11:39:41 +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
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.udot
daf2d31008 test: format all test scripts 2025-03-05 12:08:48 +08:00
Frantisek Hrbata
1c92945f59 change(examples): switch examples to use a minimal build
Currently, several example dependencies rely on the fact that all
registered components are added to the build, along with components
specified in common requirements. This results in longer build times
because even unused components must be built. Switch all examples to use
idf_minimal_build to compile only the components actually required by
the example.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-11-20 20:14:40 +01:00
Adam Múdry
7e9782b67e fix(examples): tusb_midi task stack overflow fix 2024-11-14 13:03:27 +01:00
Roman Leonov
32f60da330 fix(tusb_msc): Fixed sdmmc init on ESP32P4 2024-11-13 16:34:54 +01:00
Peter Marcisovsky
c2366d5df6 Merge branch 'fix/usb_device_msc_example_fix_console' into 'master'
fix(usb_device): Fix console selection in MSC Device example

Closes IDF-11136

See merge request espressif/esp-idf!33517
2024-09-19 19:29:33 +08:00
Peter Marcisovsky
70ff700f56 Merge branch 'ci/usb_device_enable_p4_tests' into 'master'
ci(usb_device): Enable USB device tests in CI for esp32p4

See merge request espressif/esp-idf!33287
2024-09-19 19:17:40 +08:00
Peter Marcisovsky
2da0f66e9a fix(usb_device): Fix console periheral, enable USJ Console on P4 2024-09-13 10:28:43 +02:00
Peter Marcisovsky
db6e37c975 ci(usb_device): Fix exception for ACM port in USB composite dev pytest 2024-09-03 17:05:34 +02:00
Peter Marcisovsky
67a8480aec ci(usb_device): Enable USB device tests in CI for esp32p4 2024-09-03 16:43:49 +02:00
Peter Marcisovsky
d8d92c1928 refactor(examples): Refactor rx callbacks in USB device examples with CDC device
- cdcacm_write_queue and cdcacm_write_flush moved from rx callback to main task
    - received data from rx callback are handled by freerots queues
2024-06-06 15:51:23 +02:00
Tomas Rezucha
6b10a3074a fix(ci): Temporarily disable USB device tests on S3
Partially reverts 1302fd70ba
2024-04-17 11:43:10 +02:00
Roman Leonov
a3191451bc refactor(usb_device): Fixed examples with esp_tinyusb v1.4.4 2024-03-28 16:40:49 +01:00
Peter Marcisovsky
1302fd70ba ci: Add esp32s3 runner for usb device example tests
- CI USB device tests are run on esp32s3
    - usb_host env_marker removed - not used anymore
    - failing usb_device_ncm test fixed
2024-02-29 15:10:18 +01:00
Peter Marcisovsky
51d6296fde ci: Added esp32p4 usb tests to CI:
- added new test for usb_host_lib example for all targets
    - CI USB host test are run on esp32p4
    - CI USB device tests temporarily disabled until usb_device runner is fixed
    - hcd and usb_host tests which do not require PHY are run on esp32p4
2024-02-29 10:35:09 +01:00