diff --git a/components/bt/include/esp32c2/include/esp_bt.h b/components/bt/include/esp32c2/include/esp_bt.h index a92bda8f08..de78f485b5 100644 --- a/components/bt/include/esp32c2/include/esp_bt.h +++ b/components/bt/include/esp32c2/include/esp_bt.h @@ -73,26 +73,26 @@ typedef enum { } esp_ble_power_type_t; /** - * @brief Bluetooth TX power level(index), it's just a index corresponding to power(dbm). + * @brief Bluetooth TX power level (index), it's just a index corresponding to power(dBm). */ typedef enum { - ESP_PWR_LVL_N24 = 0, /*!< Corresponding to -24dbm */ - ESP_PWR_LVL_N21 = 1, /*!< Corresponding to -21dbm */ - ESP_PWR_LVL_N18 = 2, /*!< Corresponding to -18dbm */ - ESP_PWR_LVL_N15 = 3, /*!< Corresponding to -15dbm */ - ESP_PWR_LVL_N12 = 4, /*!< Corresponding to -12dbm */ - ESP_PWR_LVL_N9 = 5, /*!< Corresponding to -9dbm */ - ESP_PWR_LVL_N6 = 6, /*!< Corresponding to -6dbm */ - ESP_PWR_LVL_N3 = 7, /*!< Corresponding to -3dbm */ - ESP_PWR_LVL_N0 = 8, /*!< Corresponding to 0dbm */ - ESP_PWR_LVL_P3 = 9, /*!< Corresponding to +3dbm */ - ESP_PWR_LVL_P6 = 10, /*!< Corresponding to +6dbm */ - ESP_PWR_LVL_P9 = 11, /*!< Corresponding to +9dbm */ - ESP_PWR_LVL_P12 = 12, /*!< Corresponding to +12dbm */ - ESP_PWR_LVL_P15 = 13, /*!< Corresponding to +15dbm */ - ESP_PWR_LVL_P18 = 14, /*!< Corresponding to +18dbm */ - ESP_PWR_LVL_P20 = 15, /*!< Corresponding to +20dbm */ - ESP_PWR_LVL_P21 = 15, /*!< Corresponding to +20dbm, this enum variable has been deprecated */ + ESP_PWR_LVL_N24 = 0, /*!< Corresponding to -24 dBm */ + ESP_PWR_LVL_N21 = 1, /*!< Corresponding to -21 dBm */ + ESP_PWR_LVL_N18 = 2, /*!< Corresponding to -18 dBm */ + ESP_PWR_LVL_N15 = 3, /*!< Corresponding to -15 dBm */ + ESP_PWR_LVL_N12 = 4, /*!< Corresponding to -12 dBm */ + ESP_PWR_LVL_N9 = 5, /*!< Corresponding to -9 dBm */ + ESP_PWR_LVL_N6 = 6, /*!< Corresponding to -6 dBm */ + ESP_PWR_LVL_N3 = 7, /*!< Corresponding to -3 dBm */ + ESP_PWR_LVL_N0 = 8, /*!< Corresponding to 0 dBm */ + ESP_PWR_LVL_P3 = 9, /*!< Corresponding to +3 dBm */ + ESP_PWR_LVL_P6 = 10, /*!< Corresponding to +6 dBm */ + ESP_PWR_LVL_P9 = 11, /*!< Corresponding to +9 dBm */ + ESP_PWR_LVL_P12 = 12, /*!< Corresponding to +12 dBm */ + ESP_PWR_LVL_P15 = 13, /*!< Corresponding to +15 dBm */ + ESP_PWR_LVL_P18 = 14, /*!< Corresponding to +18 dBm */ + ESP_PWR_LVL_P20 = 15, /*!< Corresponding to +20 dBm */ + ESP_PWR_LVL_P21 = 15, /*!< Corresponding to +20 dBm, this enum variable has been deprecated */ ESP_PWR_LVL_INVALID = 0xFF, /*!< Indicates an invalid value */ } esp_power_level_t; diff --git a/examples/bluetooth/.build-test-rules.yml b/examples/bluetooth/.build-test-rules.yml index fef7274f84..ed3a25f416 100644 --- a/examples/bluetooth/.build-test-rules.yml +++ b/examples/bluetooth/.build-test-rules.yml @@ -19,31 +19,54 @@ examples/bluetooth/bluedroid/ble: <<: *bt_default_depends disable: - if: SOC_BT_SUPPORTED != 1 + depends_components+: + - esp_console + - esp_driver_gpio + - esp_driver_i2s + - esp_driver_uart examples/bluetooth/bluedroid/ble/ble_hid_device_demo: + <<: *bt_default_depends disable: - if: SOC_BT_SUPPORTED != 1 - depends_components: + depends_components+: - esp_driver_gpio +examples/bluetooth/bluedroid/ble/ble_throughput: + <<: *bt_default_depends + disable: + - if: SOC_BLE_SUPPORTED != 1 + depends_components+: + - esp_console + - esp_driver_gpio + - esp_driver_i2s + - esp_driver_uart + + examples/bluetooth/bluedroid/ble_50: + <<: *bt_default_depends disable: - if: SOC_BLE_50_SUPPORTED != 1 + depends_components+: + - esp_console + - esp_driver_gpio + - esp_driver_i2s + - esp_driver_uart examples/bluetooth/bluedroid/classic_bt: + <<: *bt_default_depends disable: - if: SOC_BT_CLASSIC_SUPPORTED != 1 - depends_components: - - bt - - esp_phy + depends_components+: - nvs_flash - - esp_log - esp_console - vfs - esp_driver_gpio - esp_driver_i2s - esp_driver_uart + depends_components-: + - mbedtls depends_filepatterns: - components/driver/dac/**/* - examples/bluetooth/bluedroid/esp_hid_host/**/* @@ -56,73 +79,72 @@ examples/bluetooth/bluedroid/coex/a2dp_gatts_coex: - if: IDF_TARGET != "esp32" temporary: true reason: the other targets are not tested yet - depends_components: + depends_components+: - esp_driver_i2s depends_filepatterns: - components/driver/dac/**/* examples/bluetooth/blufi: + <<: *bt_default_depends disable: - if: SOC_BT_SUPPORTED != 1 - if: SOC_WIFI_SUPPORTED != 1 - depends_components: - - bt - - esp_phy - - nvs_flash - - esp_log + depends_components+: - esp_console - vfs - esp_wifi - esp_event - - mbedtls examples/bluetooth/esp_ble_mesh: + <<: *bt_default_depends disable: - if: SOC_BLE_MESH_SUPPORTED != 1 # limit build configs - if: CI_COMMIT_REF_NAME == "master" and (NIGHTLY_RUN == 0 and CONFIG_NAME not in ["default", "bluedroid", "nimble"]) - depends_components: - - bt - - esp_phy + depends_components+: - esp_console - - vfs - - mbedtls - touch_element - esp_driver_gpio depends_filepatterns: - examples/bluetooth/esp_ble_mesh/common_components/**/* examples/bluetooth/esp_ble_mesh/wifi_coexist: + <<: *bt_default_depends disable: - if: SOC_BLE_MESH_SUPPORTED != 1 - if: SOC_WIFI_SUPPORTED != 1 depends_components: - - bt - - esp_phy - esp_console - - vfs - - mbedtls - - esp_coex - esp_wifi - esp_netif - esp_driver_gpio depends_filepatterns: - examples/bluetooth/esp_ble_mesh/common_components/**/* +examples/bluetooth/esp_hid_device: + <<: *bt_default_depends + disable: + - if: SOC_BT_SUPPORTED != 1 + depends_components+: + - esp_hid + examples/bluetooth/esp_hid_host: + <<: *bt_default_depends disable_test: - - if: IDF_TARGET in ["esp32c2", "esp32c3", "esp32c5", "esp32c6", "esp32h2", "esp32s3"] + - if: IDF_TARGET != "esp32" temporary: true reason: temporarily test esp32 disable: - if: SOC_BT_SUPPORTED != 1 + depends_components+: + - esp_hid -examples/bluetooth/hci: +examples/bluetooth/hci/ble_adv_scan_combined: <<: *bt_default_depends - enable: - - if: IDF_TARGET == "esp32" - temporary: true - reason: the other targets are not tested yet + disable: + - if: SOC_BLE_SUPPORTED != 1 + depends_components+: + - esp_driver_uart depends_filepatterns: - examples/bluetooth/hci/hci_common_component/**/* @@ -130,15 +152,21 @@ examples/bluetooth/hci/controller_hci_uart_esp32: <<: *bt_default_depends enable: - if: IDF_TARGET == "esp32" - depends_components: + depends_components+: - esp_driver_uart + depends_filepatterns: + - examples/bluetooth/hci/hci_common_component/**/* + examples/bluetooth/hci/controller_hci_uart_esp32c3_and_esp32s3: <<: *bt_default_depends enable: - if: IDF_TARGET in ["esp32c3", "esp32s3"] - depends_components: + depends_components+: - esp_driver_uart + depends_filepatterns: + - examples/bluetooth/hci/hci_common_component/**/* + # config BT_NIMBLE_ENABLED does not depends on any soc cap @@ -210,11 +238,7 @@ examples/bluetooth/nimble/blecent: <<: *bt_default_depends disable: - if: SOC_BLE_SUPPORTED != 1 - depends_components: - - bt - - esp_phy - - esp_event - - esp_coex + depends_components+: - esp_pm depends_filepatterns: - examples/bluetooth/nimble/common/**/* @@ -232,17 +256,14 @@ examples/bluetooth/nimble/blemesh: - examples/bluetooth/nimble/common/**/* examples/bluetooth/nimble/bleprph_wifi_coex: + <<: *bt_default_depends disable: - if: SOC_BLE_SUPPORTED != 1 - if: SOC_WIFI_SUPPORTED != 1 - depends_components: - - bt - - esp_phy + depends_components+: - esp_event - esp_hid - esp_wifi - - esp_coex - - nvs_flash - lwip depends_filepatterns: - examples/bluetooth/nimble/common/**/* @@ -258,11 +279,8 @@ examples/bluetooth/nimble/power_save: <<: *bt_default_depends disable: - if: SOC_BLE_SUPPORTED != 1 - depends_components: - - bt - - esp_phy + depends_components+: - esp_event - - esp_coex - esp_pm depends_filepatterns: - examples/bluetooth/nimble/common/**/* @@ -274,7 +292,7 @@ examples/bluetooth/nimble/throughput_app: <<: *bt_default_depends disable: - if: SOC_BLE_SUPPORTED != 1 - depends_components: + depends_components+: - esp_driver_gpio - esp_driver_uart depends_filepatterns: diff --git a/examples/bluetooth/hci/ble_adv_scan_combined/README.md b/examples/bluetooth/hci/ble_adv_scan_combined/README.md index cbbcadd91a..4030888d96 100644 --- a/examples/bluetooth/hci/ble_adv_scan_combined/README.md +++ b/examples/bluetooth/hci/ble_adv_scan_combined/README.md @@ -1,5 +1,5 @@ -| Supported Targets | ESP32 | -| ----------------- | ----- | +| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-S3 | +| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | ESP-IDF Combined Bluetooth advertising and scanning =================================================== diff --git a/examples/bluetooth/hci/controller_vhci_ble_adv/README.md b/examples/bluetooth/hci/controller_vhci_ble_adv/README.md index ae6fb26dec..ed222dff5c 100644 --- a/examples/bluetooth/hci/controller_vhci_ble_adv/README.md +++ b/examples/bluetooth/hci/controller_vhci_ble_adv/README.md @@ -1,5 +1,5 @@ -| Supported Targets | ESP32 | -| ----------------- | ----- | +| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-S3 | +| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | ESP-IDF VHCI ble_advertising app ================================