Explorar el Código

Merge branch 'feature/update_bluedriod_examples_for_esp32h2_ble' into 'master'

Feature/update bluedriod examples for esp32h2 ble

Closes IDF-6921

See merge request espressif/esp-idf!22634
Shen Wei Long hace 2 años
padre
commit
ab63aaa4a2
Se han modificado 25 ficheros con 57 adiciones y 85 borrados
  1. 3 3
      components/bt/controller/esp32c6/bt.c
  2. 3 3
      components/bt/controller/esp32h2/bt.c
  3. BIN
      components/esp_phy/esp32h2/phy_multiple_init_data.bin
  4. 9 37
      examples/bluetooth/.build-test-rules.yml
  5. 2 2
      examples/bluetooth/bluedroid/ble/ble_ancs/README.md
  6. 2 2
      examples/bluetooth/bluedroid/ble/ble_compatibility_test/README.md
  7. 2 2
      examples/bluetooth/bluedroid/ble/ble_eddystone/README.md
  8. 2 2
      examples/bluetooth/bluedroid/ble/ble_hid_device_demo/README.md
  9. 2 2
      examples/bluetooth/bluedroid/ble/ble_ibeacon/README.md
  10. 2 2
      examples/bluetooth/bluedroid/ble/ble_spp_client/README.md
  11. 2 2
      examples/bluetooth/bluedroid/ble/ble_spp_server/README.md
  12. 2 2
      examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/README.md
  13. 2 2
      examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/README.md
  14. 2 2
      examples/bluetooth/bluedroid/ble/gatt_client/README.md
  15. 2 2
      examples/bluetooth/bluedroid/ble/gatt_security_client/README.md
  16. 2 2
      examples/bluetooth/bluedroid/ble/gatt_security_server/README.md
  17. 2 2
      examples/bluetooth/bluedroid/ble/gatt_server/README.md
  18. 2 2
      examples/bluetooth/bluedroid/ble/gatt_server_service_table/README.md
  19. 2 2
      examples/bluetooth/bluedroid/ble/gattc_multi_connect/README.md
  20. 2 2
      examples/bluetooth/bluedroid/ble_50/ble50_security_client/README.md
  21. 2 2
      examples/bluetooth/bluedroid/ble_50/ble50_security_server/README.md
  22. 2 2
      examples/bluetooth/bluedroid/ble_50/multi-adv/README.md
  23. 2 2
      examples/bluetooth/bluedroid/ble_50/peroidic_adv/README.md
  24. 2 2
      examples/bluetooth/bluedroid/ble_50/peroidic_sync/README.md
  25. 2 2
      examples/bluetooth/bluedroid/coex/gattc_gatts_coex/README.md

+ 3 - 3
components/bt/controller/esp32c6/bt.c

@@ -697,11 +697,11 @@ esp_err_t esp_bt_controller_deinit(void)
 
     if (s_ble_active) {
         esp_phy_disable();
-        esp_phy_modem_deinit();
-        modem_clock_deselect_lp_clock_source(PERIPH_BT_MODULE);
-        modem_clock_module_disable(PERIPH_BT_MODULE);
         s_ble_active = false;
     }
+    esp_phy_modem_deinit();
+    modem_clock_deselect_lp_clock_source(PERIPH_BT_MODULE);
+    modem_clock_module_disable(PERIPH_BT_MODULE);
 
     ble_controller_deinit();
 

+ 3 - 3
components/bt/controller/esp32h2/bt.c

@@ -724,11 +724,11 @@ esp_err_t esp_bt_controller_deinit(void)
 
     if (s_ble_active) {
         esp_phy_disable();
-        // esp_phy_modem_deinit();
-        // modem_clock_deselect_lp_clock_source(PERIPH_BT_MODULE);
-        // modem_clock_module_disable(PERIPH_BT_MODULE);
         s_ble_active = false;
     }
+    // esp_phy_modem_deinit();
+    // modem_clock_deselect_lp_clock_source(PERIPH_BT_MODULE);
+    // modem_clock_module_disable(PERIPH_BT_MODULE);
 
     ble_controller_deinit();
 

BIN
components/esp_phy/esp32h2/phy_multiple_init_data.bin


+ 9 - 37
examples/bluetooth/.build-test-rules.yml

@@ -2,31 +2,31 @@
 
 examples/bluetooth/bluedroid/ble:
   enable:
-    - if: IDF_TARGET in ["esp32", "esp32c2", "esp32c3", "esp32h4", "esp32s3", "esp32c6"]
+    - if: IDF_TARGET in ["esp32", "esp32c2", "esp32c3", "esp32h4", "esp32s3", "esp32c6", "esp32h2"]
       temporary: true
       reason: the other targets are not tested yet
   disable_test:
-    - if: IDF_TARGET in ["esp32c2", "esp32c3", "esp32h4", "esp32s3", "esp32c6"]
+    - if: IDF_TARGET in ["esp32c2", "esp32c3", "esp32h4", "esp32s3", "esp32c6", "esp32h2"]
       temporary: true
       reason: The runner doesn't support yet
 
 examples/bluetooth/bluedroid/ble_50:
   enable:
-    - if: IDF_TARGET in ["esp32c2", "esp32c3", "esp32h4", "esp32s3", "esp32c6"]
+    - if: IDF_TARGET in ["esp32c2", "esp32c3", "esp32h4", "esp32s3", "esp32c6", "esp32h2"]
       temporary: true
       reason: the other targets are not tested yet
   disable_test:
-    - if: IDF_TARGET in ["esp32c2", "esp32c3", "esp32h4", "esp32s3", "esp32c6"]
+    - if: IDF_TARGET in ["esp32c2", "esp32c3", "esp32h4", "esp32s3", "esp32c6", "esp32h2"]
       temporary: true
       reason: The runner doesn't support yet
 
 examples/bluetooth/bluedroid/ble_50/multi-adv:
   enable:
-    - if: IDF_TARGET in ["esp32c3", "esp32h4", "esp32s3", "esp32c6"]
+    - if: IDF_TARGET in ["esp32c3", "esp32h4", "esp32s3", "esp32c6", "esp32h2"]
       temporary: true
       reason: the other targets are not tested yet
   disable_test:
-    - if: IDF_TARGET in ["esp32c2", "esp32c3", "esp32h4", "esp32s3", "esp32c6"]
+    - if: IDF_TARGET in ["esp32c2", "esp32c3", "esp32h4", "esp32s3", "esp32c6", "esp32h2"]
       temporary: true
       reason: The runner doesn't support yet
 
@@ -35,28 +35,20 @@ examples/bluetooth/bluedroid/classic_bt:
     - if: IDF_TARGET == "esp32"
       temporary: true
       reason: the other targets are not tested yet
-  disable_test:
-    - if: IDF_TARGET in ["esp32c2", "esp32c3", "esp32h4", "esp32s3", "esp32c6"]
-      temporary: true
-      reason: The runner doesn't support yet
 
 examples/bluetooth/bluedroid/coex/a2dp_gatts_coex:
   enable:
     - if: IDF_TARGET == "esp32"
       temporary: true
       reason: the other targets are not tested yet
-  disable_test:
-    - if: IDF_TARGET in ["esp32c2", "esp32c3", "esp32h4", "esp32s3", "esp32c6"]
-      temporary: true
-      reason: The runner doesn't support yet
 
 examples/bluetooth/bluedroid/coex/gattc_gatts_coex:
   enable:
-    - if: IDF_TARGET in ["esp32", "esp32c2", "esp32c3", "esp32h4", "esp32s3", "esp32c6"]
+    - if: IDF_TARGET in ["esp32", "esp32c2", "esp32c3", "esp32h4", "esp32s3", "esp32c6", "esp32h2"]
       temporary: true
       reason: the other targets are not tested yet
   disable_test:
-    - if: IDF_TARGET in ["esp32c2", "esp32c3", "esp32h4", "esp32s3", "esp32c6"]
+    - if: IDF_TARGET in ["esp32c2", "esp32c3", "esp32h4", "esp32s3", "esp32c6", "esp32h2"]
       temporary: true
       reason: The runner doesn't support yet
 
@@ -105,40 +97,24 @@ examples/bluetooth/esp_hid_device:
     - if: IDF_TARGET == "esp32"
       temporary: true
       reason: the other targets are not tested yet
-  disable_test:
-    - if: IDF_TARGET in ["esp32c2", "esp32c3", "esp32h4", "esp32s3", "esp32c6"]
-      temporary: true
-      reason: The runner doesn't support yet
 
 examples/bluetooth/esp_hid_host:
   enable:
     - if: IDF_TARGET == "esp32"
       temporary: true
       reason: the other targets are not tested yet
-  disable_test:
-    - if: IDF_TARGET in ["esp32c2", "esp32c3", "esp32h4", "esp32s3", "esp32c6"]
-      temporary: true
-      reason: The runner doesn't support yet
 
 examples/bluetooth/hci/ble_adv_scan_combined:
   enable:
     - if: IDF_TARGET == "esp32"
       temporary: true
       reason: the other targets are not tested yet
-  disable_test:
-    - if: IDF_TARGET in ["esp32c2", "esp32c3", "esp32h4", "esp32s3", "esp32c6"]
-      temporary: true
-      reason: The runner doesn't support yet
 
 examples/bluetooth/hci/controller_hci_uart_esp32:
   enable:
     - if: IDF_TARGET == "esp32"
       temporary: true
       reason: the other targets are not tested yet
-  disable_test:
-    - if: IDF_TARGET in ["esp32c2", "esp32c3", "esp32h4", "esp32s3", "esp32c6"]
-      temporary: true
-      reason: The runner doesn't support yet
 
 examples/bluetooth/hci/controller_hci_uart_esp32c3_and_esp32s3:
   enable:
@@ -146,7 +122,7 @@ examples/bluetooth/hci/controller_hci_uart_esp32c3_and_esp32s3:
       temporary: true
       reason: the other targets are not tested yet
   disable_test:
-    - if: IDF_TARGET in ["esp32c2", "esp32c3", "esp32h4", "esp32s3", "esp32c6"]
+    - if: IDF_TARGET in ["esp32c3", "esp32s3"]
       temporary: true
       reason: The runner doesn't support yet
 
@@ -155,10 +131,6 @@ examples/bluetooth/hci/controller_vhci_ble_adv:
     - if: IDF_TARGET == "esp32"
       temporary: true
       reason: the other targets are not tested yet
-  disable_test:
-    - if: IDF_TARGET in ["esp32c2", "esp32c3", "esp32h4", "esp32s3", "esp32c6"]
-      temporary: true
-      reason: The runner doesn't support yet
 
 examples/bluetooth/nimble:
   enable:

+ 2 - 2
examples/bluetooth/bluedroid/ble/ble_ancs/README.md

@@ -1,5 +1,5 @@
-| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H4 | ESP32-S3 |
-| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |
+| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-H4 | ESP32-S3 |
+| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
 
 # ESP-IDF BLE ANCS Example
 

+ 2 - 2
examples/bluetooth/bluedroid/ble/ble_compatibility_test/README.md

@@ -1,5 +1,5 @@
-| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H4 | ESP32-S3 |
-| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |
+| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-H4 | ESP32-S3 |
+| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
 
 # ESP-IDF BLE Compatibility Test Example
 

+ 2 - 2
examples/bluetooth/bluedroid/ble/ble_eddystone/README.md

@@ -1,5 +1,5 @@
-| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H4 | ESP32-S3 |
-| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |
+| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-H4 | ESP32-S3 |
+| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
 
 # ESP-IDF Eddystone Example
 

+ 2 - 2
examples/bluetooth/bluedroid/ble/ble_hid_device_demo/README.md

@@ -1,5 +1,5 @@
-| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H4 | ESP32-S3 |
-| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |
+| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-H4 | ESP32-S3 |
+| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
 
 # ESP-IDF BLE HID Example
 

+ 2 - 2
examples/bluetooth/bluedroid/ble/ble_ibeacon/README.md

@@ -1,5 +1,5 @@
-| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H4 | ESP32-S3 |
-| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |
+| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-H4 | ESP32-S3 |
+| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
 
 # ESP-IDF iBeacon demo
 

+ 2 - 2
examples/bluetooth/bluedroid/ble/ble_spp_client/README.md

@@ -1,5 +1,5 @@
-| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H4 | ESP32-S3 |
-| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |
+| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-H4 | ESP32-S3 |
+| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
 
 # ESP-IDF SPP GATT CLIENT demo
 

+ 2 - 2
examples/bluetooth/bluedroid/ble/ble_spp_server/README.md

@@ -1,5 +1,5 @@
-| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H4 | ESP32-S3 |
-| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |
+| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-H4 | ESP32-S3 |
+| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
 
 ## ESP-IDF GATT SERVER SPP Example
 

+ 2 - 2
examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/README.md

@@ -1,5 +1,5 @@
-| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H4 | ESP32-S3 |
-| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |
+| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-H4 | ESP32-S3 |
+| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
 
 # ESP-IDF BLE throughput GATT CLIENT Test
 

+ 2 - 2
examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/README.md

@@ -1,5 +1,5 @@
-| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H4 | ESP32-S3 |
-| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |
+| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-H4 | ESP32-S3 |
+| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
 
 # ESP-IDF BLE throughput GATT SERVER Test
 

+ 2 - 2
examples/bluetooth/bluedroid/ble/gatt_client/README.md

@@ -1,5 +1,5 @@
-| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H4 | ESP32-S3 |
-| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |
+| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-H4 | ESP32-S3 |
+| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
 
 # ESP-IDF Gatt Client Example
 

+ 2 - 2
examples/bluetooth/bluedroid/ble/gatt_security_client/README.md

@@ -1,5 +1,5 @@
-| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H4 | ESP32-S3 |
-| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |
+| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-H4 | ESP32-S3 |
+| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
 
 # ESP-IDF Gatt Security Client Example
 

+ 2 - 2
examples/bluetooth/bluedroid/ble/gatt_security_server/README.md

@@ -1,5 +1,5 @@
-| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H4 | ESP32-S3 |
-| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |
+| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-H4 | ESP32-S3 |
+| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
 
 # ESP-IDF Gatt Security Server Example
 

+ 2 - 2
examples/bluetooth/bluedroid/ble/gatt_server/README.md

@@ -1,5 +1,5 @@
-| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H4 | ESP32-S3 |
-| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |
+| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-H4 | ESP32-S3 |
+| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
 
 # ESP-IDF Gatt Server Example
 

+ 2 - 2
examples/bluetooth/bluedroid/ble/gatt_server_service_table/README.md

@@ -1,5 +1,5 @@
-| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H4 | ESP32-S3 |
-| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |
+| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-H4 | ESP32-S3 |
+| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
 
 # ESP-IDF Gatt Server Service Table Example
 

+ 2 - 2
examples/bluetooth/bluedroid/ble/gattc_multi_connect/README.md

@@ -1,5 +1,5 @@
-| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H4 | ESP32-S3 |
-| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |
+| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-H4 | ESP32-S3 |
+| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
 
 # ESP-IDF Gatt Client Multi Connection Example
 

+ 2 - 2
examples/bluetooth/bluedroid/ble_50/ble50_security_client/README.md

@@ -1,5 +1,5 @@
-| Supported Targets | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H4 | ESP32-S3 |
-| ----------------- | -------- | -------- | -------- | -------- | -------- |
+| Supported Targets | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-H4 | ESP32-S3 |
+| ----------------- | -------- | -------- | -------- | -------- | -------- | -------- |
 
 # ESP-IDF Gatt Security Client Example
 

+ 2 - 2
examples/bluetooth/bluedroid/ble_50/ble50_security_server/README.md

@@ -1,5 +1,5 @@
-| Supported Targets | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H4 | ESP32-S3 |
-| ----------------- | -------- | -------- | -------- | -------- | -------- |
+| Supported Targets | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-H4 | ESP32-S3 |
+| ----------------- | -------- | -------- | -------- | -------- | -------- | -------- |
 
 # ESP-IDF BLE50 Security Server Example
 

+ 2 - 2
examples/bluetooth/bluedroid/ble_50/multi-adv/README.md

@@ -1,5 +1,5 @@
-| Supported Targets | ESP32-C3 | ESP32-C6 | ESP32-H4 | ESP32-S3 |
-| ----------------- | -------- | -------- | -------- | -------- |
+| Supported Targets | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-H4 | ESP32-S3 |
+| ----------------- | -------- | -------- | -------- | -------- | -------- |
 
 #ESP-IDF Multi Adv Example
 

+ 2 - 2
examples/bluetooth/bluedroid/ble_50/peroidic_adv/README.md

@@ -1,5 +1,5 @@
-| Supported Targets | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H4 | ESP32-S3 |
-| ----------------- | -------- | -------- | -------- | -------- | -------- |
+| Supported Targets | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-H4 | ESP32-S3 |
+| ----------------- | -------- | -------- | -------- | -------- | -------- | -------- |
 
 # ESP_IDF Periodic Adv Example
 

+ 2 - 2
examples/bluetooth/bluedroid/ble_50/peroidic_sync/README.md

@@ -1,5 +1,5 @@
-| Supported Targets | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H4 | ESP32-S3 |
-| ----------------- | -------- | -------- | -------- | -------- | -------- |
+| Supported Targets | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-H4 | ESP32-S3 |
+| ----------------- | -------- | -------- | -------- | -------- | -------- | -------- |
 
 # ESP-IDF Periodic Sync Example
 

+ 2 - 2
examples/bluetooth/bluedroid/coex/gattc_gatts_coex/README.md

@@ -1,5 +1,5 @@
-| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H4 | ESP32-S3 |
-| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |
+| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-H4 | ESP32-S3 |
+| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
 
 ESP-IDF Gattc and Gatts Coexistence example
 ==============================================