43 Commits

Author SHA1 Message Date
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 1302fd70bad5a9e9006803370d7fb2943f012391
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
Tomas Rezucha
f13ae0fc08 feat(esp32p4): Add USB-OTG support for ESP32-P4 2024-01-30 15:07:11 +01: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
Roman Leonov
da8c926e9d feat(usb/device): Add esp32p4 prerequisites to examples 2024-01-12 13:04:38 +01:00
Fu Hanxi
d44f236f7b
ci(usb): migrate from .gitlab/ci/rules.yml to .build-test-rules.yml 2024-01-10 15:29:44 +01: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
e51a0cf2b4 fix(usb/test): Update MSC device test for new console 2023-11-23 08:50:45 +01: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
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
morris
b12e250b2c refactor(examples): reformat peripheral examples with astyle_py 2023-09-28 10:08:04 +08:00
KonstantinKondrashov
e72061695e all: Removes unnecessary newline character in logs
Closes https://github.com/espressif/esp-idf/issues/11465
2023-06-09 03:31:21 +08:00
zhaokeke
338f0d95c4 usb: Add NCM device example
This example requires import esp_tinyusb library
2023-06-05 14:50:12 +02:00
Saurabh Kumar Bansal
6f7a6b1eea usb: update usb device msc example by adding new API tinyusb_msc_register_callback 2023-05-22 12:00:44 +05:30
Marius Vikhammer
9357f0977c Merge branch 'ci/chip_support_network_invalid_kconfigs' into 'master'
ci: remove redundant ci configs for chip support and network components

See merge request espressif/esp-idf!23430
2023-04-26 17:26:05 +08:00
Marius Vikhammer
bca026455c ci: remove redundent ci configs for chip support and network components
CI would build psram config test apps even for target with no psram.
2023-04-26 09:54:29 +08:00
Saurabh Kumar Bansal
7cc59918bc usbd: add usb composite device example 2023-04-19 14:02:33 +05:30
Saurabh Kumar Bansal
55914d0c12 usb: modify example according to newly implemented usbd msc driver 2023-04-04 17:48:20 +00: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 046cc4b02f
2023-02-23 11:16:37 +01:00
Saurabh Kumar Bansal
ff8b78227a Fix typo in comparison 2023-01-13 20:12:40 +05:30
Saurabh Kumar Bansal
80cad41cc2 USB Dev: Integrate sdcard as a storage media that is accessed by USB-host as a USB Mass Storage Device 2023-01-13 20:12:29 +05:30
Tomas Rezucha
f3a63014f8 usb: Update TinyUSB version 2022-12-19 18:55:00 +01:00
Saurabh Kumar Bansal
fac23b90ae USB: Add MSC example. 2022-12-03 20:32:38 +05:30
Tomas Rezucha
94a00bda0f tinyusb: Use TinyUSB from component registry 2022-11-02 08:24:43 +01:00
Adam Múdry
169d746c49 usb: Refactor USB MIDI example 2022-10-18 15:09:09 +02:00
Tomas Rezucha
d777b790d0 tinyusb: Add TinyUSB example tests 2022-08-10 14:51:18 +02:00
Tomas Rezucha
45e8115dc6 usb: Add HID device example
Closes https://github.com/espressif/esp-idf/issues/6839
Closes https://github.com/espressif/esp-idf/issues/7700
2022-07-27 05:31:09 +00:00
jiangguangming
e0d9220a6e example: peripherals/usb: fix typo naming of local variables 2022-07-20 09:36:24 +08:00
Adam Múdry
2dfaec3106 usb: Added MIDI example + fixed TinyUSB MIDI config
Closes https://github.com/espressif/esp-idf/issues/8541
2022-06-29 14:02:00 +00:00
Tomas Rezucha
5d202aa401 usb: Clean-up TinyUSB unnecessary code 2022-06-09 10:56:39 +02:00
Djordje Nedic
facab8c5a7 tools: Increase the minimal supported CMake version to 3.16
This updates the minimal supported version of CMake to 3.16, which in turn enables us to use more CMake features and have a cleaner build system.
This is the version that provides most new features and also the one we use in our latest docker image for CI.
2022-06-01 06:35:02 +00:00
Tomas Rezucha
6330d5d312 usb: Extend CDC device with second CDC channel
Closes https://github.com/espressif/esp-idf/issues/7020
Closes https://github.com/espressif/esp-idf/pull/8011
2022-01-05 08:18:03 +01:00