Darian Leung
7db459d85f
docs(usb): Add USBH maintainer notes
2024-07-24 15:21:02 +08:00
Darian Leung
a602befe1b
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-07-24 15:21:02 +08:00
Darian Leung
df6c6f93fa
refactor(usb/hub): Update Hub driver port request logic
2024-07-24 15:21:02 +08:00
Darian Leung
3358f3ec46
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-07-24 15:21:02 +08:00
Darian Leung
8aa9a42f2b
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-07-24 15:21:02 +08:00
Darian Leung
c14eae95cd
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-07-24 15:21:02 +08:00
Jiang Jiang Jian
e0991facf5
Merge branch 'bugfix/fix_esp32p4_deepsleep_gpio_wakeup_support_v5.3' into 'release/v5.3'
...
docker / docker (push) Has been cancelled
feat(esp_hw_support): support esp32p4 gpio/ext1 wakeup deepsleep (v5.3)
See merge request espressif/esp-idf!32164
2024-07-17 11:03:25 +08:00
Jiang Jiang Jian
c2cf3d7a0b
Merge branch 'fix/stall_other_core_in_cpu_freq_switching_v5.3' into 'release/v5.3'
...
fix(esp_hw_support): stall another core during cpu/mem/apb freq switching (v5.3)
See merge request espressif/esp-idf!32163
2024-07-17 10:42:44 +08:00
wuzhenghui
51a102a467
feat(example): update gpio/ext1 wakeup avaliable IO num in example Kconfig
2024-07-16 22:00:40 +08:00
wuzhenghui
603ad059a3
fix(esp_hw_support): hold LP_IO mode if LP_PERI domain powerdown in sleep
2024-07-16 22:00:40 +08:00
wuzhenghui
074035aac5
feat(esp_hw_support): support esp32p4 gpio wakeup deepsleep
2024-07-16 21:58:45 +08:00
wuzhenghui
4c2b86f5fe
fix(esp_hw_support): stall another core during cpu/mem/apb freq switching
2024-07-16 21:47:04 +08:00
Jiang Jiang Jian
02e19c4f9a
Merge branch 'bugfix/wrong_ic_parameters_in_connect_v5.3' into 'release/v5.3'
...
fix(wifi): Fix issue of supplicant using wrong parameters to configure bss (Backport v5.3)
See merge request espressif/esp-idf!32068
2024-07-15 19:37:58 +08:00
Jiang Jiang Jian
28c124d210
Merge branch 'fix/fix_stuck_in_bootloader_random_enable_v5.3' into 'release/v5.3'
...
fix(esp_system): fix stuck in bootloader_random_enable after lightsleep (v5.3)
See merge request espressif/esp-idf!32021
2024-07-15 19:37:40 +08:00
Jiang Jiang Jian
5c180bf3b6
Merge branch 'feat/esp32p4eco_sleep_feature_update_v5.3' into 'release/v5.3'
...
feat(esp_hw_support): esp32p4eco1 sleep feature update (v5.3)
See merge request espressif/esp-idf!31682
2024-07-15 19:35:56 +08:00
David Čermák
172784733c
Merge branch 'feat/wifi_remote_examples_v5.3' into 'release/v5.3'
...
fix(esp_wifi_remote): Using remote wifi on standard (protocol) examples (v5.3)
See merge request espressif/esp-idf!31903
2024-07-12 16:06:59 +08:00
muhaidong
8a0a093cd1
fix(wifi): fix esp32 host lack of lmac api issue
2024-07-12 13:59:32 +08:00
Sarvesh Bodakhe
5deaedfab1
fix(wifi): Fix issue of supplicant using wrong parameters to configure bss
...
- Ensure that wpa_supplicant's state machine registers the requirement for rsnxe
before deciding to add rsnxe to a assoc request.
Co-authored-by: jgujarathi <jash.gujarathi@espressif.com>
2024-07-12 10:16:15 +05:30
wuzhenghui
64ace5b6d8
fix(esp_hw_support): fix cpu_retention cache invalidate mask
2024-07-11 22:01:49 +08:00
wuzhenghui
edf14a1de1
fix(esp_hw_support): disable mpll clock after L1 dcache writeback
2024-07-11 13:59:42 +08:00
Michael (XIAO Xufeng)
ed7dd46687
Merge branch 'feat/sdmmc_spi_no_crc_v5.3' into 'release/v5.3'
...
feat(sdmmc_io): support sending CMD53 with fixed address, bypass sdspi crc check (v5.3)
See merge request espressif/esp-idf!31075
2024-07-10 17:15:24 +08:00
wuzhenghui
108123d50c
fix(esp_system): fix stuck in bootloader_random_enable after lightsleep
2024-07-10 14:22:39 +08:00
Aditya Patwardhan
44f58ecb51
Merge branch 'fix/c6_bootloader_rng_enable_v5.3' into 'release/v5.3'
...
docker / docker (push) Has been cancelled
fix(bootloader_support): Fixed pattern in RNG enable function to avoid output on IO0 (v5.3)
See merge request espressif/esp-idf!31905
2024-07-05 16:22:06 +08:00
Michael (XIAO Xufeng)
4e0d5c923d
fix(sdmmc_io): fixed fixed_addr mode will still increase addr when splitting
2024-07-05 14:47:50 +08:00
Aditya Patwardhan
42cf452da3
Merge branch 'fix/disable_ecdsa_key_manager_for_p4_v5.3' into 'release/v5.3'
...
fix(soc): Disable key manager and ECDSA peripheral support for esp32p4 (v5.3)
See merge request espressif/esp-idf!31768
2024-07-05 13:59:20 +08:00
Michael (XIAO Xufeng)
33c3d327c5
Merge branch 'feat/esp32p4_default_rev_0.1_v5.3' into 'release/v5.3'
...
feat(esp32p4): make revision v0.1 the default version (v5.3)
See merge request espressif/esp-idf!31601
2024-07-05 10:52:02 +08:00
Jakob Hasse
083db8a169
fix(bootloader_support): Fixed pattern in RNG enable function on C6 to avoid output on IO0
2024-07-04 11:36:31 +02:00
David Cermak
d9e4ec6c0a
fix(examples): Add wifi_remote option to common connect example
...
* Add MQTT test configuration with WiFi on ESP32-P4
* Document esp_wifi_remote workflow in the example's README
2024-07-04 11:14:46 +02:00
Jiang Jiang Jian
ffe0de9607
Merge branch 'bugfix/fix_idfgh_12600_v5.3' into 'release/v5.3'
...
fix(coex): fix ESP32 Wi-Fi cant tx after sw_reset with BLE scan
See merge request espressif/esp-idf!31788
2024-07-04 10:56:30 +08:00
Island
32334c7a25
Merge branch 'bugfix/fixed_hci_uart_error_on_esp32c6_esp32h2_v5.3' into 'release/v5.3'
...
feat(bluetooth/controller): Fixed the issue of unresponsiveness when using hci... (v5.3)
See merge request espressif/esp-idf!31750
2024-07-03 17:21:18 +08:00
Aditya Patwardhan
a56a4b8980
fix(soc): Disable key manager and ECDSA peripheral support for esp32p4
...
The support is disabled only for ECO1 and below
2024-07-03 15:28:41 +08:00
liuning
9417e857a8
fix(coex): fix ESP32 Wi-Fi cant tx after sw_reset with BLE scan
...
Closes https://github.com/espressif/esp-idf/issues/13598
2024-06-28 14:33:40 +08:00
wuzhenghui
0291269573
fix(esp_hw_support): wait eFuse controller idle after sleep wakeup
2024-06-28 13:58:44 +08:00
wuzhenghui
6e1d598703
fix(esp_hw_support): reset smp core state if the sleep request is rejected by hardware
2024-06-28 13:58:44 +08:00
wuzhenghui
eb45491d00
feat(esp_hw_support): bypass rst_reason override for esp32p4eco1
2024-06-28 13:58:44 +08:00
wuzhenghui
fdb0dd23ca
feat(esp_hw_support): support LP_Peripheral & CNNT power domain auto powerdown on esp32p4eco1
2024-06-28 13:58:44 +08:00
Marius Vikhammer
6b1a173030
Merge branch 'docs/fix_ulp_doxygen_comment_v5.3' into 'release/v5.3'
...
docs(ulp): fix doxygen comment formatting (v5.3)
See merge request espressif/esp-idf!31767
2024-06-28 12:27:57 +08:00
Marius Vikhammer
350d4c03da
docs(ulp): fix doxygen comment formatting
2024-06-27 17:08:25 +08:00
zwl
2543313f80
feat(bluetooth/controller): Fixed the issue of unresponsiveness when using hci uart mode on ESP32-C5
2024-06-26 17:33:24 +08:00
zwl
d617f8d5b0
feat(bluetooth/controller): Fixed the issue of unresponsiveness when using hci uart mode on ESP32-C6 and ESP32-H2
2024-06-26 17:33:24 +08:00
Marius Vikhammer
91aab8e6fd
Merge branch 'docs/update_c5_esp_timer_docs_v5.3' into 'release/v5.3'
...
docs(sys-time): add esp32c5 info into programming guide docs (v5.3)
See merge request espressif/esp-idf!31561
2024-06-25 16:59:37 +08:00
Xiaoyu Liu
8cabe4380b
docs(sys-time): add esp32c5 info into programming guide docs
2024-06-25 15:35:11 +08:00
Jiang Jiang Jian
4cfea9e864
Merge branch 'feat/put_bt_interface_code_to_rom_v5.3' into 'release/v5.3'
...
Feat/put bt interface code to rom (v5.3)
See merge request espressif/esp-idf!31549
2024-06-25 13:57:29 +08:00
Jiang Jiang Jian
e7b6fb75d4
Merge branch 'bugfix/fix_phy_cal_data_v5.3' into 'release/v5.3'
...
fix(phy): add phy calibration data check when mode is not none calibration(v5.3)
See merge request espressif/esp-idf!31480
2024-06-25 11:36:50 +08:00
Jiang Jiang Jian
d83e4bcfbe
Merge branch 'fix/trigger_system_reset_in_brownout_isr_v5.3' into 'release/v5.3'
...
change(esp_system): trigger digital system reset in brownout isr (v5.3)
See merge request espressif/esp-idf!31683
2024-06-25 09:40:51 +08:00
Jiang Jiang Jian
92c239d9b0
Merge branch 'docs/add_signature_verification_numbers_esp32p4_v5.3' into 'release/v5.3'
...
docs(secure_boot): Add secure boot signature verification time for esp32p4 (v5.3)
See merge request espressif/esp-idf!31688
2024-06-25 09:40:03 +08:00
Jiang Jiang Jian
e722672fcc
Merge branch 'doc/p4_rng_v5.3' into 'release/v5.3'
...
docs(esp_hw_support): Adjusted RNG docs to reflect P4 changes (v5.3)
See merge request espressif/esp-idf!31658
2024-06-25 09:26:43 +08:00
Jiang Jiang Jian
2d397782d8
Merge branch 'docs/freertos_docs_for_c5_c61_v5.3' into 'release/v5.3'
...
docs(freertos): Enabled FreeRTOS docs for esp32c5 (v5.3)
See merge request espressif/esp-idf!31538
2024-06-25 01:01:00 +08:00
Jiang Jiang Jian
397b1e51a5
Merge branch 'fix/docs_wifi_get_sta_list_v5.3' into 'release/v5.3'
...
fix(docs): tcpip_adapter: Document replacement of tcpip_adapter_get_sta_list (v5.3)
See merge request espressif/esp-idf!31170
2024-06-25 00:58:33 +08:00
Jiang Jiang Jian
6c7c212f98
Merge branch 'feat/update-memory-layout-c5-mp_v5.3' into 'release/v5.3'
...
feat(heap): support heap and update memory layout on esp32c5-mp target (backport v5.3)
See merge request espressif/esp-idf!31040
2024-06-25 00:55:00 +08:00