Darian Leung
99ec1c98f5
refactor(usb/usbh): Update USBH device creation and enumeration handling
...
This commit updates how the USBH handles device creation and enumeration so that
upper layers (such as the Hub driver) can use the USBH API for enumeration instead
of calling the HCD.
USBH Updates:
USBH now creates unenumerated devices set to address 0 with no device/config
descriptor. A newly created device can be opened and communicated with immediately
(using control transfers). This allows the Hub driver to call the USBH instead of
the HCD. Summary of USBH changes:
- Added new APIs to add/remove a device. Devices are now created as unenumerated
and can be immediately opened and communicated with.
- Added new APIs to enumerate a device (see 'usbh_dev_set_...()' functions). Device
must be locked (see 'usbh_dev_enum_lock()') before enumeration functions can be called.
- Added UID for each device. This allows the particular USBH without needing to
use the device's handle (which implies opening the device).
Hub Driver Updates:
Hub driver now calls the USBH for enumeration. Summary of USBH changes:
- Replace all 'hcd_pipe_...()' calls with 'usbh_dev_...()' calls
- Refactored port event handling to fit with new USBH API
- Updated to use UID to uniquely identify devices without opening them
USB Host Updates:
- Reroute USBH control transfers to clients and hub driver
2024-04-23 17:18:56 +08:00
Darian Leung
550aaaa8b4
refactor(usb/hub): Update Hub driver port request logic
2024-04-23 16:50:54 +08:00
Darian Leung
c10fe6ca48
refactor(usb/hcd): Allow port resets with allocated pipes
...
This commit updates the HCD API to allow port resets to occur even if pipes
are allocated. The pipes cannot be active and the port reset will simply
restore the pipes (by reinitializing their channel registers) following the
reset.
Changes:
- Allow port resets while channels are allocated
- Remove pipe persistance API 'hcd_pipe_set_persist_reset()'
2024-04-23 16:50:53 +08:00
Darian Leung
b05cf70b77
refactor(usb/usbh): Rename device pool functions and ref_count
...
This commit renames the following APIs and variables in the USBH:
- Rename the prefix of device pool functions from 'usbh_dev_...' to
'usbh_devs_...'.
- Rename 'ref_count' to 'open_count'. This variable tracks the number of times
a device has been opened.
2024-04-23 16:50:53 +08:00
Darian Leung
4569ac7550
refactor(usb/host): Refactor USBH function grouping
...
This commit rearranges the USBH functions into new groupings to provide a
clearer abstraction. This is in preparation for refactoring/removing the Hub
related functions in the USBH API. This commit DOES NOT MAKE ANY BEHAVIORAL
CHANGES to the code.
Functions are now grouped into...
- USBH Processing: Functions dealing with overall USBH processing
- Device Pool: Functions that add/remove/open/close devices from the internal
device pool
- Device: Functions that pertain to setting/getting a particular device
- Endpoints: Functions that pertain to a particular endpoint
- Transfer: Functions that pertain to sending transfers
2024-04-23 16:50:52 +08:00
Darian
9a24782dd2
Merge branch 'contrib/github_pr_13669' into 'master'
...
docs: clarify ESP_RETURN_ON_ERROR result (GitHub PR)
Closes IDFGH-12678
See merge request espressif/esp-idf!30397
2024-04-23 14:30:00 +08:00
Roland Dobai
a1e9c6e5b0
Merge branch 'fix/docker_entrypoint_permissions' into 'master'
...
fix(docker): Fix entrypoint.sh is not executable issue (GitHub PR)
Closes IDFGH-12668 and IDFGH-12681
See merge request espressif/esp-idf!30372
2024-04-23 13:57:07 +08:00
Shu Chen
1e12b1b14a
Merge branch 'feature/support_openthread_ephemeral_key' into 'master'
...
feat(openthread): support openthread ephemeral key
See merge request espressif/esp-idf!30340
2024-04-23 12:32:08 +08:00
Mahavir Jain
ceff56e1f3
Merge branch 'feat/enable_app_update_test_p4' into 'master'
...
feat: Enable app_update test app for ESP32P4
Closes IDF-8068 and IDF-8959
See merge request espressif/esp-idf!30295
2024-04-23 12:14:13 +08:00
Ivan Grokhotkov
73190dd04e
Merge branch 'version/v5.4.0' into 'master'
...
Update version to v5.4-dev
See merge request espressif/esp-idf!30352
2024-04-23 08:00:22 +08:00
Ivan Grokhotkov
0436d49815
change(version): Update version to v5.4-dev
2024-04-22 22:43:44 +02:00
Darian Leung
d2ea044e49
docs(esp_common): Fix formatting issues in error-handling.rst
...
This commit fixes the following formatting issues in error-handling.rst:
- Incorrect indentation (3 spaces to 4 spaces)
- Fixed some italics that were supposed to be inline literals
- Used code-block directive for language highlighting
2024-04-23 02:34:25 +08:00
Jakob Hasse
3ef14f52eb
Merge branch 'ci/check_missing_runner_only_when_needed' into 'master'
...
ci: check missing runners only when needed
See merge request espressif/esp-idf!30103
2024-04-22 23:11:32 +08:00
Richard Allen
4226d13b01
docs: clarify ESP_RETURN_ON_ERROR result
2024-04-22 09:56:58 -05:00
Island
148aa32c64
Merge branch 'feat/optimzie_ble_ctrl_memory' into 'master'
...
ble: support only legacy adv and slave function on esp32c2
Closes BLERP-675
See merge request espressif/esp-idf!30186
2024-04-22 22:50:58 +08:00
Fu Hanxi
ed2d492bde
ci: check missing runners only when needed
2024-04-22 15:38:36 +02:00
Jiang Jiang Jian
7cbbabb17c
Merge branch 'bugfix/correct_action_frame' into 'master'
...
fix(esp_wifi): Correct frame subtype in send_mgmt_frame API
Closes WIFIBUG-520
See merge request espressif/esp-idf!30363
2024-04-22 19:11:37 +08:00
Kapil Gupta
79cea90dc1
fix(esp_wifi): Correct action frame type in send_mgmt_frame API
2024-04-22 16:08:18 +05:30
Roland Dobai
af302c0bee
Merge branch 'feat/add_merged_bin_cmd' into 'master'
...
feat(tools): Add idf.py merge-bin command and cmake target
See merge request espressif/esp-idf!29996
2024-04-22 17:55:36 +08:00
Jiang Jiang Jian
22f88a2b9f
Merge branch 'bugfix/fix_twt_crash_issues' into 'master'
...
fix(wifi): fix itwt crash issues
Closes WIFIBUG-492
See merge request espressif/esp-idf!30360
2024-04-22 17:10:08 +08:00
Mo Fei Fei
c29d7deb1f
Merge branch 'docs/update_cn_trans_ulp_lp_core' into 'master'
...
Docs: update cn trans for ulp-lp-core.rst
Closes DOC-7458
See merge request espressif/esp-idf!30345
2024-04-22 16:44:44 +08:00
Mo Fei Fei
19471852af
Docs: update cn trans for ulp-lp-core.rst
2024-04-22 16:44:44 +08:00
Jiang Jiang Jian
c119fa05f1
Merge branch 'fix/fix_esp32c6_wifi_iperf_example_build_error' into 'master'
...
fix(example): fix wifi iperf example build errors when enabled CONFIG_ESP_WIFI_ENABLE_WIFI_RX_STATS
See merge request espressif/esp-idf!30174
2024-04-22 16:17:47 +08:00
Wang Meng Yang
64bb591ef3
Merge branch 'bugfix/hf_local_param_null' into 'master'
...
fix(bt/bluedroid): allocate memory for control block of HFP Audio Gateway in...
See merge request espressif/esp-idf!30123
2024-04-22 15:25:06 +08:00
Igor Udot
5f9b691017
Merge branch 'ci/revert-pytest-ini' into 'master'
...
ci: revert pytest.ini -s -vv
See merge request espressif/esp-idf!30311
2024-04-22 14:55:23 +08:00
Aditya Patwardhan
d444ff58ec
Merge branch 'contrib/github_pr_13462' into 'master'
...
fix: Allocate HTTP header space for async httpd_req_t objects (GitHub PR)
Closes IDFGH-12445
See merge request espressif/esp-idf!29868
2024-04-22 14:17:21 +08:00
Xiahua Liu
248d25a235
fix(docker): Fix entrypoint.sh is not executable issue
...
Closes https://github.com/espressif/esp-idf/pull/13660
2024-04-22 12:18:13 +07:00
zwl
c31a06d257
ble: update sdkconfig.defaults.esp32c6 file for blufi example
2024-04-22 11:25:04 +08:00
zwl
89b0e94782
ble: update sdkconfig.defaults.esp32c2 file for blufi example
2024-04-22 11:25:04 +08:00
zwl
dcb9780302
ble: optimize bt cmakelists.txt file
2024-04-22 11:25:04 +08:00
zwl
917134f890
ble: support only legacy adv and slave function on esp32c2
2024-04-22 11:25:04 +08:00
Wang Meng Yang
14bf30d5b6
Merge branch 'bugfix/optimize_hidh_connection' into 'master'
...
fix(bt/bluedroid): Fix HID Host connection bugs
Closes BT-3680
See merge request espressif/esp-idf!30160
2024-04-22 09:33:28 +08:00
igor.udot
99a0ce0db0
ci: revert pytest.ini -s -vv
2024-04-19 22:26:29 +08:00
Michael (XIAO Xufeng)
dffa13b930
Merge branch 'docs/compatibility_c3_v0.4' into 'master'
...
docs(compatibility): add information of C3 v0.4
See merge request espressif/esp-idf!30353
2024-04-19 22:21:49 +08:00
Martin Vychodil
f448fbbc12
Merge branch 'fix/make_eventfd_case_exit_normally' into 'master'
...
fix(vfs): make case eventfd_select_block exit normally
See merge request espressif/esp-idf!29926
2024-04-19 21:41:24 +08:00
xuxiao
f650dcdb5e
fix(wifi): fixed itwt crash issues
2024-04-19 20:03:35 +08:00
Shen Meng Jing
ed366b55c2
Merge branch 'docs/translate_configure-builtin-jtag' into 'master'
...
docs: Provide translation for cofigure-builtin-jtag.rst in jtag-debugging
Closes DOC-7523
See merge request espressif/esp-idf!29867
2024-04-19 19:46:31 +08:00
Ivan Grokhotkov
57a80129bc
Merge branch 'ci/sdmmc_tests' into 'master'
...
sdmmc: test-related fixes
Closes IDF-8734
See merge request espressif/esp-idf!30221
2024-04-19 19:22:08 +08:00
Wang Ziyan
288f76960e
Merge branch 'docs/update_cn_for_protocols_jtag-debugging_api-guides' into 'master'
...
docs: Update CN for esp_https_server.rst and tips-and-quirks.rst
Closes DOC-7543
See merge request espressif/esp-idf!30096
2024-04-19 18:53:33 +08:00
shenmengjing
6d81e702d9
docs: Provide translation for cofigure-builtin-jtag.rst in jtag-debugging
2024-04-19 18:53:17 +08:00
Wang Zi Yan
020c6931ee
docs: Update CN for esp_https_server.rst and tips-and-quirks.rst
2024-04-19 17:37:05 +08:00
Guillaume Souchere
1b452481b8
Merge branch 'fix/prompt-erased-by-backspace-in-dumbmode' into 'master'
...
fix(console): bug where backspace erases the prompt in dumb mode
Closes IDFGH-12508
See merge request espressif/esp-idf!30313
2024-04-19 17:30:58 +08:00
Michael (XIAO Xufeng)
d40a670613
docs(compatibility): add information of C3 v0.4
2024-04-19 16:46:32 +08:00
Xu Si Yu
728595313f
feat(openthread): support openthread ephemeral key
2024-04-19 14:49:10 +08:00
Aditya Patwardhan
0c64e48206
Merge branch 'fix/fix_host_based_security_workflow_doc' into 'master'
...
fix(docs): Fix the host based security workflow document
See merge request espressif/esp-idf!29409
2024-04-19 14:38:36 +08:00
Aditya Patwardhan
530fdacd88
fix(docs): Fix DIS_ICACHE related information in host security workflow
2024-04-19 11:29:21 +05:30
Aditya Patwardhan
1366949c8a
feat(docs): Add workflow for externally enabling NVS Encryption
...
Fix documentation for host based workflows for flash encryption and
secure boot v2
2024-04-19 11:29:21 +05:30
Tomas Rohlinek
22d3473f18
Merge branch 'feature/fatfs_use_dynamic_buffer' into 'master'
...
feat(storage/fatfs): Use dynamic buffers for fatfs
Closes IDFGH-9561
See merge request espressif/esp-idf!27501
2024-04-19 13:15:38 +08:00
Kapil Gupta
617130a485
Merge branch 'feat/scan_set_params_api' into 'master'
...
Adds a new API to set default scan parameters
Closes WIFI-6238, WIFI-6344, WIFIBUG-254, and IDFGH-12419
See merge request espressif/esp-idf!27761
2024-04-19 12:03:10 +08:00
Kevin (Lao Kaiyao)
7835ce48f1
Merge branch 'ci/enable_doc_build_for_esp32c5' into 'master'
...
ci(doc): enable doc build for esp32c5
See merge request espressif/esp-idf!30338
2024-04-19 11:50:10 +08:00