Change the selection based on target to function selection

This commit is contained in:
GengYuchao
2022-07-20 12:13:48 +08:00
parent f34b3912b0
commit 964304b751
2 changed files with 8 additions and 1 deletions

View File

@@ -614,7 +614,7 @@ if(CONFIG_BT_ENABLED)
)
endif()
if(CONFIG_IDF_TARGET_ESP32 OR CONFIG_IDF_TARGET_ESP32C3 OR CONFIG_IDF_TARGET_ESP32S3)
if(CONFIG_BT_NIMBLE_LEGACY_VHCI_ENABLE)
list(APPEND srcs
"host/nimble/esp-hci/src/esp_nimble_hci.c"
)

View File

@@ -628,3 +628,10 @@ config BT_NIMBLE_USE_ESP_TIMER
default y
help
Set this option to use Esp Timer which has higher priority timer instead of FreeRTOS timer
config BT_NIMBLE_LEGACY_VHCI_ENABLE
bool
default y if (IDF_TARGET_ESP32 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3)
default n
help
This option is used to distinguish whether a previous version of VHCI is being used