From 60ece6a7f23606db3fcfcee0febeace2e46f855d Mon Sep 17 00:00:00 2001 From: ShenWeilong Date: Wed, 14 Jan 2026 14:37:27 +0800 Subject: [PATCH] fix(doc): set SOC_BLUFI_SUPPORTED in soc_caps.h for ESP32-C5 --- components/soc/esp32c5/include/soc/Kconfig.soc_caps.in | 8 ++++++-- components/soc/esp32c5/include/soc/soc_caps.h | 3 ++- examples/bluetooth/blufi/main/blufi_example_main.c | 4 ++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/components/soc/esp32c5/include/soc/Kconfig.soc_caps.in b/components/soc/esp32c5/include/soc/Kconfig.soc_caps.in index f180aa2347..4ad7ba49fd 100644 --- a/components/soc/esp32c5/include/soc/Kconfig.soc_caps.in +++ b/components/soc/esp32c5/include/soc/Kconfig.soc_caps.in @@ -1595,11 +1595,15 @@ config SOC_BLE_POWER_CONTROL_SUPPORTED bool default y -config SOC_BLE_MULTI_CONN_OPTIMIZATION +config SOC_BLE_PERIODIC_ADV_ENH_SUPPORTED bool default y -config SOC_BLE_PERIODIC_ADV_ENH_SUPPORTED +config SOC_BLUFI_SUPPORTED + bool + default y + +config SOC_BLE_MULTI_CONN_OPTIMIZATION bool default y diff --git a/components/soc/esp32c5/include/soc/soc_caps.h b/components/soc/esp32c5/include/soc/soc_caps.h index fb6bfc0bc1..e478f259a4 100644 --- a/components/soc/esp32c5/include/soc/soc_caps.h +++ b/components/soc/esp32c5/include/soc/soc_caps.h @@ -638,8 +638,9 @@ #define SOC_BLE_50_SUPPORTED (1) /*!< Support Bluetooth 5.0 */ #define SOC_BLE_DEVICE_PRIVACY_SUPPORTED (1) /*!< Support BLE device privacy mode */ #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_BLUFI_SUPPORTED (1) /*!< Support BLUFI */ +#define SOC_BLE_MULTI_CONN_OPTIMIZATION (1) /*!< Support multiple connections optimization */ #define SOC_BLE_CTE_SUPPORTED (1) /*!< Support Bluetooth LE Constant Tone Extension (CTE) */ #define SOC_BLE_SUBRATE_SUPPORTED (1) /*!< Support Bluetooth LE Connection Subrating */ #define SOC_BLE_PERIODIC_ADV_WITH_RESPONSE (1) /*!< Support Bluetooth LE Periodic Advertising with Response (PAwR) */ diff --git a/examples/bluetooth/blufi/main/blufi_example_main.c b/examples/bluetooth/blufi/main/blufi_example_main.c index b5dbf3e7ee..e88aec78d4 100644 --- a/examples/bluetooth/blufi/main/blufi_example_main.c +++ b/examples/bluetooth/blufi/main/blufi_example_main.c @@ -33,6 +33,10 @@ #include "esp_blufi.h" +#ifndef CONFIG_SOC_BLUFI_SUPPORTED +#error "This SOC does not support BLUFI" +#endif + #define EXAMPLE_WIFI_CONNECTION_MAXIMUM_RETRY CONFIG_EXAMPLE_WIFI_CONNECTION_MAXIMUM_RETRY #define EXAMPLE_INVALID_REASON 255 #define EXAMPLE_INVALID_RSSI -128