diff --git a/components/bt/controller/esp32c2/Kconfig.in b/components/bt/controller/esp32c2/Kconfig.in index 4c2ac499a9..fc0cdd9bb0 100644 --- a/components/bt/controller/esp32c2/Kconfig.in +++ b/components/bt/controller/esp32c2/Kconfig.in @@ -207,13 +207,13 @@ menu "Memory Settings" config BT_LE_ACL_BUF_COUNT int "ACL Buffer count" - default 24 + default 10 help The number of ACL data buffers. config BT_LE_ACL_BUF_SIZE int "ACL Buffer size" - default 255 + default 517 help This is the maximum size of the data portion of HCI ACL data packets. It does not include the HCI data header (of 4 bytes) @@ -387,3 +387,10 @@ choice BT_LE_WAKEUP_SOURCE help Use BLE rtc timer to wakeup CPU endchoice + +config BT_LE_USE_ESP_TIMER + bool "Use Esp Timer for callout" + depends on !BT_NIMBLE_ENABLED + default y + help + Set this option to use Esp Timer which has higher priority timer instead of FreeRTOS timer diff --git a/components/bt/controller/esp32c6/Kconfig.in b/components/bt/controller/esp32c6/Kconfig.in index 4c2ac499a9..2e44409faa 100644 --- a/components/bt/controller/esp32c6/Kconfig.in +++ b/components/bt/controller/esp32c6/Kconfig.in @@ -159,7 +159,7 @@ config BT_LE_MAX_PERIODIC_SYNCS int "Maximum number of periodic advertising syncs" depends on BT_LE_50_FEATURE_SUPPORT && !BT_NIMBLE_ENABLED - range 0 3 + range 0 8 default 1 if BT_LE_ENABLE_PERIODIC_ADV default 0 help @@ -207,13 +207,13 @@ menu "Memory Settings" config BT_LE_ACL_BUF_COUNT int "ACL Buffer count" - default 24 + default 10 help The number of ACL data buffers. config BT_LE_ACL_BUF_SIZE int "ACL Buffer size" - default 255 + default 517 help This is the maximum size of the data portion of HCI ACL data packets. It does not include the HCI data header (of 4 bytes) @@ -333,8 +333,8 @@ config BT_LE_LL_SCA config BT_LE_MAX_CONNECTIONS int "Maximum number of concurrent connections" depends on !BT_NIMBLE_ENABLED - range 1 2 - default 2 + range 1 9 + default 3 help Defines maximum number of concurrent BLE connections. For ESP32, user is expected to configure BTDM_CTRL_BLE_MAX_CONN from controller menu @@ -387,3 +387,11 @@ choice BT_LE_WAKEUP_SOURCE help Use BLE rtc timer to wakeup CPU endchoice + +config BT_LE_USE_ESP_TIMER + bool "Enable Esp Timer for Callout" + depends on !BT_NIMBLE_ENABLED + default y + help + Set this option to use Esp Timer which has higher priority timer + instead of FreeRTOS timer diff --git a/components/bt/controller/esp32h4/Kconfig.in b/components/bt/controller/esp32h4/Kconfig.in index bdd492b7b0..9f5c226a0f 100644 --- a/components/bt/controller/esp32h4/Kconfig.in +++ b/components/bt/controller/esp32h4/Kconfig.in @@ -159,7 +159,7 @@ config BT_LE_MAX_PERIODIC_SYNCS int "Maximum number of periodic advertising syncs" depends on BT_LE_50_FEATURE_SUPPORT && !BT_NIMBLE_ENABLED - range 0 3 + range 0 8 default 1 if BT_LE_ENABLE_PERIODIC_ADV default 0 help @@ -207,13 +207,13 @@ menu "Memory Settings" config BT_LE_ACL_BUF_COUNT int "ACL Buffer count" - default 24 + default 10 help The number of ACL data buffers. config BT_LE_ACL_BUF_SIZE int "ACL Buffer size" - default 255 + default 517 help This is the maximum size of the data portion of HCI ACL data packets. It does not include the HCI data header (of 4 bytes) @@ -333,7 +333,7 @@ config BT_LE_LL_SCA config BT_LE_MAX_CONNECTIONS int "Maximum number of concurrent connections" depends on !BT_NIMBLE_ENABLED - range 1 8 + range 1 9 default 3 help Defines maximum number of concurrent BLE connections. For ESP32, user @@ -381,5 +381,12 @@ choice BT_LE_WAKEUP_SOURCE bool "Use ESP timer to wakeup CPU" help Use esp timer to wakeup CPU - endchoice + +config BT_LE_USE_ESP_TIMER + bool "Use Esp Timer for callout" + depends on !BT_NIMBLE_ENABLED + default y + help + Set this option to use Esp Timer which has higher priority timer + instead of FreeRTOS timer diff --git a/components/bt/porting/npl/freertos/include/nimble/npl_freertos.h b/components/bt/porting/npl/freertos/include/nimble/npl_freertos.h index bda4558922..57c2db43e2 100644 --- a/components/bt/porting/npl/freertos/include/nimble/npl_freertos.h +++ b/components/bt/porting/npl/freertos/include/nimble/npl_freertos.h @@ -12,6 +12,15 @@ #ifdef __cplusplus extern "C" { #endif +#include "sdkconfig.h" + +#if ((defined(CONFIG_BT_NIMBLE_USE_ESP_TIMER) && CONFIG_BT_NIMBLE_USE_ESP_TIMER) || \ + (defined(CONFIG_BT_LE_USE_ESP_TIMER) && CONFIG_BT_LE_USE_ESP_TIMER)) +/* Use esp timer instead of FreeRTOS timer to implement the callout. */ +#define BLE_NPL_USE_ESP_TIMER (1) +#else +#define BLE_NPL_USE_ESP_TIMER (0) +#endif typedef struct { uint16_t evt_count; @@ -34,7 +43,7 @@ struct ble_npl_eventq_freertos { }; struct ble_npl_callout_freertos { -#if CONFIG_BT_NIMBLE_USE_ESP_TIMER +#if BLE_NPL_USE_ESP_TIMER esp_timer_handle_t handle; #else TimerHandle_t handle; diff --git a/components/bt/porting/npl/freertos/src/npl_os_freertos.c b/components/bt/porting/npl/freertos/src/npl_os_freertos.c index 5fcb615a0b..c1eae1ba3d 100644 --- a/components/bt/porting/npl/freertos/src/npl_os_freertos.c +++ b/components/bt/porting/npl/freertos/src/npl_os_freertos.c @@ -27,7 +27,7 @@ portMUX_TYPE ble_port_mutex = portMUX_INITIALIZER_UNLOCKED; -#if CONFIG_BT_NIMBLE_USE_ESP_TIMER +#if BLE_NPL_USE_ESP_TIMER static const char *TAG = "Timer"; #endif @@ -547,7 +547,7 @@ IRAM_ATTR npl_freertos_sem_release(struct ble_npl_sem *sem) return BLE_NPL_OK; } -#if CONFIG_BT_NIMBLE_USE_ESP_TIMER +#if BLE_NPL_USE_ESP_TIMER static void IRAM_ATTR ble_npl_event_fn_wrapper(void *arg) { @@ -613,7 +613,7 @@ npl_freertos_callout_init(struct ble_npl_callout *co, struct ble_npl_eventq *evq memset(callout, 0, sizeof(*callout)); ble_npl_event_init(&callout->ev, ev_cb, ev_arg); -#if CONFIG_BT_NIMBLE_USE_ESP_TIMER +#if BLE_NPL_USE_ESP_TIMER callout->evq = evq; esp_timer_create_args_t create_args = { @@ -637,7 +637,7 @@ npl_freertos_callout_init(struct ble_npl_callout *co, struct ble_npl_eventq *evq co->co = NULL; return -1; } -#endif // CONFIG_BT_NIMBLE_USE_ESP_TIMER +#endif // BLE_NPL_USE_ESP_TIMER } else { callout = (struct ble_npl_callout_freertos *)co->co; BLE_LL_ASSERT(callout); @@ -656,7 +656,7 @@ npl_freertos_callout_init(struct ble_npl_callout *co, struct ble_npl_eventq *evq memset(callout, 0, sizeof(*callout)); ble_npl_event_init(&callout->ev, ev_cb, ev_arg); -#if CONFIG_BT_NIMBLE_USE_ESP_TIMER +#if BLE_NPL_USE_ESP_TIMER callout->evq = evq; esp_timer_create_args_t create_args = { @@ -680,7 +680,7 @@ npl_freertos_callout_init(struct ble_npl_callout *co, struct ble_npl_eventq *evq co->co = NULL; return -1; } -#endif // CONFIG_BT_NIMBLE_USE_ESP_TIMER +#endif // BLE_NPL_USE_ESP_TIMER } else { callout = (struct ble_npl_callout_freertos *)co->co; @@ -707,7 +707,7 @@ npl_freertos_callout_deinit(struct ble_npl_callout *co) } ble_npl_event_deinit(&callout->ev); -#if CONFIG_BT_NIMBLE_USE_ESP_TIMER +#if BLE_NPL_USE_ESP_TIMER esp_err_t err = esp_timer_stop(callout->handle); if(err != ESP_OK) { if (err != ESP_ERR_INVALID_STATE) { // ESP_ERR_INVALID_STATE is expected when timer is already stopped @@ -725,7 +725,7 @@ npl_freertos_callout_deinit(struct ble_npl_callout *co) #else free((void *)callout); #endif // OS_MEM_ALLOC -#endif // CONFIG_BT_NIMBLE_USE_ESP_TIMER +#endif // BLE_NPL_USE_ESP_TIMER co->co = NULL; memset(co, 0, sizeof(struct ble_npl_callout)); } @@ -742,7 +742,7 @@ ble_npl_error_t IRAM_ATTR npl_freertos_callout_reset(struct ble_npl_callout *co, ble_npl_time_t ticks) { struct ble_npl_callout_freertos *callout = (struct ble_npl_callout_freertos *)co->co; -#if CONFIG_BT_NIMBLE_USE_ESP_TIMER +#if BLE_NPL_USE_ESP_TIMER esp_timer_stop(callout->handle); return esp_err_to_npl_error(esp_timer_start_once(callout->handle, ticks*1000)); @@ -780,7 +780,7 @@ IRAM_ATTR npl_freertos_callout_stop(struct ble_npl_callout *co) return; } -#if CONFIG_BT_NIMBLE_USE_ESP_TIMER +#if BLE_NPL_USE_ESP_TIMER esp_timer_stop(callout->handle); #else xTimerStop(callout->handle, portMAX_DELAY); @@ -791,7 +791,7 @@ bool IRAM_ATTR npl_freertos_callout_is_active(struct ble_npl_callout *co) { struct ble_npl_callout_freertos *callout = (struct ble_npl_callout_freertos *)co->co; -#if CONFIG_BT_NIMBLE_USE_ESP_TIMER +#if BLE_NPL_USE_ESP_TIMER return esp_timer_is_active(callout->handle); #else return xTimerIsTimerActive(callout->handle) == pdTRUE; @@ -801,7 +801,7 @@ IRAM_ATTR npl_freertos_callout_is_active(struct ble_npl_callout *co) ble_npl_time_t IRAM_ATTR npl_freertos_callout_get_ticks(struct ble_npl_callout *co) { -#if CONFIG_BT_NIMBLE_USE_ESP_TIMER +#if BLE_NPL_USE_ESP_TIMER /* Currently, esp_timer does not support an API which gets the expiry time for * current timer. * Returning 0 from here should not cause any effect. @@ -826,7 +826,7 @@ IRAM_ATTR npl_freertos_callout_remaining_ticks(struct ble_npl_callout *co, struct ble_npl_callout_freertos *callout = (struct ble_npl_callout_freertos *)co->co; -#if CONFIG_BT_NIMBLE_USE_ESP_TIMER +#if BLE_NPL_USE_ESP_TIMER #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0) uint64_t expiry = 0; esp_err_t err; @@ -869,7 +869,7 @@ IRAM_ATTR npl_freertos_callout_set_arg(struct ble_npl_callout *co, void *arg) uint32_t IRAM_ATTR npl_freertos_time_get(void) { -#if CONFIG_BT_NIMBLE_USE_ESP_TIMER +#if BLE_NPL_USE_ESP_TIMER return esp_timer_get_time() / 1000; #else return xTaskGetTickCountFromISR(); @@ -880,7 +880,7 @@ ble_npl_error_t IRAM_ATTR npl_freertos_time_ms_to_ticks(uint32_t ms, ble_npl_time_t *out_ticks) { uint64_t ticks; -#if CONFIG_BT_NIMBLE_USE_ESP_TIMER +#if BLE_NPL_USE_ESP_TIMER ticks = (uint64_t)ms; #else ticks = ((uint64_t)ms * configTICK_RATE_HZ) / 1000; @@ -898,7 +898,7 @@ ble_npl_error_t IRAM_ATTR npl_freertos_time_ticks_to_ms(ble_npl_time_t ticks, uint32_t *out_ms) { uint64_t ms; -#if CONFIG_BT_NIMBLE_USE_ESP_TIMER +#if BLE_NPL_USE_ESP_TIMER ms = ((uint64_t)ticks); #else ms = ((uint64_t)ticks * 1000) / configTICK_RATE_HZ; @@ -915,7 +915,7 @@ IRAM_ATTR npl_freertos_time_ticks_to_ms(ble_npl_time_t ticks, uint32_t *out_ms) ble_npl_time_t IRAM_ATTR npl_freertos_time_ms_to_ticks32(uint32_t ms) { -#if CONFIG_BT_NIMBLE_USE_ESP_TIMER +#if BLE_NPL_USE_ESP_TIMER return ms; #else return ms * configTICK_RATE_HZ / 1000; @@ -925,7 +925,7 @@ IRAM_ATTR npl_freertos_time_ms_to_ticks32(uint32_t ms) uint32_t IRAM_ATTR npl_freertos_time_ticks_to_ms32(ble_npl_time_t ticks) { -#if CONFIG_BT_NIMBLE_USE_ESP_TIMER +#if BLE_NPL_USE_ESP_TIMER return ticks; #else return ticks * 1000 / configTICK_RATE_HZ; @@ -935,7 +935,7 @@ IRAM_ATTR npl_freertos_time_ticks_to_ms32(ble_npl_time_t ticks) void IRAM_ATTR npl_freertos_time_delay(ble_npl_time_t ticks) { -#if CONFIG_BT_NIMBLE_USE_ESP_TIMER +#if BLE_NPL_USE_ESP_TIMER vTaskDelay(ticks / portTICK_PERIOD_MS); #else vTaskDelay(ticks); diff --git a/examples/bluetooth/bluedroid/ble/ble_ancs/sdkconfig.defaults b/examples/bluetooth/bluedroid/ble/ble_ancs/sdkconfig.defaults index d1004c7abd..9391307bcb 100644 --- a/examples/bluetooth/bluedroid/ble/ble_ancs/sdkconfig.defaults +++ b/examples/bluetooth/bluedroid/ble/ble_ancs/sdkconfig.defaults @@ -2,3 +2,6 @@ # Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration # CONFIG_BT_ENABLED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/bluedroid/ble/ble_compatibility_test/sdkconfig.defaults b/examples/bluetooth/bluedroid/ble/ble_compatibility_test/sdkconfig.defaults index d1004c7abd..9391307bcb 100644 --- a/examples/bluetooth/bluedroid/ble/ble_compatibility_test/sdkconfig.defaults +++ b/examples/bluetooth/bluedroid/ble/ble_compatibility_test/sdkconfig.defaults @@ -2,3 +2,6 @@ # Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration # CONFIG_BT_ENABLED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/bluedroid/ble/ble_eddystone/sdkconfig.defaults b/examples/bluetooth/bluedroid/ble/ble_eddystone/sdkconfig.defaults index d1004c7abd..9391307bcb 100644 --- a/examples/bluetooth/bluedroid/ble/ble_eddystone/sdkconfig.defaults +++ b/examples/bluetooth/bluedroid/ble/ble_eddystone/sdkconfig.defaults @@ -2,3 +2,6 @@ # Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration # CONFIG_BT_ENABLED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/bluedroid/ble/ble_hid_device_demo/sdkconfig.defaults b/examples/bluetooth/bluedroid/ble/ble_hid_device_demo/sdkconfig.defaults index d1004c7abd..9391307bcb 100644 --- a/examples/bluetooth/bluedroid/ble/ble_hid_device_demo/sdkconfig.defaults +++ b/examples/bluetooth/bluedroid/ble/ble_hid_device_demo/sdkconfig.defaults @@ -2,3 +2,6 @@ # Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration # CONFIG_BT_ENABLED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/bluedroid/ble/ble_ibeacon/sdkconfig.defaults b/examples/bluetooth/bluedroid/ble/ble_ibeacon/sdkconfig.defaults index d1004c7abd..9391307bcb 100644 --- a/examples/bluetooth/bluedroid/ble/ble_ibeacon/sdkconfig.defaults +++ b/examples/bluetooth/bluedroid/ble/ble_ibeacon/sdkconfig.defaults @@ -2,3 +2,6 @@ # Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration # CONFIG_BT_ENABLED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/bluedroid/ble/ble_spp_client/sdkconfig.defaults b/examples/bluetooth/bluedroid/ble/ble_spp_client/sdkconfig.defaults index d1004c7abd..9391307bcb 100644 --- a/examples/bluetooth/bluedroid/ble/ble_spp_client/sdkconfig.defaults +++ b/examples/bluetooth/bluedroid/ble/ble_spp_client/sdkconfig.defaults @@ -2,3 +2,6 @@ # Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration # CONFIG_BT_ENABLED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/bluedroid/ble/ble_spp_server/sdkconfig.defaults b/examples/bluetooth/bluedroid/ble/ble_spp_server/sdkconfig.defaults index d1004c7abd..9391307bcb 100644 --- a/examples/bluetooth/bluedroid/ble/ble_spp_server/sdkconfig.defaults +++ b/examples/bluetooth/bluedroid/ble/ble_spp_server/sdkconfig.defaults @@ -2,3 +2,6 @@ # Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration # CONFIG_BT_ENABLED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/sdkconfig.defaults b/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/sdkconfig.defaults index 136f0eafc4..8676c818a3 100644 --- a/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/sdkconfig.defaults +++ b/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/sdkconfig.defaults @@ -2,5 +2,8 @@ # Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration # CONFIG_BT_ENABLED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_LE_50_FEATURE_SUPPORT=n CONFIG_GATTS_NOTIFY_THROUGHPUT=y CONFIG_GATTC_WRITE_THROUGHPUT=n diff --git a/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/sdkconfig.defaults b/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/sdkconfig.defaults index 6d2e70bf8b..58af7f81e6 100644 --- a/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/sdkconfig.defaults +++ b/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/sdkconfig.defaults @@ -4,3 +4,6 @@ CONFIG_EXAMPLE_GATTS_NOTIFY_THROUGHPUT=y CONFIG_EXAMPLE_GATTC_WRITE_THROUGHPUT=n CONFIG_BT_ENABLED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/bluedroid/ble/gatt_client/sdkconfig.defaults b/examples/bluetooth/bluedroid/ble/gatt_client/sdkconfig.defaults index d1004c7abd..9391307bcb 100644 --- a/examples/bluetooth/bluedroid/ble/gatt_client/sdkconfig.defaults +++ b/examples/bluetooth/bluedroid/ble/gatt_client/sdkconfig.defaults @@ -2,3 +2,6 @@ # Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration # CONFIG_BT_ENABLED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/bluedroid/ble/gatt_security_client/sdkconfig.defaults b/examples/bluetooth/bluedroid/ble/gatt_security_client/sdkconfig.defaults index d1004c7abd..9391307bcb 100644 --- a/examples/bluetooth/bluedroid/ble/gatt_security_client/sdkconfig.defaults +++ b/examples/bluetooth/bluedroid/ble/gatt_security_client/sdkconfig.defaults @@ -2,3 +2,6 @@ # Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration # CONFIG_BT_ENABLED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/bluedroid/ble/gatt_security_server/sdkconfig.defaults b/examples/bluetooth/bluedroid/ble/gatt_security_server/sdkconfig.defaults index d1004c7abd..9391307bcb 100644 --- a/examples/bluetooth/bluedroid/ble/gatt_security_server/sdkconfig.defaults +++ b/examples/bluetooth/bluedroid/ble/gatt_security_server/sdkconfig.defaults @@ -2,3 +2,6 @@ # Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration # CONFIG_BT_ENABLED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig.defaults b/examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig.defaults index d1004c7abd..9391307bcb 100644 --- a/examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig.defaults +++ b/examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig.defaults @@ -2,3 +2,6 @@ # Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration # CONFIG_BT_ENABLED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/bluedroid/ble/gatt_server_service_table/sdkconfig.defaults b/examples/bluetooth/bluedroid/ble/gatt_server_service_table/sdkconfig.defaults index d1004c7abd..9391307bcb 100644 --- a/examples/bluetooth/bluedroid/ble/gatt_server_service_table/sdkconfig.defaults +++ b/examples/bluetooth/bluedroid/ble/gatt_server_service_table/sdkconfig.defaults @@ -2,3 +2,6 @@ # Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration # CONFIG_BT_ENABLED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/bluedroid/ble/gattc_multi_connect/sdkconfig.defaults b/examples/bluetooth/bluedroid/ble/gattc_multi_connect/sdkconfig.defaults index d1004c7abd..9391307bcb 100644 --- a/examples/bluetooth/bluedroid/ble/gattc_multi_connect/sdkconfig.defaults +++ b/examples/bluetooth/bluedroid/ble/gattc_multi_connect/sdkconfig.defaults @@ -2,3 +2,6 @@ # Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration # CONFIG_BT_ENABLED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/bluedroid/ble_50/multi-adv/sdkconfig.defaults b/examples/bluetooth/bluedroid/ble_50/multi-adv/sdkconfig.defaults index d1004c7abd..6777f92fd5 100644 --- a/examples/bluetooth/bluedroid/ble_50/multi-adv/sdkconfig.defaults +++ b/examples/bluetooth/bluedroid/ble_50/multi-adv/sdkconfig.defaults @@ -2,3 +2,4 @@ # Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration # CONFIG_BT_ENABLED=y +CONFIG_BT_LE_MAX_EXT_ADV_INSTANCES=4 diff --git a/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/sdkconfig.defaults b/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/sdkconfig.defaults index d1004c7abd..9391307bcb 100644 --- a/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/sdkconfig.defaults +++ b/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/sdkconfig.defaults @@ -2,3 +2,6 @@ # Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration # CONFIG_BT_ENABLED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/blufi/sdkconfig.defaults.esp32c6 b/examples/bluetooth/blufi/sdkconfig.defaults.esp32c6 new file mode 100644 index 0000000000..de0c360c8a --- /dev/null +++ b/examples/bluetooth/blufi/sdkconfig.defaults.esp32c6 @@ -0,0 +1,13 @@ +# This file was generated using idf.py save-defconfig. It can be edited manually. +# Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration +# +CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y +CONFIG_BT_ENABLED=y +CONFIG_BT_NIMBLE_BLUFI_ENABLE=y +# CONFIG_BT_GATTC_ENABLE is not set +# CONFIG_BT_BLE_SMP_ENABLE is not set +# CONFIG_BT_BLE_50_FEATURES_SUPPORTED is not set +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_MBEDTLS_DHM_C=y +CONFIG_BT_NIMBLE_ENABLED=y +CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/esp_hid_device/sdkconfig.defaults.esp32c6 b/examples/bluetooth/esp_hid_device/sdkconfig.defaults.esp32c6 new file mode 100644 index 0000000000..64e2d269a5 --- /dev/null +++ b/examples/bluetooth/esp_hid_device/sdkconfig.defaults.esp32c6 @@ -0,0 +1,5 @@ +CONFIG_BT_ENABLED=y +CONFIG_BT_BLUEDROID_ENABLED=y +CONFIG_BT_BLE_ENABLED=y +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/esp_hid_host/sdkconfig.defaults.esp32c6 b/examples/bluetooth/esp_hid_host/sdkconfig.defaults.esp32c6 new file mode 100644 index 0000000000..64e2d269a5 --- /dev/null +++ b/examples/bluetooth/esp_hid_host/sdkconfig.defaults.esp32c6 @@ -0,0 +1,5 @@ +CONFIG_BT_ENABLED=y +CONFIG_BT_BLUEDROID_ENABLED=y +CONFIG_BT_BLE_ENABLED=y +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_LE_50_FEATURE_SUPPORT=n