From 8842c6577b0f853b622db4566857ae5a5fc2f185 Mon Sep 17 00:00:00 2001 From: Geng Yu Chao Date: Wed, 11 Jun 2025 10:03:47 +0800 Subject: [PATCH] feat(esp32c5): Enable Bluetooth LE CTE feature (cherry picked from commit aa4489a8795412d347a68ce56f2054379bb0b118) Co-authored-by: Geng Yuchao --- components/soc/esp32c5/include/soc/Kconfig.soc_caps.in | 4 ++++ components/soc/esp32c5/include/soc/soc_caps.h | 1 + examples/bluetooth/.build-test-rules.yml | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/components/soc/esp32c5/include/soc/Kconfig.soc_caps.in b/components/soc/esp32c5/include/soc/Kconfig.soc_caps.in index d23b2d83e6..460bbe723c 100644 --- a/components/soc/esp32c5/include/soc/Kconfig.soc_caps.in +++ b/components/soc/esp32c5/include/soc/Kconfig.soc_caps.in @@ -1835,6 +1835,10 @@ config SOC_BLE_PERIODIC_ADV_ENH_SUPPORTED bool default y +config SOC_BLE_CTE_SUPPORTED + bool + default y + config SOC_LP_CORE_SINGLE_INTERRUPT_VECTOR bool default y diff --git a/components/soc/esp32c5/include/soc/soc_caps.h b/components/soc/esp32c5/include/soc/soc_caps.h index 9e9c4ee8d2..eacccb4022 100644 --- a/components/soc/esp32c5/include/soc/soc_caps.h +++ b/components/soc/esp32c5/include/soc/soc_caps.h @@ -706,6 +706,7 @@ #define SOC_BLE_POWER_CONTROL_SUPPORTED (1) /*!< Support Bluetooth Power Control */ #define SOC_BLE_MULTI_CONN_OPTIMIZATION (1) /*!< Support multiple connections optimization */ #define SOC_BLE_PERIODIC_ADV_ENH_SUPPORTED (1) /*!< Support For BLE Periodic Adv Enhancements */ +#define SOC_BLE_CTE_SUPPORTED (1) /*!< Support Bluetooth LE Constant Tone Extension (CTE) */ /*------------------------------------- PHY CAPS -------------------------------------*/ // #define SOC_PHY_COMBO_MODULE (1) /*!< Support Wi-Fi, BLE and 15.4*/ diff --git a/examples/bluetooth/.build-test-rules.yml b/examples/bluetooth/.build-test-rules.yml index 77d44e7b18..31cbcb3143 100644 --- a/examples/bluetooth/.build-test-rules.yml +++ b/examples/bluetooth/.build-test-rules.yml @@ -192,7 +192,7 @@ examples/bluetooth/nimble/ble_ancs: examples/bluetooth/nimble/ble_cte: <<: *bt_default_depends enable: - - if: SOC_BLE_CTE_SUPPORTED == 1 + - if: SOC_BLE_CTE_SUPPORTED == 1 and IDF_TARGET != "esp32c61" depends_filepatterns: - examples/bluetooth/nimble/ble_cte/common_components/*