Fix Kconfig format issue and add option

This commit is contained in:
GengYuchao
2022-06-17 22:04:37 +08:00
parent ee55f016be
commit 1dabebf771
4 changed files with 121 additions and 116 deletions

View File

@@ -32,13 +32,14 @@ if(CONFIG_BT_ENABLED)
list(APPEND priv_include_dirs list(APPEND priv_include_dirs
common/btc/include common/btc/include
common/include) common/include
porting/mem/
)
list(APPEND include_dirs list(APPEND include_dirs
common/api/include/api common/api/include/api
common/btc/profile/esp/blufi/include common/btc/profile/esp/blufi/include
common/btc/profile/esp/include common/btc/profile/esp/include
porting/mem/ )
)
list(APPEND srcs "common/btc/core/btc_alarm.c" list(APPEND srcs "common/btc/core/btc_alarm.c"
@@ -467,9 +468,7 @@ if(CONFIG_BT_ENABLED)
if(CONFIG_IDF_TARGET_ESP32C2 OR CONFIG_IDF_TARGET_ESP32H2) if(CONFIG_BT_LE_CONTROLLER_NPL_OS_PORTING_SUPPORT)
if(CONFIG_BT_CONTROLLER_ENABLED)
list(APPEND srcs list(APPEND srcs
"porting/npl/freertos/src/npl_os_freertos.c" "porting/npl/freertos/src/npl_os_freertos.c"
"porting/nimble/src/os_msys_init.c" "porting/nimble/src/os_msys_init.c"
@@ -477,40 +476,38 @@ if(CONFIG_BT_ENABLED)
list(APPEND include_dirs list(APPEND include_dirs
porting/include porting/include
porting/mem/
porting/nimble/include porting/nimble/include
porting/npl/freertos/include porting/npl/freertos/include
porting/transport/include porting/transport/include
) )
endif()
if(CONFIG_BT_LE_HCI_INTERFACE_USE_UART) if(CONFIG_BT_LE_HCI_INTERFACE_USE_UART)
list(APPEND srcs list(APPEND srcs
"porting/transport/uart/hci_uart.c" "porting/transport/uart/hci_uart.c"
) )
endif() endif()
endif()
if(NOT (CONFIG_BT_LE_CRYPTO_STACK_MBEDTLS OR CONFIG_BT_NIMBLE_CRYPTO_STACK_MBEDTLS)) if(NOT (CONFIG_BT_LE_CRYPTO_STACK_MBEDTLS OR CONFIG_BT_NIMBLE_CRYPTO_STACK_MBEDTLS))
list(APPEND include_dirs list(APPEND include_dirs
porting/ext/tinycrypt/include porting/ext/tinycrypt/include
) )
list(APPEND srcs "porting/ext/tinycrypt/src/utils.c" list(APPEND srcs "porting/ext/tinycrypt/src/utils.c"
"porting/ext/tinycrypt/src/sha256.c" "porting/ext/tinycrypt/src/sha256.c"
"porting/ext/tinycrypt/src/ecc.c" "porting/ext/tinycrypt/src/ecc.c"
"porting/ext/tinycrypt/src/ctr_prng.c" "porting/ext/tinycrypt/src/ctr_prng.c"
"porting/ext/tinycrypt/src/ctr_mode.c" "porting/ext/tinycrypt/src/ctr_mode.c"
"porting/ext/tinycrypt/src/aes_decrypt.c" "porting/ext/tinycrypt/src/aes_decrypt.c"
"porting/ext/tinycrypt/src/aes_encrypt.c" "porting/ext/tinycrypt/src/aes_encrypt.c"
"porting/ext/tinycrypt/src/ccm_mode.c" "porting/ext/tinycrypt/src/ccm_mode.c"
"porting/ext/tinycrypt/src/ecc_dsa.c" "porting/ext/tinycrypt/src/ecc_dsa.c"
"porting/ext/tinycrypt/src/cmac_mode.c" "porting/ext/tinycrypt/src/cmac_mode.c"
"porting/ext/tinycrypt/src/ecc_dh.c" "porting/ext/tinycrypt/src/ecc_dh.c"
"porting/ext/tinycrypt/src/hmac_prng.c" "porting/ext/tinycrypt/src/hmac_prng.c"
"porting/ext/tinycrypt/src/ecc_platform_specific.c" "porting/ext/tinycrypt/src/ecc_platform_specific.c"
"porting/ext/tinycrypt/src/hmac.c" "porting/ext/tinycrypt/src/hmac.c"
"porting/ext/tinycrypt/src/cbc_mode.c") "porting/ext/tinycrypt/src/cbc_mode.c")
endif()
endif() endif()
if(CONFIG_BT_NIMBLE_ENABLED) if(CONFIG_BT_NIMBLE_ENABLED)
@@ -601,7 +598,7 @@ if(CONFIG_BT_ENABLED)
host/nimble/port/include host/nimble/port/include
) )
if(NOT((CONFIG_IDF_TARGET_ESP32C2 OR CONFIG_IDF_TARGET_ESP32H2) AND CONFIG_BT_CONTROLLER_ENABLED)) if(NOT CONFIG_BT_LE_CONTROLLER_NPL_OS_PORTING_SUPPORT)
list(APPEND srcs list(APPEND srcs
"host/nimble/nimble/porting/nimble/src/endian.c" "host/nimble/nimble/porting/nimble/src/endian.c"
"host/nimble/nimble/porting/nimble/src/os_mempool.c" "host/nimble/nimble/porting/nimble/src/os_mempool.c"
@@ -626,8 +623,6 @@ if(CONFIG_BT_ENABLED)
) )
endif() endif()
list(APPEND srcs list(APPEND srcs
"common/btc/profile/esp/blufi/nimble_host/esp_blufi.c") "common/btc/profile/esp/blufi/nimble_host/esp_blufi.c")

View File

@@ -8,11 +8,11 @@ menu "HCI Config"
config BT_LE_HCI_INTERFACE_USE_RAM config BT_LE_HCI_INTERFACE_USE_RAM
bool "ram" bool "ram"
help help
Use RAM as HCI interface Use RAM as HCI interface
config BT_LE_HCI_INTERFACE_USE_UART config BT_LE_HCI_INTERFACE_USE_UART
bool "uart" bool "uart"
help help
Use UART as HCI interface Use UART as HCI interface
endchoice endchoice
config BT_LE_HCI_UART_PORT config BT_LE_HCI_UART_PORT
@@ -52,7 +52,7 @@ menu "HCI Config"
depends on BT_LE_HCI_INTERFACE_USE_UART depends on BT_LE_HCI_INTERFACE_USE_UART
default 921600 default 921600
help help
HCI uart baud rate 115200 ~ 1000000 HCI uart baud rate 115200 ~ 1000000
choice BT_LE_HCI_UART_PARITY choice BT_LE_HCI_UART_PARITY
prompt "select uart parity" prompt "select uart parity"
@@ -62,15 +62,15 @@ menu "HCI Config"
config BT_LE_HCI_UART_UART_PARITY_DISABLE config BT_LE_HCI_UART_UART_PARITY_DISABLE
bool "PARITY_DISABLE" bool "PARITY_DISABLE"
help help
UART_PARITY_DISABLE UART_PARITY_DISABLE
config BT_LE_HCI_UART_UART_PARITY_EVEN config BT_LE_HCI_UART_UART_PARITY_EVEN
bool "PARITY_EVEN" bool "PARITY_EVEN"
help help
UART_PARITY_EVEN UART_PARITY_EVEN
config BT_LE_HCI_UART_UART_PARITY_ODD config BT_LE_HCI_UART_UART_PARITY_ODD
bool "PARITY_ODD" bool "PARITY_ODD"
help help
UART_PARITY_ODD UART_PARITY_ODD
endchoice endchoice
config BT_LE_HCI_UART_TASK_STACK_SIZE config BT_LE_HCI_UART_TASK_STACK_SIZE
@@ -78,29 +78,36 @@ menu "HCI Config"
depends on BT_LE_HCI_INTERFACE_USE_UART depends on BT_LE_HCI_INTERFACE_USE_UART
default 1000 default 1000
help help
Set the size of uart task stack Set the size of uart task stack
endmenu endmenu
config BT_LE_CONTROLLER_NPL_OS_PORTING_SUPPORT
bool
default y
help
Enable NPL porting for controller.
menuconfig BT_LE_50_FEATURE_SUPPORT menuconfig BT_LE_50_FEATURE_SUPPORT
bool "Enable BLE 5 feature" bool "Enable BLE 5 feature"
depends on !BT_NIMBLE_ENABLED depends on !BT_NIMBLE_ENABLED
default y default y
help help
Enable BLE 5 feature Enable BLE 5 feature
config BT_LE_LL_CFG_FEAT_LE_2M_PHY config BT_LE_LL_CFG_FEAT_LE_2M_PHY
bool "Enable 2M Phy" bool "Enable 2M Phy"
depends on BT_LE_50_FEATURE_SUPPORT depends on BT_LE_50_FEATURE_SUPPORT
default y default y
help help
Enable 2M-PHY Enable 2M-PHY
config BT_LE_LL_CFG_FEAT_LE_CODED_PHY config BT_LE_LL_CFG_FEAT_LE_CODED_PHY
bool "Enable coded Phy" bool "Enable coded Phy"
depends on BT_LE_50_FEATURE_SUPPORT depends on BT_LE_50_FEATURE_SUPPORT
default y default y
help help
Enable coded-PHY Enable coded-PHY
config BT_LE_EXT_ADV config BT_LE_EXT_ADV
bool "Enable extended advertising" bool "Enable extended advertising"
@@ -114,8 +121,7 @@ if BT_LE_EXT_ADV
config BT_LE_MAX_EXT_ADV_INSTANCES config BT_LE_MAX_EXT_ADV_INSTANCES
int "Maximum number of extended advertising instances." int "Maximum number of extended advertising instances."
range 0 4 range 0 4
default 1 if BT_LE_EXT_ADV default 1
default 0
depends on BT_LE_EXT_ADV depends on BT_LE_EXT_ADV
help help
Change this option to set maximum number of extended advertising Change this option to set maximum number of extended advertising
@@ -126,8 +132,7 @@ if BT_LE_EXT_ADV
config BT_LE_EXT_ADV_MAX_SIZE config BT_LE_EXT_ADV_MAX_SIZE
int "Maximum length of the advertising data." int "Maximum length of the advertising data."
range 0 1650 range 0 1650
default 1650 if BT_LE_EXT_ADV default 1650
default 0
depends on BT_LE_EXT_ADV depends on BT_LE_EXT_ADV
help help
Defines the length of the extended adv data. The value should not Defines the length of the extended adv data. The value should not
@@ -145,7 +150,7 @@ if BT_LE_EXT_ADV
depends on BT_LE_ENABLE_PERIODIC_ADV depends on BT_LE_ENABLE_PERIODIC_ADV
default y default y
help help
This enables controller transfer periodic sync events to host This enables controller transfer periodic sync events to host
endif endif
@@ -165,7 +170,7 @@ config BT_LE_MAX_PERIODIC_ADVERTISER_LIST
int "Maximum number of periodic advertiser list" int "Maximum number of periodic advertiser list"
depends on BT_LE_50_FEATURE_SUPPORT && !BT_NIMBLE_ENABLED depends on BT_LE_50_FEATURE_SUPPORT && !BT_NIMBLE_ENABLED
range 1 5 range 1 5
default 5 if BT_LE_50_FEATURE_SUPPORT default 5
help help
Set this option to set the upper limit for number of periodic advertiser list. Set this option to set the upper limit for number of periodic advertiser list.
@@ -182,22 +187,22 @@ menu "Memory Settings"
count. count.
config BT_LE_MSYS_1_BLOCK_SIZE config BT_LE_MSYS_1_BLOCK_SIZE
int "MSYS_1 Block Size" int "MSYS_1 Block Size"
default 256 default 256
help help
Dynamic memory size of block 1 Dynamic memory size of block 1
config BT_LE_MSYS_2_BLOCK_COUNT config BT_LE_MSYS_2_BLOCK_COUNT
int "MSYS_2 Block Count" int "MSYS_2 Block Count"
default 24 default 24
help help
Dynamic memory count Dynamic memory count
config BT_LE_MSYS_2_BLOCK_SIZE config BT_LE_MSYS_2_BLOCK_SIZE
int "MSYS_2 Block Size" int "MSYS_2 Block Size"
default 320 default 320
help help
Dynamic memory size of block 2 Dynamic memory size of block 2
config BT_LE_ACL_BUF_COUNT config BT_LE_ACL_BUF_COUNT
int "ACL Buffer count" int "ACL Buffer count"
@@ -245,21 +250,21 @@ config BT_LE_CONTROLLER_TASK_STACK_SIZE
default 5120 if BLE_MESH default 5120 if BLE_MESH
default 4096 default 4096
help help
This configures stack size of NimBLE controller task This configures stack size of NimBLE controller task
config BT_LE_LL_RESOLV_LIST_SIZE config BT_LE_LL_RESOLV_LIST_SIZE
int "BLE LL Resolving list size" int "BLE LL Resolving list size"
range 1 5 range 1 5
default 4 default 4
help help
Configure the size of resolving list used in link layer. Configure the size of resolving list used in link layer.
menuconfig BT_LE_SECURITY_ENABLE menuconfig BT_LE_SECURITY_ENABLE
bool "Enable BLE SM feature" bool "Enable BLE SM feature"
depends on !BT_NIMBLE_ENABLED depends on !BT_NIMBLE_ENABLED
default y default y
help help
Enable BLE sm feature Enable BLE sm feature
config BT_LE_SM_LEGACY config BT_LE_SM_LEGACY
bool "Security manager legacy pairing" bool "Security manager legacy pairing"
@@ -289,7 +294,7 @@ config BT_LE_LL_CFG_FEAT_LE_ENCRYPTION
depends on BT_LE_SECURITY_ENABLE depends on BT_LE_SECURITY_ENABLE
default y default y
help help
Enable encryption connection Enable encryption connection
config BT_LE_CRYPTO_STACK_MBEDTLS config BT_LE_CRYPTO_STACK_MBEDTLS
bool "Override TinyCrypt with mbedTLS for crypto computations" bool "Override TinyCrypt with mbedTLS for crypto computations"
@@ -308,21 +313,21 @@ config BT_LE_WHITELIST_SIZE
depends on !BT_NIMBLE_ENABLED depends on !BT_NIMBLE_ENABLED
help help
BLE list size BLE list size
config BT_LE_LL_DUP_SCAN_LIST_COUNT config BT_LE_LL_DUP_SCAN_LIST_COUNT
int "BLE duplicate scan list count" int "BLE duplicate scan list count"
range 1 100 range 1 100
default 20 default 20
help help
config the max count of duplicate scan list config the max count of duplicate scan list
config BT_LE_LL_SCA config BT_LE_LL_SCA
int "BLE Sleep clock accuracy" int "BLE Sleep clock accuracy"
range 0 500 range 0 500
default 60 default 60
help help
Sleep clock accuracy of our device (in ppm) Sleep clock accuracy of our device (in ppm)
config BT_LE_MAX_CONNECTIONS config BT_LE_MAX_CONNECTIONS
int "Maximum number of concurrent connections" int "Maximum number of concurrent connections"
@@ -341,23 +346,23 @@ choice BT_LE_COEX_PHY_CODED_TX_RX_TLIM
default BT_LE_COEX_PHY_CODED_TX_RX_TLIM_DIS default BT_LE_COEX_PHY_CODED_TX_RX_TLIM_DIS
depends on !BT_NIMBLE_ENABLED depends on !BT_NIMBLE_ENABLED
help help
When using PHY-Coded in BLE connection, limitation on max tx/rx time can be applied to When using PHY-Coded in BLE connection, limitation on max tx/rx time can be applied to
better avoid dramatic performance deterioration of Wi-Fi. better avoid dramatic performance deterioration of Wi-Fi.
config BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EN config BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EN
bool "Force Enable" bool "Force Enable"
help help
Always enable the limitation on max tx/rx time for Coded-PHY connection Always enable the limitation on max tx/rx time for Coded-PHY connection
config BT_LE_COEX_PHY_CODED_TX_RX_TLIM_DIS config BT_LE_COEX_PHY_CODED_TX_RX_TLIM_DIS
bool "Force Disable" bool "Force Disable"
help help
Disable the limitation on max tx/rx time for Coded-PHY connection Disable the limitation on max tx/rx time for Coded-PHY connection
endchoice endchoice
config BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF config BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF
int int
default 0 if !BT_NIMBLE_ENABLED depends on !BT_NIMBLE_ENABLED
default 1 if BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EN default 1 if BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EN
default 0 if BT_LE_COEX_PHY_CODED_TX_RX_TLIM_DIS default 0 if BT_LE_COEX_PHY_CODED_TX_RX_TLIM_DIS

View File

@@ -8,11 +8,11 @@ menu "HCI Config"
config BT_LE_HCI_INTERFACE_USE_RAM config BT_LE_HCI_INTERFACE_USE_RAM
bool "ram" bool "ram"
help help
Use RAM as HCI interface Use RAM as HCI interface
config BT_LE_HCI_INTERFACE_USE_UART config BT_LE_HCI_INTERFACE_USE_UART
bool "uart" bool "uart"
help help
Use UART as HCI interface Use UART as HCI interface
endchoice endchoice
config BT_LE_HCI_UART_PORT config BT_LE_HCI_UART_PORT
@@ -52,7 +52,7 @@ menu "HCI Config"
depends on BT_LE_HCI_INTERFACE_USE_UART depends on BT_LE_HCI_INTERFACE_USE_UART
default 921600 default 921600
help help
HCI uart baud rate 115200 ~ 1000000 HCI uart baud rate 115200 ~ 1000000
choice BT_LE_HCI_UART_PARITY choice BT_LE_HCI_UART_PARITY
prompt "select uart parity" prompt "select uart parity"
@@ -62,15 +62,15 @@ menu "HCI Config"
config BT_LE_HCI_UART_UART_PARITY_DISABLE config BT_LE_HCI_UART_UART_PARITY_DISABLE
bool "PARITY_DISABLE" bool "PARITY_DISABLE"
help help
UART_PARITY_DISABLE UART_PARITY_DISABLE
config BT_LE_HCI_UART_UART_PARITY_EVEN config BT_LE_HCI_UART_UART_PARITY_EVEN
bool "PARITY_EVEN" bool "PARITY_EVEN"
help help
UART_PARITY_EVEN UART_PARITY_EVEN
config BT_LE_HCI_UART_UART_PARITY_ODD config BT_LE_HCI_UART_UART_PARITY_ODD
bool "PARITY_ODD" bool "PARITY_ODD"
help help
UART_PARITY_ODD UART_PARITY_ODD
endchoice endchoice
config BT_LE_HCI_UART_TASK_STACK_SIZE config BT_LE_HCI_UART_TASK_STACK_SIZE
@@ -78,29 +78,36 @@ menu "HCI Config"
depends on BT_LE_HCI_INTERFACE_USE_UART depends on BT_LE_HCI_INTERFACE_USE_UART
default 1000 default 1000
help help
Set the size of uart task stack Set the size of uart task stack
endmenu endmenu
config BT_LE_CONTROLLER_NPL_OS_PORTING_SUPPORT
bool
default y
help
Enable NPL porting for controller.
menuconfig BT_LE_50_FEATURE_SUPPORT menuconfig BT_LE_50_FEATURE_SUPPORT
bool "Enable BLE 5 feature" bool "Enable BLE 5 feature"
depends on !BT_NIMBLE_ENABLED depends on !BT_NIMBLE_ENABLED
default y default y
help help
Enable BLE 5 feature Enable BLE 5 feature
config BT_LE_LL_CFG_FEAT_LE_2M_PHY config BT_LE_LL_CFG_FEAT_LE_2M_PHY
bool "Enable 2M Phy" bool "Enable 2M Phy"
depends on BT_LE_50_FEATURE_SUPPORT depends on BT_LE_50_FEATURE_SUPPORT
default y default y
help help
Enable 2M-PHY Enable 2M-PHY
config BT_LE_LL_CFG_FEAT_LE_CODED_PHY config BT_LE_LL_CFG_FEAT_LE_CODED_PHY
bool "Enable coded Phy" bool "Enable coded Phy"
depends on BT_LE_50_FEATURE_SUPPORT depends on BT_LE_50_FEATURE_SUPPORT
default y default y
help help
Enable coded-PHY Enable coded-PHY
config BT_LE_EXT_ADV config BT_LE_EXT_ADV
bool "Enable extended advertising" bool "Enable extended advertising"
@@ -114,8 +121,7 @@ if BT_LE_EXT_ADV
config BT_LE_MAX_EXT_ADV_INSTANCES config BT_LE_MAX_EXT_ADV_INSTANCES
int "Maximum number of extended advertising instances." int "Maximum number of extended advertising instances."
range 0 4 range 0 4
default 1 if BT_LE_EXT_ADV default 1
default 0
depends on BT_LE_EXT_ADV depends on BT_LE_EXT_ADV
help help
Change this option to set maximum number of extended advertising Change this option to set maximum number of extended advertising
@@ -126,8 +132,7 @@ if BT_LE_EXT_ADV
config BT_LE_EXT_ADV_MAX_SIZE config BT_LE_EXT_ADV_MAX_SIZE
int "Maximum length of the advertising data." int "Maximum length of the advertising data."
range 0 1650 range 0 1650
default 1650 if BT_LE_EXT_ADV default 1650
default 0
depends on BT_LE_EXT_ADV depends on BT_LE_EXT_ADV
help help
Defines the length of the extended adv data. The value should not Defines the length of the extended adv data. The value should not
@@ -145,7 +150,7 @@ if BT_LE_EXT_ADV
depends on BT_LE_ENABLE_PERIODIC_ADV depends on BT_LE_ENABLE_PERIODIC_ADV
default y default y
help help
This enables controller transfer periodic sync events to host This enables controller transfer periodic sync events to host
endif endif
@@ -165,7 +170,7 @@ config BT_LE_MAX_PERIODIC_ADVERTISER_LIST
int "Maximum number of periodic advertiser list" int "Maximum number of periodic advertiser list"
depends on BT_LE_50_FEATURE_SUPPORT && !BT_NIMBLE_ENABLED depends on BT_LE_50_FEATURE_SUPPORT && !BT_NIMBLE_ENABLED
range 1 5 range 1 5
default 5 if BT_LE_50_FEATURE_SUPPORT default 5
help help
Set this option to set the upper limit for number of periodic advertiser list. Set this option to set the upper limit for number of periodic advertiser list.
@@ -182,22 +187,22 @@ menu "Memory Settings"
count. count.
config BT_LE_MSYS_1_BLOCK_SIZE config BT_LE_MSYS_1_BLOCK_SIZE
int "MSYS_1 Block Size" int "MSYS_1 Block Size"
default 256 default 256
help help
Dynamic memory size of block 1 Dynamic memory size of block 1
config BT_LE_MSYS_2_BLOCK_COUNT config BT_LE_MSYS_2_BLOCK_COUNT
int "MSYS_2 Block Count" int "MSYS_2 Block Count"
default 24 default 24
help help
Dynamic memory count Dynamic memory count
config BT_LE_MSYS_2_BLOCK_SIZE config BT_LE_MSYS_2_BLOCK_SIZE
int "MSYS_2 Block Size" int "MSYS_2 Block Size"
default 320 default 320
help help
Dynamic memory size of block 2 Dynamic memory size of block 2
config BT_LE_ACL_BUF_COUNT config BT_LE_ACL_BUF_COUNT
int "ACL Buffer count" int "ACL Buffer count"
@@ -245,21 +250,21 @@ config BT_LE_CONTROLLER_TASK_STACK_SIZE
default 5120 if BLE_MESH default 5120 if BLE_MESH
default 4096 default 4096
help help
This configures stack size of NimBLE controller task This configures stack size of NimBLE controller task
config BT_LE_LL_RESOLV_LIST_SIZE config BT_LE_LL_RESOLV_LIST_SIZE
int "BLE LL Resolving list size" int "BLE LL Resolving list size"
range 1 5 range 1 5
default 4 default 4
help help
Configure the size of resolving list used in link layer. Configure the size of resolving list used in link layer.
menuconfig BT_LE_SECURITY_ENABLE menuconfig BT_LE_SECURITY_ENABLE
bool "Enable BLE SM feature" bool "Enable BLE SM feature"
depends on !BT_NIMBLE_ENABLED depends on !BT_NIMBLE_ENABLED
default y default y
help help
Enable BLE sm feature Enable BLE sm feature
config BT_LE_SM_LEGACY config BT_LE_SM_LEGACY
bool "Security manager legacy pairing" bool "Security manager legacy pairing"
@@ -289,7 +294,7 @@ config BT_LE_LL_CFG_FEAT_LE_ENCRYPTION
depends on BT_LE_SECURITY_ENABLE depends on BT_LE_SECURITY_ENABLE
default y default y
help help
Enable encryption connection Enable encryption connection
config BT_LE_CRYPTO_STACK_MBEDTLS config BT_LE_CRYPTO_STACK_MBEDTLS
bool "Override TinyCrypt with mbedTLS for crypto computations" bool "Override TinyCrypt with mbedTLS for crypto computations"
@@ -308,21 +313,21 @@ config BT_LE_WHITELIST_SIZE
depends on !BT_NIMBLE_ENABLED depends on !BT_NIMBLE_ENABLED
help help
BLE list size BLE list size
config BT_LE_LL_DUP_SCAN_LIST_COUNT config BT_LE_LL_DUP_SCAN_LIST_COUNT
int "BLE duplicate scan list count" int "BLE duplicate scan list count"
range 1 100 range 1 100
default 20 default 20
help help
config the max count of duplicate scan list config the max count of duplicate scan list
config BT_LE_LL_SCA config BT_LE_LL_SCA
int "BLE Sleep clock accuracy" int "BLE Sleep clock accuracy"
range 0 500 range 0 500
default 60 default 60
help help
Sleep clock accuracy of our device (in ppm) Sleep clock accuracy of our device (in ppm)
config BT_LE_MAX_CONNECTIONS config BT_LE_MAX_CONNECTIONS
int "Maximum number of concurrent connections" int "Maximum number of concurrent connections"
@@ -341,23 +346,23 @@ choice BT_LE_COEX_PHY_CODED_TX_RX_TLIM
default BT_LE_COEX_PHY_CODED_TX_RX_TLIM_DIS default BT_LE_COEX_PHY_CODED_TX_RX_TLIM_DIS
depends on !BT_NIMBLE_ENABLED depends on !BT_NIMBLE_ENABLED
help help
When using PHY-Coded in BLE connection, limitation on max tx/rx time can be applied to When using PHY-Coded in BLE connection, limitation on max tx/rx time can be applied to
better avoid dramatic performance deterioration of Wi-Fi. better avoid dramatic performance deterioration of Wi-Fi.
config BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EN config BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EN
bool "Force Enable" bool "Force Enable"
help help
Always enable the limitation on max tx/rx time for Coded-PHY connection Always enable the limitation on max tx/rx time for Coded-PHY connection
config BT_LE_COEX_PHY_CODED_TX_RX_TLIM_DIS config BT_LE_COEX_PHY_CODED_TX_RX_TLIM_DIS
bool "Force Disable" bool "Force Disable"
help help
Disable the limitation on max tx/rx time for Coded-PHY connection Disable the limitation on max tx/rx time for Coded-PHY connection
endchoice endchoice
config BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF config BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF
int int
default 0 if !BT_NIMBLE_ENABLED depends on !BT_NIMBLE_ENABLED
default 1 if BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EN default 1 if BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EN
default 0 if BT_LE_COEX_PHY_CODED_TX_RX_TLIM_DIS default 0 if BT_LE_COEX_PHY_CODED_TX_RX_TLIM_DIS

View File

@@ -20,6 +20,7 @@
#ifndef _NIMBLE_PORT_H #ifndef _NIMBLE_PORT_H
#define _NIMBLE_PORT_H #define _NIMBLE_PORT_H
#include "esp_err.h"
#include "nimble/nimble_npl.h" #include "nimble/nimble_npl.h"
#define NIMBLE_CORE (CONFIG_BT_NIMBLE_PINNED_TO_CORE < portNUM_PROCESSORS ? CONFIG_BT_NIMBLE_PINNED_TO_CORE : tskNO_AFFINITY) #define NIMBLE_CORE (CONFIG_BT_NIMBLE_PINNED_TO_CORE < portNUM_PROCESSORS ? CONFIG_BT_NIMBLE_PINNED_TO_CORE : tskNO_AFFINITY)
@@ -42,7 +43,6 @@ int nimble_port_stop(void);
struct ble_npl_eventq *nimble_port_get_dflt_eventq(void); struct ble_npl_eventq *nimble_port_get_dflt_eventq(void);
struct ble_hs_cfg;
esp_err_t esp_nimble_init(); esp_err_t esp_nimble_init();
esp_err_t esp_nimble_enable(void *host_task); esp_err_t esp_nimble_enable(void *host_task);