Tomas Rezucha
73e0948332
Merge branch 'docs/usb_maintainer_docs_p4' into 'master'
...
docs(usb/host): Update maintainer docs for ESP32-P4
See merge request espressif/esp-idf!32831
2024-08-22 22:21:31 +08:00
Tomas Rezucha
6457d3942d
Merge branch 'fix/usb_dma_api' into 'master'
...
fix(usb/host): Use new cache aligned DMA alloc functions
Closes IDF-10048
See merge request espressif/esp-idf!32891
2024-08-20 23:45:45 +08:00
Tomas Rezucha
512df697f0
docs(usb/host): Update maintainer docs for ESP32-P4
2024-08-20 08:14:21 +02:00
Tomas Rezucha
660319ecaf
fix(usb/host): Use new cache aligned DMA alloc functions
2024-08-20 08:13:32 +02:00
Tomas Rezucha
b71bf5f014
Merge branch 'docs/remove_c5_usb' into 'master'
...
docs(esp32c5): Remove USB docs from the 'docs_not_updated' list
Closes IDF-9456
See merge request espressif/esp-idf!32566
2024-08-05 16:31:49 +08:00
Tomas Rezucha
b0a308bdc0
docs(esp32c5): Remove USB docs from the 'docs_not_updated' list
2024-08-02 15:41:03 +02:00
Tomas Rezucha
33e68632b9
Merge branch 'fix/usb_hs_scheduler' into 'master'
...
fix(usb/host): Fix occasional ISOC scheduler skipping transfers
Closes IDFCI-2241
See merge request espressif/esp-idf!32012
2024-07-11 23:10:23 +08:00
Tomas Rezucha
43c06a5d11
fix(usb/host): Fix occasional ISOC scheduler skipping transfers
2024-07-09 16:59:27 +02:00
Tomas Rezucha
15c4d0e076
Merge branch 'fix/usb_isoc_error_status' into 'master'
...
fix(usb/host): Decode error flags in ISOC transfers
Closes IDF-7976
See merge request espressif/esp-idf!31873
2024-07-03 15:02:14 +08:00
Tomas Rezucha
04be071dc6
fix(usb/host): Decode error flags in ISOC transfers
2024-07-02 15:08:30 +02:00
Tomas Rezucha
67c10eafaa
Merge branch 'feature/usb_host_multi_configuration' into 'master'
...
USB Host multiconfiguration support pt1 (getting the configuration descriptor)
Closes IDFGH-11532 and IDF-8732
See merge request espressif/esp-idf!26760
2024-06-20 20:29:12 +08:00
Tomas Rezucha
e5bc2549ca
Merge branch 'fix/usb_host_enum_urb_rounded_for_string_desc' into 'master'
...
fix(enum): Returned usb_round_up_to_mps for control request of string descriptors
See merge request espressif/esp-idf!31487
2024-06-13 23:50:13 +08:00
Tomas Rezucha
6b10a3074a
fix(ci): Temporarily disable USB device tests on S3
...
Partially reverts 1302fd70ba
2024-04-17 11:43:10 +02:00
Tomas Rezucha
e9daf4912b
fix(usb/host): Do not allow unaligned cache access for M2C direction
2024-03-26 16:41:12 +01:00
Tomas Rezucha
ba1ce22b6c
Merge branch 'fix/usb_uvc_example_p4' into 'master'
...
USB Host UVC example fixes for P4
Closes IEC-94, IDF-4942, and IDF-6505
See merge request espressif/esp-idf!29560
2024-03-21 17:47:51 +08:00
Tomas Rezucha
4f900edb06
Merge branch 'feat/esp_hid_clean_interface' into 'master'
...
refactor(esp_hid): Create one common event loop
See merge request espressif/esp-idf!29449
2024-03-14 21:31:49 +08:00
Tomas Rezucha
868d375c1d
refactor(esp_hid): Create one common event loop
...
After this change, only one event loop is created.
It is reused by all transport layers (BT, BLE, USB).
2024-03-14 11:34:13 +01:00
Tomas Rezucha
348d4ef18d
fix(usb/examples): Fix UVC example crash on non-UVC device connection
2024-03-12 20:19:12 +01:00
Tomas Rezucha
fa2986fdef
Merge branch 'feat/usb_host_sync_types' into 'master'
...
Add synchronization types from USB specs table 9-13
See merge request espressif/esp-idf!29263
2024-03-12 14:48:16 +08:00
Tomas Rezucha
c5dd4a827c
Merge branch 'fix/bbpll_usb_link_error' into 'master'
...
fix(esp_phy): Allow "Enable USB when phy init" option only on supported targets
Closes IDFGH-10996 and IDFGH-11554
See merge request espressif/esp-idf!27364
2024-03-07 19:43:01 +08:00
Tomas Rezucha
65515487a9
Merge branch 'revert-f68c131e' into 'master'
...
Revert "Merge branch 'ci/disable_p4_cdc_acm_host' into 'master'"
Closes IDFCI-2042
See merge request espressif/esp-idf!29418
2024-03-05 21:26:25 +08:00
Tomas Rezucha
832a706eb5
revert(usb_host): Revert temporary disable cdc_acm_vcp test for P4
...
This reverts commit b1bbca60ee
2024-03-05 10:04:10 +01:00
Tomas Rezucha
ea086840a4
fix(esp_phy): Allow WiFi/USB interference workaround option only on supported targets
...
"Enable USB when phy init" Kconfig option would call esp_phy function
`phy_bbpll_en_usb()` that is not implemented for all targets.
Selecting this option for unsupported target results in linking error.
The necessity of this workaround is now defined soc_caps.h rather than
in the Kconfig.
Closes https://github.com/espressif/esp-idf/issues/12185
2024-03-04 16:35:51 +01:00
Tomas Rezucha
33425140bf
Merge branch 'feature/usb_hs_periodic_scheduler' into 'master'
...
feat(usb/host): Update ISOC scheduler for HS endpoints
Closes IDF-7473
See merge request espressif/esp-idf!27804
2024-03-04 16:45:26 +08:00
Tomas Rezucha
93fc17575f
Merge branch 'refactor/esp_hid_astyle' into 'master'
...
refactor(esp_hid): Format the code with astyle
See merge request espressif/esp-idf!29302
2024-03-04 15:41:10 +08:00
Tomas Rezucha
72f00d7c6d
feat(usb/host): Update ISOC scheduler for HS endpoints
...
USB-OTG uses 'sched_info' field of HCTSIZ register to schedule transactions
in USB microframes.
2024-03-01 18:05:40 +01:00
Tomas Rezucha
6529f7e3ec
Merge branch 'ci/usb_host_add_p4_examples_ci' into 'master'
...
ci(USB): add ESP32-P4 runners to existing USB CI
Closes IDF-9127
See merge request espressif/esp-idf!28795
2024-02-29 18:43:16 +08:00
Tomas Rezucha
7f22c235db
refactor(esp_hid): Format the code with astyle
2024-02-27 14:48:43 +01:00
Tomas Rezucha
5863a27bd2
feat(usb/host): Add missing sync types from USB specification
2024-02-26 10:50:20 +01:00
Tomas Rezucha
c24dcd02c1
Merge branch 'feature/esp_hid_usb_preparation' into 'master'
...
refactor(esp_hid): Prepare for USB transport layer
See merge request espressif/esp-idf!28472
2024-02-12 16:29:12 +08:00
Tomas Rezucha
6f30198ca3
feat(esp_hid): Add Connection Request event
...
This event is useful for situations where the HID device
requests connection. Typically in USB transport.
2024-02-07 15:34:55 +08:00
Tomas Rezucha
f7bff8b1fc
refactor(esp_hid): Create new esp_hid_addr_t type
2024-02-07 15:34:55 +08:00
Tomas Rezucha
56a159a7d5
refactor(esp_hid): Move header files to esp_private directory
...
esp_hidd_private.h and esp_hidh_private.h are required by components
that extend esp_hid with a new transport layer, such as USB
2024-02-07 15:34:55 +08:00
Tomas Rezucha
81031490dc
Merge branch 'fix/usb_example_newlib_nano' into 'master'
...
fix(usb/example): Fixed MSC compilation with Newlib Nano format
Closes IEC-60
See merge request espressif/esp-idf!28702
2024-02-06 17:42:11 +08:00
Tomas Rezucha
49f3dae095
Merge branch 'ci/add_p4_usb_host_to_ci' into 'master'
...
feature(usb): Add USB support for ESP32-P4
Closes IDF-6873
See merge request espressif/esp-idf!28585
2024-01-31 22:04:23 +08:00
Tomas Rezucha
f13ae0fc08
feat(esp32p4): Add USB-OTG support for ESP32-P4
2024-01-30 15:07:11 +01:00
Tomas Rezucha
e511905fd2
fix(usb/example): Fixed MSC compilation with Newlib Nano format
...
https://github.com/espressif/idf-extra-components/issues/254
2024-01-25 09:51:51 +01:00
Tomas Rezucha
cb21994358
Merge branch 'fix/common_examples_cmake' into 'master'
...
fix(examples): Make esp_eth public dependency of protocol_examples_comon
See merge request espressif/esp-idf!28618
2024-01-23 23:55:30 +08:00
Tomas Rezucha
525bdf26f8
Merge branch 'feature/p4_usb_hal' into 'master'
...
feature(usb/host): Add HS PHY configuration
See merge request espressif/esp-idf!28549
2024-01-23 17:55:23 +08:00
Tomas Rezucha
21df64f4a9
fix(examples): Make esp_eth public dependency of protocol_examples_comon
2024-01-22 21:51:37 +08:00
Tomas Rezucha
ed1f20a972
feat(hal/usb): Add HS PHY configuration
2024-01-22 12:14:11 +01:00
Tomas Rezucha
8c1f5e6015
Merge branch 'fix/check_precommit_on_win' into 'master'
...
fix(pre-commit): Fixed README.md encoding on Windows
See merge request espressif/esp-idf!28587
2024-01-22 17:04:28 +08:00
Tomas Rezucha
c6204343a8
fix(pre-commit): Fixed README.md encoding on Windows
...
Windows will open the file using 'cp1252' encoding,
which may result in 'UnicodeDecodeError' for unsupported symbols.
2024-01-19 16:08:34 +01:00
Tomas Rezucha
2ab552a241
Merge branch 'refactor/usb_dependencies' into 'master'
...
refactor(usb/examples): Depend on new esp_driver_gpio
See merge request espressif/esp-idf!28552
2024-01-19 17:24:13 +08:00
Tomas Rezucha
a5e647cf7f
refactor(usb/examples): Depend on new esp_driver_gpio
...
This will exclude unneeded drivers from the build.
2024-01-18 07:28:06 +01:00
Tomas Rezucha
763d07fd0e
Merge branch 'fix/usb_fifo_sizes' into 'master'
...
feat(usb/host): Calculate FIFO sizes based on USB configuration
Closes IDF-7384
See merge request espressif/esp-idf!28316
2024-01-16 01:36:32 +08:00
Tomas Rezucha
488477e0aa
feat(usb/host): Calculate FIFO sizes based on USB configuration
2024-01-15 17:25:59 +01:00
Tomas Rezucha
6f053704dc
Merge branch 'feature/usb_device_examples_p4_prep' into 'master'
...
USB Device examples: prerequisite and refactoring for esp32p4
See merge request espressif/esp-idf!28339
2024-01-13 02:21:45 +08:00
Tomas Rezucha
260a2c7562
Merge branch 'fix/usb_cache_sync' into 'master'
...
fix(usb/host): Sync cache for memory shared by CPU and USB-OTG
Closes IDF-9012
See merge request espressif/esp-idf!28255
2024-01-11 00:15:23 +08:00
Tomas Rezucha
ec004c788b
fix(usb/host): Sync cache for memory shared by CPU and USB-OTG
...
Transfer descriptor list, frame list and transfer data buffers
are accessed by both CPU and USB-OTG. Sync CPU cache between the accesses.
2024-01-10 15:23:24 +01:00
Tomas Rezucha
f8080b2457
Merge branch 'fix/usb_binterval_parsing' into 'master'
...
fix(usb/host): Correctly parse wMaxPacketSize and bInterval fields in HighSpeed EP descriptors
See merge request espressif/esp-idf!27395
2023-12-13 17:28:45 +08:00
Tomas Rezucha
e32b7b060c
fix(usb/host): Correctly parse bInterval field in HighSpeed EP descriptors
...
For LS and FS interrupt endpoint: interval = bInterval
For isochronous and HS interrupt endpoint: interval = 2^(bInterval-1)
2023-12-12 21:10:43 +01:00
Tomas Rezucha
c2660ce7c6
fix(usb/host): Correctly parse MPS fields in HighSpeed EP descriptors
...
Bits [11,12] in HighSpeed periodic endpoints specify
the number of additional transaction opportunities per microframe
2023-12-12 21:10:37 +01:00
Tomas Rezucha
d34b8c81a8
Merge branch 'feature/usb_hs_support' into 'master'
...
feat(usb/host): Add High Speed enumeration types
See merge request espressif/esp-idf!27348
2023-12-03 21:58:54 +08:00
Tomas Rezucha
39d57f1cfd
refactor(usb/host): Move FIFO size configuration to HAL layer
...
The logic of calculating FIFO sizes is DWC OTG specific.
We move it to the HAL layer to provide better abstraction in the HDC layer.
2023-11-30 12:04:30 +08:00
Tomas Rezucha
b258bbf068
refactor(usb/host): Make private hal types USB_DWC specific
2023-11-30 10:24:53 +08:00
Tomas Rezucha
69d9e7625b
feat(usb/host): Add High Speed enumeration types
2023-11-30 10:17:00 +08:00
Tomas Rezucha
d315b97948
Merge branch 'fix/usb_uvc_example' into 'master'
...
fix(usb/uvc): Add negotiation retry for some cameras
Closes IDF-8085
See merge request espressif/esp-idf!27309
2023-11-29 15:38:53 +08:00
Tomas Rezucha
62091b4fa0
fix(usb/uvc): Add negotiation retry for some cameras
...
Some cameras would refuse first stream format and would only accept
on second retry.
2023-11-29 11:34:47 +08:00
Tomas Rezucha
d015becbad
Merge branch 'fix/usb_msc_test' into 'master'
...
fix(usb/test): Update MSC device test for new console
Closes IDFCI-1873
See merge request espressif/esp-idf!27358
2023-11-24 09:54:29 +08:00
Tomas Rezucha
e51a0cf2b4
fix(usb/test): Update MSC device test for new console
2023-11-23 08:50:45 +01:00
Tomas Rezucha
9b233aca2b
Merge branch 'fix/usb_short_desc' into 'master'
...
fix(usb/host): Do not abort on string descriptor overflow
See merge request espressif/esp-idf!27127
2023-11-21 10:22:03 +08:00
Tomas Rezucha
f48f433d5b
fix(usb/host): Do not abort on string descriptor overflow
...
Some devices return full LANGID table, even if short LANGID table was requested.
No memory overflow occurs, because we have allocated enough memory for transfers to the
default pipe. So we can ignore the error and continue with string desc fetching.
2023-11-20 09:12:54 +01:00
Tomas Rezucha
717aa73886
Merge branch 'feature/usb_msc_updates' into 'master'
...
refactor(usb_host/msc_example): Increase transfer speeds
See merge request espressif/esp-idf!26319
2023-10-24 22:51:00 +08:00
Tomas Rezucha
e6fde2e13e
refactor(usb/host_msc_example): Increase transfer speeds
...
- Upgrade to MSC driver 1.1.1 for zero copy transfers
- Use setvbuf() to increase size of VFS file buffer
- Add example test
2023-10-24 15:19:58 +02:00
Tomas Rezucha
6e92fc0416
feature(examples/usb): Define maximum opend files in MSC device example
2023-10-24 15:19:58 +02:00
Tomas Rezucha
31f11848d2
Merge branch 'feature/usb_examples_trim_build' into 'master'
...
change(usb/examples): Trim the builds of USB examples
See merge request espressif/esp-idf!26320
2023-10-10 23:33:11 +08:00
Tomas Rezucha
b4c387f9f3
change(usb/examples): Trim the USB example builds
...
Include minimal set of components: main and everything it depends on
2023-10-10 10:28:47 +02:00
Tomas Rezucha
f4dfc8ffb8
Merge branch 'feature/usbd_msc_mount_callback' into 'master'
...
USBD: update example of usb device msc by adding usage of new API.
Closes IDF-7369
See merge request espressif/esp-idf!23761
2023-05-23 22:59:41 +08:00
Tomas Rezucha
197c888611
Merge branch 'fix/usb/host/pytests' into 'master'
...
usb_host: Use up-to-date syntax in pytest
See merge request espressif/esp-idf!23280
2023-04-20 16:45:09 +08:00
Tomas Rezucha
f2f6278ba6
usb_host: Use up-to-date syntax in pytest
2023-04-19 11:06:25 +02:00
Tomas Rezucha
9f2012156c
Merge branch 'feature/usb/update_cdc_examples' into 'master'
...
usb: Update host CDC examples
See merge request espressif/esp-idf!22825
2023-04-04 21:24:44 +08:00
Tomas Rezucha
2c6d0bae90
usb: Update host CDC examples
2023-04-04 07:47:55 +00:00
Tomas Rezucha
f3de7e574d
Merge branch 'bugfix/usb_reg_header_definition_upd' into 'master'
...
USB: usb_reg.h update missing register bitfield description
See merge request espressif/esp-idf!22766
2023-03-22 17:43:43 +08:00
Tomas Rezucha
2b5caf34b7
tinyusb: Do not access string descriptor array out of boundaries
...
The previous version of esp_tinyusb (v1.0.0) always assumed 8 string descriptors.
In case the user passed a smaller array of descriptors,
esp_tinyusb accessed memory outside of the array.
This is fixed esp_tinyusb v1.1.0 by https://github.com/espressif/idf-extra-components/commit/046cc4b02f524d5c7e3e56480a473cfe844dc3d6
2023-02-23 11:16:37 +01:00
Tomas Rezucha
bc314e1f8b
Merge branch 'bugfix/usb_host/interface_parsing' into 'master'
...
usb_host: Fix interface descriptor parsing
See merge request espressif/esp-idf!22323
2023-02-13 15:17:54 +08:00
Tomas Rezucha
31ff3bc0c2
usb_host: Fix interface descriptor parsing
...
Previously the USB host driver did not accept interface number greater or equal bNumInterfaces, even though these are valid interface numbers
2023-02-10 15:49:11 +01:00
Tomas Rezucha
23fd449450
Merge branch 'feature/usb/update_tusb' into 'master'
...
usb: Update TinyUSB version
See merge request espressif/esp-idf!21591
2023-01-08 19:42:48 +08:00
Tomas Rezucha
f3a63014f8
usb: Update TinyUSB version
2022-12-19 18:55:00 +01:00
Tomas Rezucha
fb4b18db2f
Merge branch 'feature/usb_host/cdc_ch340' into 'master'
...
USB Host: Expand VCP example
Closes IDFGH-7370 and IDFGH-8156
See merge request espressif/esp-idf!18940
2022-12-08 15:14:51 +08:00
Tomas Rezucha
abdf7430e0
usb_host: Extend VCP example with more devices
...
Closes https://github.com/espressif/esp-idf/issues/9652
Closes https://github.com/espressif/esp-idf/issues/8951
2022-12-07 11:33:48 +00:00
Tomas Rezucha
c64c6f3711
Merge branch 'feature/bsp_in_example' into 'master'
...
i2s: Add BSP support for es8311 example
Closes BSP-165
See merge request espressif/esp-idf!21279
2022-12-05 18:49:14 +08:00
Tomas Rezucha
9d79efc3b7
i2s: Add BSP support for es8311 example
...
Users can now pick a BSP for development boards that have ES8311 codec populated.
2022-12-05 08:42:16 +01:00
Tomas Rezucha
7ae5705977
Merge branch 'feature/usb_v5_update' into 'master'
...
usb: Run usb_host tests in CI
See merge request espressif/esp-idf!19468
2022-12-01 15:29:01 +08:00
Tomas Rezucha
a0ab65675a
Merge branch 'fix/usb/error_handling' into 'master'
...
USB Host: Invalid pointer hotfix
See merge request espressif/esp-idf!21325
2022-12-01 03:40:49 +08:00
Tomas Rezucha
0a7686d7d6
codeowners: Add USB codeowners to docs/usb
2022-11-30 18:48:31 +00:00
Tomas Rezucha
a0dacf826f
usb: Don't access uninit pointer if usbh_install fails
2022-11-30 18:48:31 +00:00
Tomas Rezucha
645592e157
usb: Refactor USB Host tests
...
* USB tests migrated to pytest
* Error messages improved
* Configurable for different mock devices
2022-11-30 18:12:54 +01:00
Tomas Rezucha
d861fdc947
Merge branch 'feature/move_tinyusb_to_pacman' into 'master'
...
tinyusb: Use TinyUSB from component registry
See merge request espressif/esp-idf!20677
2022-11-02 17:42:53 +08:00
Tomas Rezucha
94a00bda0f
tinyusb: Use TinyUSB from component registry
2022-11-02 08:24:43 +01:00
Tomas Rezucha
27078ac34c
usb_host: Fixed incorrect opening devices from multiple clients
...
1. During USBH device open both queues (idle and pending) must be checked.
2. Don't overwrite already allocated endpoints
2022-10-31 13:56:44 +08:00
Tomas Rezucha
446daa9865
Merge branch 'feature/usb/voltage_monitoring' into 'master'
...
tinyusb: Add voltage monitoring feature
Closes IDFGH-6065 and IDF-5229
See merge request espressif/esp-idf!20296
2022-10-18 22:41:24 +08:00
Tomas Rezucha
1410f5a798
tinyusb: Add VBUS voltage monitoring feature
...
VBUS voltage monitoring is mandated by USB specification for self-powered devices.
This implementation maps selected GPIO to bvalid signal of USB-OTG peripheral.
Closes https://github.com/espressif/esp-idf/issues/7747
2022-10-18 09:18:29 +02:00
Tomas Rezucha
dc705312a3
usb: Allow settings of all signals in usb_phy
...
Until now, only usb_phy signals for external PHY were defined.
This is now extended with all OTG signals.
2022-10-18 09:18:29 +02:00
Tomas Rezucha
cf59a8a2bd
Merge branch 'feature/usb_v5_qol' into 'master'
...
usb: USB IDF v5 update
Closes IDF-4690 and IDF-5767
See merge request espressif/esp-idf!19875
2022-09-08 19:50:22 +08:00
Tomas Rezucha
fac9579d95
usb_host: Use MSC driver from component registry
2022-09-05 20:14:57 +02:00
Tomas Rezucha
d95ba21328
usb_host: Use CDC driver from component registry
2022-09-05 20:14:56 +02:00
Tomas Rezucha
c6fbefcd84
usb_host: Remove custom test_app
2022-09-05 20:14:56 +02:00
Tomas Rezucha
dfdb814644
usb: Remove -Wno-format compile option
2022-09-05 20:14:56 +02:00
Tomas Rezucha
ba8ab09d55
usb: Bring USB Host API out of beta
2022-09-05 20:14:56 +02:00