File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 147147/* This section should not be altered */
148148
149149#ifdef ESP_PLATFORM
150- # include "sdkconfig.h"
150+ # include <sdkconfig.h>
151+ # include <esp_idf_version.h>
151152
152153# ifndef CONFIG_BTDM_SCAN_DUPL_TYPE_DEVICE
153154# define CONFIG_BTDM_SCAN_DUPL_TYPE_DEVICE (0)
161162# define CONFIG_BTDM_SCAN_DUPL_TYPE_DATA_DEVICE (2)
162163# endif
163164
164- # if !defined(CONFIG_BT_NIMBLE_LEGACY_VHCI_ENABLE ) && \
165- (defined(CONFIG_IDF_TARGET_ESP32 ) || defined(CONFIG_IDF_TARGET_ESP32C3 ) || defined(CONFIG_IDF_TARGET_ESP32S3 ))
166- # define CONFIG_BT_NIMBLE_LEGACY_VHCI_ENABLE (1)
167- # endif
168-
169165# if !defined(CONFIG_BT_CONTROLLER_DISABLED )
170166# define CONFIG_BT_CONTROLLER_DISABLED (0)
171167# endif
172168
169+ # undef CONFIG_BT_NIMBLE_LEGACY_VHCI_ENABLE
173170# if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S3
174- # define NIMBLE_CFG_CONTROLLER 0
171+ # define CONFIG_BT_NIMBLE_LEGACY_VHCI_ENABLE (1)
172+ # define NIMBLE_CFG_CONTROLLER (0)
175173# else
176- # define NIMBLE_CFG_CONTROLLER CONFIG_BT_CONTROLLER_ENABLED
174+ # define CONFIG_BT_NIMBLE_LEGACY_VHCI_ENABLE (0)
175+ # define NIMBLE_CFG_CONTROLLER CONFIG_BT_CONTROLLER_ENABLED
177176# endif
178177
179178# ifndef CONFIG_BT_NIMBLE_USE_ESP_TIMER
187186# define MYNEWT_VAL_BLE_EXT_ADV (CONFIG_BT_NIMBLE_EXT_ADV)
188187# endif
189188
189+ # if CONFIG_IDF_TARGET_ESP32 && (ESP_IDF_VERSION < ESP_IDF_VERSION_VAL (5 , 0 , 0 ))
190+ # define MYNEWT_VAL_BLE_HCI_VS (0)
191+ # endif
192+
190193#else // !ESP_PLATFORM
191194# if defined(NRF51 )
192195# include "syscfg/devcfg/nrf51cfg.h"
You can’t perform that action at this time.
0 commit comments