Commit Graph

424 Commits

Author SHA1 Message Date
Tomas Rezucha
161eaeed25 usb_host: Don't build CDC host driver for unsupported targets 2022-03-18 14:49:58 +01:00
Martin Valik
d2a2a315ba Bugfix: omit MSC reset during initialization 2022-02-18 15:51:05 +08:00
Darian Leung
6f6986277c usb: Add USB Host Library Example
The commit adds a basic example for the USB Host Library
2022-02-18 15:51:05 +08:00
Darian Leung
ebd058c8c9 usb: Update USB Host Library
This commit updates the USB Host Library as follows:

- usb_helpers.h
    - Removed dependency on USB Host Library API
    - Added function to print string descriptors
- usbh
    - Fixed bug where an interface/endpoint could be claimed/allocated multiple times
    - Removed redundant device ref_count change
- Added unit test for USB Host Library API usage
2022-02-18 15:51:05 +08:00
Darian Leung
ea6de613bf usb: Hub Driver Update and Refactor
Hub Driver is refactored as follows:

This commit update and refactors the Hub Driver as follows:

- Refactored enumeration state machine and stage functions
    - Enumeration stage is now incremented
    - Combined transfer stages of enumeration into common functions
- Comments updated
- Fixed usbh_hal_disable_debounce_lock() that would cause root_port_handle_events()
    to fail the HCD_PORT_CMD_RESET call because the previous port connection interrupt
    was not cleared.

The following features were added to the Hub Driver

- Enumeration config descriptor is now fetched in two separate stages
    - Header is fetched first to determine the wTotalLength of the descriptor
    - Fetching the full descriptor will request exactly wTotalLength bytes
    - This works around some non-compliant devices that will babble/return zero
        when requesting a length > wTotalLength
    - Closes https://github.com/espressif/esp-idf/issues/7799
- Enumeration now stores string descriptors
    - The Manufacturer, Product, and Serial Number string descriptors are
        now read and stored during enumeration
    - String descriptors are now part of usb_device_info_t
- Added unit test to test enumeration
2022-02-18 15:51:05 +08:00
Darian Leung
7f09fe1b23 usb: USB Host stack uses USB PHY driver
This commit updates the USB Host stack to use the USB PHY driver. The
USB PHY and the OTG Controller should now both be setup/deleted using
usb_new_phy() and usb_del_phy() respectively.

- The hcd_install() now expects the USB PHY and OTG Contorller to be
    already setup before it is called
- usb_host_install() now has an option to skip calling usb_del_phy() if
    the user wants to setup their own USB PHY (e.g., in the case of using
    and external PHY).
- CDC-ACM and MSC examples/test updated to use internal PHY

Closes https://github.com/espressif/esp-idf/issues/8061
2022-02-18 15:51:05 +08:00
Martin Valik
204aa05d0b USB: added MSC Host Driver with VFS support
Closes https://github.com/espressif/esp-idf/issues/6401
2021-12-23 18:30:24 +01:00
Michael (XIAO Xufeng)
ec554944b7 Merge branch 'feature/backport/usb_host/cdc_driver' into 'release/v4.4'
USB: Add CDC-ACM subclass host driver (backport v4.4)

See merge request espressif/esp-idf!16363
2021-12-23 17:02:33 +00:00
Armando
1ec46ad3b8 adc: support adc dma driver on all chips 2021-12-23 17:13:46 +08:00
Armando
39ed1b2862 spi_slave_hd: fix stack variable bug in seg_slave example
Closes https://github.com/espressif/esp-idf/issues/7163
2021-12-14 12:36:40 +08:00
Tomas Rezucha
e04eae6659 usb: Add USB host CDC-ACM class driver 2021-12-10 10:04:16 +01:00
morris
7ae887dead rmt: update ir example to work with esp32s3 out of box 2021-12-06 10:02:55 +08:00
Arnaud-Oechslin
7195af2d7d i2s: add mck pin definition in the example
If the mck pin is not set to GPIO 0,1,3 or -1 the whole pin configuration fails. This fix corrects that.

Merges https://github.com/espressif/esp-idf/pull/7661
2021-11-08 17:33:18 +08:00
Kevin (Lao Kaiyao)
dc20768913 Merge branch 'feature/add_i2s_es8311_example_and_loop_unit_test' into 'master'
example/i2s: add es8311 example and i2s unit-test

Closes IDF-3412

See merge request espressif/esp-idf!14459
2021-10-14 09:28:35 +00:00
Kevin (Lao Kaiyao)
a9faafee3c Merge branch 'feature/touch_sensor_driver_support_for_esp32s3' into 'master'
driver(touch): support touch sensor for esp32s3 platform

Closes IDF-1784 and IDF-3302

See merge request espressif/esp-idf!14102
2021-10-12 05:50:58 +00:00
laokaiyao
3eb09287f9 example/i2s: add es8311 example and i2s loop unit-test 2021-10-11 18:32:34 +08:00
Mahavir Jain
4307ea9a58 Merge branch 'feature/update_esp_cryptoauthlib_submodule' into 'master'
examples/secure_element: update esp-cryptoauthlib submodule pointer

See merge request espressif/esp-idf!15436
2021-10-11 07:10:13 +00:00
Jakob Hasse
f86e154a56 Merge branch 'feature/removed_hyphens_from_examples' into 'master'
[examples]: Project names consistent with their directories

Closes IDFGH-3673

See merge request espressif/esp-idf!13570
2021-10-11 03:43:37 +00:00
morris
7283e349b9 Merge branch 'refactor/rgb_lcd_callback_add_event_data' into 'master'
lcd: modify callback prototype && build API docs

See merge request espressif/esp-idf!15354
2021-10-09 06:26:44 +00:00
Jakob Hasse
81e9266204 [examples]: removed hyphens
Replaced hyphens with underscores in examples
project definition for all examples which had
hyphens in their project name. dpp-enrollee is
an exceptions because the name matches the
project directory name while the project
directory also contains hyphens.
2021-10-09 13:58:24 +08:00
laokaiyao
f4705f8eb4 touch sensor: update copyright notice 2021-10-08 11:45:57 +08:00
laokaiyao
a1cadba191 touch_sensor: apply general check 2021-10-08 11:32:12 +08:00
fuzhibo
589646a31e update touch with review advice 2021-10-08 10:39:46 +08:00
fuzhibo
3ca9da0386 update touch sensor examples 2021-10-08 10:39:46 +08:00
fuzhibo
057b9d61b5 driver(touch): support touch sensor for esp32s3 platform 2021-10-08 10:39:46 +08:00
Mahavir Jain
5879a92eec examples/secure_element: update esp-cryptoauthlib submodule pointer 2021-10-07 13:30:39 +05:30
pedro.minatel
5144458905 Fix on the readme file for the supported devices 2021-10-04 10:44:49 +01:00
morris
e09e39c94f lcd: unify callback prototype 2021-10-02 14:23:31 +08:00
laokaiyao
7264c0e59a i2s_rec_example: add support for esp32s3 2021-10-01 16:05:04 +01:00
laokaiyao
1327a56369 i2s: fix the param check on PDM mode
Closes https://github.com/espressif/esp-idf/issues/7604
2021-10-01 16:05:04 +01:00
pedro.minatel
a21225d86d Rebase and removed the sample rate division by 2 2021-10-01 16:05:04 +01:00
pedro.minatel
389db51f25 Changes on the recording function 2021-10-01 16:05:04 +01:00
pedro.minatel
4bd057013d Added driver unistall function for I2S 2021-10-01 16:05:04 +01:00
pedro.minatel
e736c20cc9 Removed unused define and added mck pin definition to i2s_pin_config
Changes on the pin configuration

Fixed the pin setup and minor improvements
2021-10-01 16:05:04 +01:00
SalimTerryLi
075b091696
RMT: new example step motor, targeting at esp32s3
also working on c3 and s2 but may not reliable under loads
2021-09-24 15:41:40 +08:00
morris
ce969ad7fe Merge branch 'feature/lcd_lvgl_example' into 'master'
lcd: lvgl porting example

See merge request espressif/esp-idf!15042
2021-09-18 09:52:28 +00:00
Fu Hanxi
04b36c1c2c Merge branch 'ci/enable_s3_example_build' into 'master'
ci: enable esp32s3 example build

See merge request espressif/esp-idf!15213
2021-09-17 02:30:31 +00:00
Armando
ddd0235783 adc: support adc self-calibration on esp32s3 2021-09-16 15:17:29 +08:00
Fu Hanxi
923e862ed2 ci: temporarily disable s3 build for a few examples 2021-09-16 12:20:11 +08:00
Armando
5d54a34a9b adc: add an example of using ADC Single Read driver and ADC Calibration driver 2021-09-14 11:42:50 +08:00
Yu Zhe
64045ea9f4 lcd: add lvgl demo ui 2021-09-13 15:08:48 +08:00
morris
9240fb03d8 lcd: lvgl porting example 2021-09-13 15:08:48 +08:00
morris
691780ffa6 Merge branch 'feature/mcpwm_timer_sync' into 'master'
mcpwm: add driver option to sync with internal signals

Closes IDFGH-3469

See merge request espressif/esp-idf!9259
2021-09-09 19:05:10 +00:00
SalimTerryLi
932d4d13f0
MCPWM/sync: expose API for configuring timer sync
removed example: mcpwm_basic_config

Closes https://github.com/espressif/esp-idf/issues/5429

Co-authored-by: wubowen <wubowen@espressif.com>
2021-09-09 17:33:37 +08:00
SalimTerryLi
e3ac4d806e
example/spi_master: bring back lcd example and clean up
partially revert ac069bfca1
2021-09-09 10:51:12 +08:00
Michael (XIAO Xufeng)
db33e957b8 Merge branch 'bugfix/gpio_example_config_struct_zero_init' into 'master'
example: fixed the issue that config struct is not properly initialized

See merge request espressif/esp-idf!15007
2021-09-02 12:59:55 +00:00
SalimTerryLi
23e23b697c
rom/tjpgd: unify library & add rom patch
remove external tjpgd library inside example

enable tjpgd decoding on all chips
2021-09-01 14:42:17 +08:00
Michael (XIAO Xufeng)
b910724ea9 example: fixed the issue that config struct is not properly initialized 2021-08-30 22:59:36 +08:00
Michael (XIAO Xufeng)
375145ecdb Merge branch 'feature/mcpwm_bldc_hall_example' into 'master'
mcpwm: bldc hall example

Closes IDF-3648

See merge request espressif/esp-idf!14578
2021-08-26 08:28:27 +00:00
SalimTerryLi
6c272d6515
bugfix: hc-sr04 example: init queue before setup ISR
Closes https://github.com/espressif/esp-idf/issues/7419
2021-08-25 16:35:08 +08:00