Commit Graph

21029 Commits

Author SHA1 Message Date
Darian Leung
854127a57c 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-01-06 15:09:39 +08:00
Darian Leung
5a2ef15565 usb: HCD multiple fixes
This commit fixes the following bugs in the HCD

- HCD control pipes fill incorrect transfer size

_buffer_fill_ctrl() would fill the transfer descriptors length with
wLength instead of transfer->num_bytes. Therefore, the remaining length
would be incorrect when a control transfer requests more bytes than are
available.

- Fix USB_TRANSFER_FLAG_ZERO_PACK behavior

The previous behavior of USB_TRANSFER_FLAG_ZERO_PACK was incorrect, and did not
support interrupt pipes. A zero length packet can now be added to Bulk/Interrupt
OUT transfers where the length is a multiple of the endpoint's MPS.

- Fixed HCD port suspend and resume test case

Halting a control pipe mid control transfer can lead some test devices to get stuck
2022-01-06 15:07:56 +08:00
Darian Leung
bb29b199ad usb: Tidy up usbh
- Remove enum_todo_flags from usbh
- USBH move config_desc to constant fields
2022-01-06 15:06:44 +08:00
Ondrej Kosta
fa9cc49b9e Merge branch 'bugfix/esp_eth_start_tx_buff' into 'master'
Fixed ESP32 EMAC driver `insufficient TX buffer size`

Closes WIFI-4194

See merge request espressif/esp-idf!16457
2022-01-05 09:40:12 +00:00
Jiang Jiang Jian
477cf09f45 Merge branch 'bugfix/ci_check_blobs' into 'master'
ci: improve checks for Wi-Fi/PHY libraries

See merge request espressif/esp-idf!16625
2022-01-05 09:26:42 +00:00
Mo Fei Fei
097785d6c8 Merge branch 'docs/add_application_example_esp_now' into 'master'
docs: add application example for esp-now

Closes DOC-2452

See merge request espressif/esp-idf!16643
2022-01-05 09:19:14 +00:00
intern
b0a2dda075 docs: add application example for esp-now 2022-01-05 16:17:28 +08:00
Guo Jia Cheng
fa8364a544 Merge branch 'bugfix/openthread-socket-multicast' into 'master'
openthread: sync lwip multicast groups to Thread stack

See merge request espressif/esp-idf!16490
2022-01-05 07:04:30 +00:00
Mahavir Jain
6e1f534cab Merge branch 'feature/esp_tls_api_cleanup' into 'master'
esp-tls: mark esp_tls_conn_delete API as deprecated

See merge request espressif/esp-idf!16647
2022-01-05 07:04:09 +00:00
morris
ce2a220098 Merge branch 'refactor/make_adc2_wifi_private' into 'master'
clean up deprecated and private header files for driver and esp_hw_support component

See merge request espressif/esp-idf!16605
2022-01-05 05:42:42 +00:00
morris
313e36b49e Merge branch 'feature/migration_guide_owners' into 'master'
CI: update migration guide codeowners

See merge request espressif/esp-idf!16651
2022-01-05 05:07:14 +00:00
Xue Yun Fei
ea73daa613 Merge branch 'bugfix/update_esp32s3_docs' into 'master'
Doc:Bugfix/update esp32s3 docs

See merge request espressif/esp-idf!15390
2022-01-05 03:30:56 +00:00
Li Kun Qiao
b05b70c7f3 Merge branch 'feature/Add_zigbee_rcp_gateway' into 'master'
Zigbee example: rcp and gateway

See merge request espressif/esp-idf!16205
2022-01-05 03:28:03 +00:00
Marius Vikhammer
dd341318d0 CI: update docs codeowners 2022-01-05 10:46:07 +08:00
morris
ef5cfb217c Merge branch 'contrib/github_pr_8172' into 'master'
Fix compile issue when TinyUSB task is not enabled. (GitHub PR)

Closes IDFGH-6521

See merge request espressif/esp-idf!16611
2022-01-04 13:21:23 +00:00
Jiacheng Guo
d610282742 openthread: sync lwip multicast groups to Thread stack
This MR synchornizes the lwIP multicast groups to the Thread stack. This
will fix sockets failing to receive messages sent to multicast groups
issue.
2022-01-04 20:08:15 +08:00
Jiang Jiang Jian
69757842aa Merge branch 'bugfix/ftm_misc_issues' into 'master'
Miscellaneous FTM bugfixes

Closes WIFI-4126

See merge request espressif/esp-idf!16525
2022-01-04 10:39:42 +00:00
Mahavir Jain
201e0b39a7 esp-tls: remove redundant snippet from CMakeList 2022-01-04 15:41:06 +05:30
Mahavir Jain
c26500cd5a esp-tls: mark esp_tls_conn_delete API as deprecated
It is recommended to use `esp_tls_conn_destroy` API instead
2022-01-04 15:40:07 +05:30
xueyunfei
ec993af322 update s3 doc 2022-01-04 17:50:37 +08:00
likunqiao
8c577cd208 Zigbee example: add rcp and gateway
* provide Zigbee rcp and Zigbee gateway example
 * minor comment fix for light example
2022-01-04 17:46:09 +08:00
Ivan Grokhotkov
637716b310 Merge branch 'feat/code_owner_bootloader_flash' into 'master'
code_owners: add peripherals to the owner of bootloader_flash

See merge request espressif/esp-idf!16628
2022-01-04 09:39:29 +00:00
Marius Vikhammer
95c34696c4 Merge branch 'docs/esp8684_frontpages' into 'master'
docs: update frontpage/general pages for ESP8684

Closes IDF-4212

See merge request espressif/esp-idf!16455
2022-01-04 08:47:42 +00:00
Jack
9802bf41d6 phy: update phy lib to remove ets_printf references 2022-01-04 15:41:58 +08:00
morris
113cbb88a6 hw_support: remove deprecated header files 2022-01-04 14:16:17 +08:00
morris
090b4aa1f3 adc: make adc2_wifi share resource private 2022-01-04 13:59:24 +08:00
Wang Meng Yang
7e39aa61fa Merge branch 'bugfix/fix_null_pointer_deference_issue_master_mr' into 'master'
Fix the null pointer deference issue via Reconnection Spamming

See merge request espressif/esp-idf!16502
2022-01-04 04:06:27 +00:00
Michael (XIAO Xufeng)
9d0bebc773 code_owners: add peripherals to the owner of bootloader_flash 2022-01-04 03:23:31 +00:00
Omar Chebib
a8b40927b5 Merge branch 'bugfix/i2c_spiram_bug' into 'master'
I2C: fix buffer check when SPIRAM used as a heap

Closes IDFGH-6522

See merge request espressif/esp-idf!16612
2022-01-04 02:48:46 +00:00
morris
6e661871c5 tusb: optional compile tusb_task 2022-01-04 10:38:13 +08:00
morris
cba1f57147 tusb: update copyright header 2022-01-04 10:25:06 +08:00
Ivan Grokhotkov
3049ac6dbb ci: improve checks for Wi-Fi/PHYlibraries
- add missing Wi-Fi header MD5 checks for esp32c3, esp32s3
- check PHY libraries for references to ets_printf, in addition to
  checking Wi-Fi libraries. This used to happen until libphy.a was
  moved into a separate submodule.

Reported in https://github.com/espressif/esp-phy-lib/issues/3
2022-01-04 00:30:55 +01:00
Roland Dobai
93cb847424 Merge branch 'contrib/github_pr_8100' into 'master'
monitor: Print buffer when reading an escape character

Closes IDFGH-6443

See merge request espressif/esp-idf!16584
2022-01-03 18:52:14 +00:00
Roland Dobai
c43d14c2bf Merge branch 'contrib/github_pr_8169' into 'master'
fix fatfs_create_spiflash_image() feature

Closes IDFGH-6383

See merge request espressif/esp-idf!16601
2022-01-03 15:19:38 +00:00
David Čermák
b947373da2 Merge branch 'bugfix/ci_public_header_log' into 'master'
CI: Make public header check verbose on *all* failures

See merge request espressif/esp-idf!16493
2022-01-03 09:05:20 +00:00
David Cermak
3ade0509c3 CI: Make public header checker print help/tips on failure
Also prints failing compilation command to the log
2022-01-03 09:34:21 +01:00
David Cermak
41706d8d54 CI: Make public header check verbose on *sll* failures 2022-01-03 09:34:21 +01:00
Zim Kalinowski
7e443351e4 Merge branch 'bugfix/doc_static_Files' into 'master'
docs: fix missing static file path

See merge request espressif/esp-idf!16302
2022-01-03 01:50:25 +00:00
Martin Gaňo
140f5be289 Updated typehints from str values to bytes 2022-01-03 01:02:16 +01:00
Martin Gaňo
f7983fd313 Use bytes instead of strings in tests 2022-01-03 00:47:00 +01:00
Martin Gaňo
931ad14979 Fixed copyright header 2022-01-03 00:09:31 +01:00
Mahavir Jain
733fbd9ecc Merge branch 'docs/update_ws_server_example_readme' into 'master'
docs: Add user-friendly guide about how to use ws_server_example_test.py

Closes IDFGH-6401

See merge request espressif/esp-idf!16421
2022-01-02 11:27:06 +00:00
Yuan Jian Min
0c73f20afd docs: Add user-friendly guide about how to use ws_server_example_test.py
Closes https://github.com/espressif/esp-idf/issues/8060
2022-01-02 11:27:05 +00:00
Ivan Grokhotkov
f1c5dfbfc9 Merge branch 'contrib/github_pr_8013' into 'master'
Add message about alternative functions. (GitHub PR)

Closes IDFGH-6352

See merge request espressif/esp-idf!16610
2021-12-31 07:09:08 +00:00
Omar Chebib
8d1fa78378 i2c: fix buffer check when SPIRAM used as a heap
* Closes https://github.com/espressif/esp-idf/issues/8173
2021-12-31 14:36:16 +08:00
Xie Wen Xiang
6cb6087dd0 Merge branch 'bugfix/fix_bluedroid_compile_issue' into 'master'
components/bt: Fix bluedroid compile issue

Closes IDFGH-6486

See merge request espressif/esp-idf!16589
2021-12-31 02:03:49 +00:00
Venelin Efremov
8e3ad708b2 Fix compile isse when TinyUSB task is not enabled. 2021-12-30 04:49:03 -08:00
Song Ruo Jing
2906fbfb9e Merge branch 'feature/support_esp8684_gpio' into 'master'
ESP8684: Support ESP8684 gpio

Closes IDF-4019 and IDF-3841

See merge request espressif/esp-idf!15667
2021-12-30 09:16:23 +00:00
“YangZhao”
8d48a56249 There is an issue that if the the btm_cb.p_sec_dev_rec_list is full,but at the same
time we can't find old device to be replaced,then this can cause crash. So we need
to change the way to malloc the new device or replace the old in the list.
2021-12-30 15:50:07 +08:00
Simon
15380099e3 Merge branch 'refactor/abstract_flash_rom_code' into 'master'
spi_flash: refactor `spi_flash.h` to decline duplicated code and Infinite growth header

Closes IDF-2703

See merge request espressif/esp-idf!15372
2021-12-30 07:29:57 +00:00