1
0
forked from me/IronOS

Fix c++ for config

This commit is contained in:
Ben V. Brown
2022-11-20 17:59:08 +11:00
parent 3f34d240fe
commit d97313cac8

View File

@@ -2,6 +2,9 @@
#define BLE_CONFIG_H #define BLE_CONFIG_H
#include "FreeRTOSConfig.h" #include "FreeRTOSConfig.h"
#ifdef __cplusplus
extern "C" {
#endif
/** /**
* CONFIG_BLUETOOTH: Enable the bluetooh stack * CONFIG_BLUETOOTH: Enable the bluetooh stack
@@ -54,9 +57,9 @@
#ifndef CONFIG_BT_RX_STACK_SIZE #ifndef CONFIG_BT_RX_STACK_SIZE
#if defined(CONFIG_BT_MESH) #if defined(CONFIG_BT_MESH)
#define CONFIG_BT_RX_STACK_SIZE 3072 //2048//1536//1024 #define CONFIG_BT_RX_STACK_SIZE 3072 // 2048//1536//1024
#else #else
#define CONFIG_BT_RX_STACK_SIZE 2048 //1536//1024 #define CONFIG_BT_RX_STACK_SIZE 2048 // 1536//1024
#endif #endif
#endif #endif
@@ -74,7 +77,7 @@
*/ */
#ifndef CONFIG_BT_HCI_TX_STACK_SIZE #ifndef CONFIG_BT_HCI_TX_STACK_SIZE
#define CONFIG_BT_HCI_TX_STACK_SIZE 1536 //1024//200 #define CONFIG_BT_HCI_TX_STACK_SIZE 1536 // 1024//200
#endif #endif
/** /**
@@ -96,63 +99,63 @@
#endif #endif
/** /**
* CONFIG_BT_HCI_CMD_COUNT: hci cmd buffer count,range 2 to 64 * CONFIG_BT_HCI_CMD_COUNT: hci cmd buffer count,range 2 to 64
*/ */
#ifndef CONFIG_BT_HCI_CMD_COUNT #ifndef CONFIG_BT_HCI_CMD_COUNT
#define CONFIG_BT_HCI_CMD_COUNT 2 #define CONFIG_BT_HCI_CMD_COUNT 2
#endif #endif
/** /**
* CONFIG_BT_RX_BUF_COUNT: number of buffer for incoming ACL packages or HCI * CONFIG_BT_RX_BUF_COUNT: number of buffer for incoming ACL packages or HCI
* events,range 2 to 255 * events,range 2 to 255
*/ */
#ifndef CONFIG_BT_RX_BUF_COUNT #ifndef CONFIG_BT_RX_BUF_COUNT
#if defined(CONFIG_BT_MESH) #if defined(CONFIG_BT_MESH)
#define CONFIG_BT_RX_BUF_COUNT 10 #define CONFIG_BT_RX_BUF_COUNT 10
#else #else
#define CONFIG_BT_RX_BUF_COUNT 5 #define CONFIG_BT_RX_BUF_COUNT 5
#endif //CONFIG_BT_MESH #endif // CONFIG_BT_MESH
#endif #endif
/** /**
* CONFIG_BT_RX_BUF_RSV_COUNT: number of buffer that HCI_LE_EVENT reserved * CONFIG_BT_RX_BUF_RSV_COUNT: number of buffer that HCI_LE_EVENT reserved
* events,range 1 to CONFIG_BT_RX_BUF_COUNT * events,range 1 to CONFIG_BT_RX_BUF_COUNT
*/ */
#define CONFIG_BT_RX_BUF_RSV_COUNT (1) #define CONFIG_BT_RX_BUF_RSV_COUNT (1)
#if (CONFIG_BT_RX_BUF_RSV_COUNT >= CONFIG_BT_RX_BUF_COUNT) #if (CONFIG_BT_RX_BUF_RSV_COUNT >= CONFIG_BT_RX_BUF_COUNT)
#error "CONFIG_BT_RX_BUF_RSV_COUNT config error" #error "CONFIG_BT_RX_BUF_RSV_COUNT config error"
#endif #endif
/** /**
* CONFIG_BT_RX_BUF_LEN: the max length for rx buffer * CONFIG_BT_RX_BUF_LEN: the max length for rx buffer
* range 73 to 2000 * range 73 to 2000
*/ */
#ifndef CONFIG_BT_RX_BUF_LEN #ifndef CONFIG_BT_RX_BUF_LEN
#if defined(CONFIG_BT_BREDR) #if defined(CONFIG_BT_BREDR)
#define CONFIG_BT_RX_BUF_LEN 680 //CONFIG_BT_L2CAP_RX_MTU + 4 + 4 #define CONFIG_BT_RX_BUF_LEN 680 // CONFIG_BT_L2CAP_RX_MTU + 4 + 4
#else #else
#define CONFIG_BT_RX_BUF_LEN 255 //108 //76 #define CONFIG_BT_RX_BUF_LEN 255 // 108 //76
#endif #endif
#endif #endif
/** /**
* CONFIG_BT_CENTRAL: Enable central Role * CONFIG_BT_CENTRAL: Enable central Role
*/ */
#ifdef CONFIG_BT_CENTRAL #ifdef CONFIG_BT_CENTRAL
#undef CONFIG_BT_CENTRAL #undef CONFIG_BT_CENTRAL
#define CONFIG_BT_CENTRAL 1 #define CONFIG_BT_CENTRAL 1
#endif #endif
/** /**
* CONFIG_BT_WHITELIST : Enable autoconnect whilt list device */ * CONFIG_BT_WHITELIST : Enable autoconnect whilt list device */
#ifndef CONFIG_BT_WHITELIST #ifndef CONFIG_BT_WHITELIST
#define CONFIG_BT_WHITELIST 1 #define CONFIG_BT_WHITELIST 1
#endif #endif
/** /**
* CONFIG_BT_PERIPHERAL: Enable peripheral Role * CONFIG_BT_PERIPHERAL: Enable peripheral Role
*/ */
#ifdef CONFIG_BT_PERIPHERAL #ifdef CONFIG_BT_PERIPHERAL
#undef CONFIG_BT_PERIPHERAL #undef CONFIG_BT_PERIPHERAL
#define CONFIG_BT_PERIPHERAL 1 #define CONFIG_BT_PERIPHERAL 1
@@ -175,29 +178,29 @@
#endif #endif
#endif #endif
/** /**
* CONFIG_BLUETOOTH_L2CAP_TX_BUF_COUNT: number of buffer for outgoing L2CAP packages * CONFIG_BLUETOOTH_L2CAP_TX_BUF_COUNT: number of buffer for outgoing L2CAP packages
* range 2 to 255 * range 2 to 255
*/ */
#ifndef CONFIG_BT_L2CAP_TX_BUF_COUNT #ifndef CONFIG_BT_L2CAP_TX_BUF_COUNT
#define CONFIG_BT_L2CAP_TX_BUF_COUNT CFG_BLE_TX_BUFF_DATA #define CONFIG_BT_L2CAP_TX_BUF_COUNT CFG_BLE_TX_BUFF_DATA
#endif #endif
/** /**
* CONFIG_BT_L2CAP_TX_MTU: Max L2CAP MTU for L2CAP tx buffer * CONFIG_BT_L2CAP_TX_MTU: Max L2CAP MTU for L2CAP tx buffer
* range 65 to 2000 if SMP enabled,otherwise range 23 to 2000 * range 65 to 2000 if SMP enabled,otherwise range 23 to 2000
*/ */
#ifndef CONFIG_BT_L2CAP_TX_MTU #ifndef CONFIG_BT_L2CAP_TX_MTU
#ifdef CONFIG_BT_SMP #ifdef CONFIG_BT_SMP
#define CONFIG_BT_L2CAP_TX_MTU 247 //96 //65 #define CONFIG_BT_L2CAP_TX_MTU 247 // 96 //65
#else #else
#define CONFIG_BT_L2CAP_TX_MTU 247 //23 #define CONFIG_BT_L2CAP_TX_MTU 247 // 23
#endif #endif
#endif #endif
/** /**
* CONFIG_BT_L2CAP_TX_USER_DATA_SIZE: the max length for L2CAP tx buffer user data size * CONFIG_BT_L2CAP_TX_USER_DATA_SIZE: the max length for L2CAP tx buffer user data size
* range 4 to 65535 * range 4 to 65535
*/ */
#ifndef CONFIG_BT_L2CAP_TX_USER_DATA_SIZE #ifndef CONFIG_BT_L2CAP_TX_USER_DATA_SIZE
#define CONFIG_BT_L2CAP_TX_USER_DATA_SIZE 4 #define CONFIG_BT_L2CAP_TX_USER_DATA_SIZE 4
#endif #endif
@@ -206,53 +209,53 @@
#define CONFIG_BT_ATT_PREPARE_COUNT 64 #define CONFIG_BT_ATT_PREPARE_COUNT 64
#else #else
/** /**
* CONFIG_BT_ATT_PREPARE_COUNT: Number of buffers available for ATT prepare write, setting * CONFIG_BT_ATT_PREPARE_COUNT: Number of buffers available for ATT prepare write, setting
* this to 0 disables GATT long/reliable writes. * this to 0 disables GATT long/reliable writes.
* range 0 to 64 * range 0 to 64
*/ */
#ifndef CONFIG_BT_ATT_PREPARE_COUNT #ifndef CONFIG_BT_ATT_PREPARE_COUNT
#define CONFIG_BT_ATT_PREPARE_COUNT 0 #define CONFIG_BT_ATT_PREPARE_COUNT 0
#endif #endif
#endif #endif
/** /**
* CONFIG_BLUETOOTH_SMP:Eable the Security Manager Protocol * CONFIG_BLUETOOTH_SMP:Eable the Security Manager Protocol
* (SMP), making it possible to pair devices over LE * (SMP), making it possible to pair devices over LE
*/ */
#ifdef CONFIG_BT_SMP #ifdef CONFIG_BT_SMP
#undef CONFIG_BT_SMP #undef CONFIG_BT_SMP
#define CONFIG_BT_SMP 1 #define CONFIG_BT_SMP 1
/** /**
* CONFIG_BT_SIGNING:enables data signing which is used for transferring * CONFIG_BT_SIGNING:enables data signing which is used for transferring
* authenticated data in an unencrypted connection * authenticated data in an unencrypted connection
*/ */
#ifdef CONFIG_BT_SIGNING #ifdef CONFIG_BT_SIGNING
#undef CONFIG_BT_SIGNING #undef CONFIG_BT_SIGNING
#define CONFIG_BT_SIGNING 1 #define CONFIG_BT_SIGNING 1
#endif #endif
/** /**
* CONFIG_BT_SMP_SC_ONLY:enables support for Secure Connection Only Mode. In this * CONFIG_BT_SMP_SC_ONLY:enables support for Secure Connection Only Mode. In this
* mode device shall only use Security Mode 1 Level 4 with exception * mode device shall only use Security Mode 1 Level 4 with exception
* for services that only require Security Mode 1 Level 1 (no security). * for services that only require Security Mode 1 Level 1 (no security).
* Security Mode 1 Level 4 stands for authenticated LE Secure Connections * Security Mode 1 Level 4 stands for authenticated LE Secure Connections
* pairing with encryption. Enabling this option disables legacy pairing * pairing with encryption. Enabling this option disables legacy pairing
*/ */
#ifdef CONFIG_BT_SMP_SC_ONLY #ifdef CONFIG_BT_SMP_SC_ONLY
#undef CONFIG_BT_SMP_SC_ONLY #undef CONFIG_BT_SMP_SC_ONLY
#define CONFIG_BT_SMP_SC_ONLY 1 #define CONFIG_BT_SMP_SC_ONLY 1
#endif #endif
/** /**
* CONFIG_BT_USE_DEBUG_KEYS:This option places Security Manager in * CONFIG_BT_USE_DEBUG_KEYS:This option places Security Manager in
* a Debug Mode. In this mode predefined * a Debug Mode. In this mode predefined
* Diffie-Hellman private/public key pair is used as described * Diffie-Hellman private/public key pair is used as described
* in Core Specification Vol. 3, Part H, 2.3.5.6.1. This option should * in Core Specification Vol. 3, Part H, 2.3.5.6.1. This option should
* only be enabled for debugging and should never be used in production. * only be enabled for debugging and should never be used in production.
* If this option is enabled anyone is able to decipher encrypted air * If this option is enabled anyone is able to decipher encrypted air
* traffic. * traffic.
*/ */
#ifdef CONFIG_BT_USE_DEBUG_KEYS #ifdef CONFIG_BT_USE_DEBUG_KEYS
#ifndef CONFIG_BT_TINYCRYPT_ECC #ifndef CONFIG_BT_TINYCRYPT_ECC
#error "CONFIG_BT_USE_DEBUG_KEYS depends on CONFIG_BT_TINYCRYPT_ECC" #error "CONFIG_BT_USE_DEBUG_KEYS depends on CONFIG_BT_TINYCRYPT_ECC"
@@ -262,9 +265,9 @@
#endif #endif
/** /**
* CONFIG_BT_L2CAP_DYNAMIC_CHANNEL:enables support for LE Connection * CONFIG_BT_L2CAP_DYNAMIC_CHANNEL:enables support for LE Connection
* oriented Channels,allowing the creation of dynamic L2CAP Channels * oriented Channels,allowing the creation of dynamic L2CAP Channels
*/ */
#ifdef CONFIG_BT_L2CAP_DYNAMIC_CHANNEL #ifdef CONFIG_BT_L2CAP_DYNAMIC_CHANNEL
#undef CONFIG_BT_L2CAP_DYNAMIC_CHANNEL #undef CONFIG_BT_L2CAP_DYNAMIC_CHANNEL
#define CONFIG_BT_L2CAP_DYNAMIC_CHANNEL 1 #define CONFIG_BT_L2CAP_DYNAMIC_CHANNEL 1
@@ -273,9 +276,9 @@
#endif #endif
/** /**
* CONFIG_BT_PRIVACY:Enable local Privacy Feature support. This makes it possible * CONFIG_BT_PRIVACY:Enable local Privacy Feature support. This makes it possible
* to use Resolvable Private Addresses (RPAs). * to use Resolvable Private Addresses (RPAs).
*/ */
#ifdef CONFIG_BT_PRIVACY #ifdef CONFIG_BT_PRIVACY
#ifndef CONFIG_BT_SMP #ifndef CONFIG_BT_SMP
#error "CONFIG_BT_PRIVACY depends on CONFIG_BT_SMP" #error "CONFIG_BT_PRIVACY depends on CONFIG_BT_SMP"
@@ -284,65 +287,65 @@
#define CONFIG_BT_PRIVACY 1 #define CONFIG_BT_PRIVACY 1
/** /**
* CONFIG_BT_RPA_TIMEOUT:Resolvable Private Address timeout * CONFIG_BT_RPA_TIMEOUT:Resolvable Private Address timeout
* range 1 to 65535,seconds * range 1 to 65535,seconds
*/ */
#ifndef CONFIG_BT_RPA_TIMEOUT #ifndef CONFIG_BT_RPA_TIMEOUT
#define CONFIG_BT_RPA_TIMEOUT 900 #define CONFIG_BT_RPA_TIMEOUT 900
#endif #endif
#endif #endif
/** /**
* CONFIG_BT_GATT_DYNAMIC_DB:enables GATT services to be added dynamically to database * CONFIG_BT_GATT_DYNAMIC_DB:enables GATT services to be added dynamically to database
*/ */
#ifdef CONFIG_BT_GATT_DYNAMIC_DB #ifdef CONFIG_BT_GATT_DYNAMIC_DB
#undef CONFIG_BT_GATT_DYNAMIC_DB #undef CONFIG_BT_GATT_DYNAMIC_DB
#define CONFIG_BT_GATT_DYNAMIC_DB 1 #define CONFIG_BT_GATT_DYNAMIC_DB 1
#endif #endif
/** /**
* CONFIG_BT_GATT_CLIENT:GATT client role support * CONFIG_BT_GATT_CLIENT:GATT client role support
*/ */
#ifdef CONFIG_BT_GATT_CLIENT #ifdef CONFIG_BT_GATT_CLIENT
#undef CONFIG_BT_GATT_CLIENT #undef CONFIG_BT_GATT_CLIENT
#define CONFIG_BT_GATT_CLIENT 1 #define CONFIG_BT_GATT_CLIENT 1
#endif #endif
/** /**
* CONFIG_BT_MAX_PAIRED:Maximum number of paired devices * CONFIG_BT_MAX_PAIRED:Maximum number of paired devices
* range 1 to 128 * range 1 to 128
*/ */
#ifndef CONFIG_BT_MAX_PAIRED #ifndef CONFIG_BT_MAX_PAIRED
#define CONFIG_BT_MAX_PAIRED CONFIG_BT_MAX_CONN #define CONFIG_BT_MAX_PAIRED CONFIG_BT_MAX_CONN
#endif #endif
#endif #endif
/** /**
* If this option is set TinyCrypt library is used for emulating the * If this option is set TinyCrypt library is used for emulating the
* ECDH HCI commands and events needed by e.g. LE Secure Connections. * ECDH HCI commands and events needed by e.g. LE Secure Connections.
* In builds including the BLE Host, if not set the controller crypto is * In builds including the BLE Host, if not set the controller crypto is
* used for ECDH and if the controller doesn't support the required HCI * used for ECDH and if the controller doesn't support the required HCI
* commands the LE Secure Connections support will be disabled. * commands the LE Secure Connections support will be disabled.
* In builds including the HCI Raw interface and the BLE Controller, this * In builds including the HCI Raw interface and the BLE Controller, this
* option injects support for the 2 HCI commands required for LE Secure * option injects support for the 2 HCI commands required for LE Secure
* Connections so that Hosts can make use of those * Connections so that Hosts can make use of those
*/ */
#ifdef CONFIG_BT_TINYCRYPT_ECC #ifdef CONFIG_BT_TINYCRYPT_ECC
#undef CONFIG_BT_TINYCRYPT_ECC #undef CONFIG_BT_TINYCRYPT_ECC
#define CONFIG_BT_TINYCRYPT_ECC 1 #define CONFIG_BT_TINYCRYPT_ECC 1
#endif #endif
/** /**
* CONFIG_BLUETOOTH_MAX_CONN:Maximum number of connections * CONFIG_BLUETOOTH_MAX_CONN:Maximum number of connections
* range 1 to 128 * range 1 to 128
*/ */
#ifndef CONFIG_BT_MAX_CONN #ifndef CONFIG_BT_MAX_CONN
#define CONFIG_BT_MAX_CONN CFG_CON #define CONFIG_BT_MAX_CONN CFG_CON
#endif #endif
/** /**
* CONFIG_BT_DEVICE_NAME:Bluetooth device name. Name can be up * CONFIG_BT_DEVICE_NAME:Bluetooth device name. Name can be up
* to 248 bytes long (excluding NULL termination). Can be empty string * to 248 bytes long (excluding NULL termination). Can be empty string
*/ */
#ifndef CONFIG_BT_DEVICE_NAME #ifndef CONFIG_BT_DEVICE_NAME
#if defined(CONFIG_AUTO_PTS) #if defined(CONFIG_AUTO_PTS)
#define CONFIG_BT_DEVICE_NAME "AUTO_PTS_TEST0123456789012345" #define CONFIG_BT_DEVICE_NAME "AUTO_PTS_TEST0123456789012345"
@@ -357,8 +360,8 @@
#endif #endif
#endif #endif
/** /**
* CONFIG_BT_CONTROLLER_NAME:Bluetooth controller name. * CONFIG_BT_CONTROLLER_NAME:Bluetooth controller name.
*/ */
#ifndef CONFIG_BT_CONTROLLER_NAME #ifndef CONFIG_BT_CONTROLLER_NAME
#if defined(BL602) #if defined(BL602)
#define CONFIG_BT_CONTROLLER_NAME "BL602-BLE-DEV" #define CONFIG_BT_CONTROLLER_NAME "BL602-BLE-DEV"
@@ -368,33 +371,33 @@
#endif #endif
/** /**
* CONFIG_BT_MAX_SCO_CONN:Maximum number of simultaneous SCO connections. * CONFIG_BT_MAX_SCO_CONN:Maximum number of simultaneous SCO connections.
*/ */
#ifndef CONFIG_BT_MAX_SCO_CONN #ifndef CONFIG_BT_MAX_SCO_CONN
#define CONFIG_BT_MAX_SCO_CONN CONFIG_MAX_SCO #define CONFIG_BT_MAX_SCO_CONN CONFIG_MAX_SCO
#endif #endif
/** /**
* CONFIG_BT_WORK_QUEUE_STACK_SIZE:Work queue stack size. * CONFIG_BT_WORK_QUEUE_STACK_SIZE:Work queue stack size.
*/ */
#ifndef CONFIG_BT_WORK_QUEUE_STACK_SIZE #ifndef CONFIG_BT_WORK_QUEUE_STACK_SIZE
#ifndef CONFIG_BT_MESH #ifndef CONFIG_BT_MESH
#define CONFIG_BT_WORK_QUEUE_STACK_SIZE 1536 //1280//512 #define CONFIG_BT_WORK_QUEUE_STACK_SIZE 1536 // 1280//512
#else #else
#define CONFIG_BT_WORK_QUEUE_STACK_SIZE 2048 #define CONFIG_BT_WORK_QUEUE_STACK_SIZE 2048
#endif /* CONFIG_BT_MESH */ #endif /* CONFIG_BT_MESH */
#endif #endif
/** /**
* CONFIG_BT_WORK_QUEUE_PRIO:Work queue priority. * CONFIG_BT_WORK_QUEUE_PRIO:Work queue priority.
*/ */
#ifndef CONFIG_BT_WORK_QUEUE_PRIO #ifndef CONFIG_BT_WORK_QUEUE_PRIO
#define CONFIG_BT_WORK_QUEUE_PRIO (configMAX_PRIORITIES - 2) #define CONFIG_BT_WORK_QUEUE_PRIO (configMAX_PRIORITIES - 2)
#endif #endif
/** /**
* CONFIG_BT_HCI_RESERVE:Headroom that the driver needs for sending and receiving buffers. * CONFIG_BT_HCI_RESERVE:Headroom that the driver needs for sending and receiving buffers.
*/ */
#ifndef CONFIG_BT_HCI_RESERVE #ifndef CONFIG_BT_HCI_RESERVE
#ifdef CONFIG_BLUETOOTH_H4 #ifdef CONFIG_BLUETOOTH_H4
#define CONFIG_BT_HCI_RESERVE 0 #define CONFIG_BT_HCI_RESERVE 0
@@ -406,8 +409,8 @@
#endif #endif
/** /**
* CONFIG_BLUETOOTH_DEBUG_LOG:Enable bluetooth debug log. * CONFIG_BLUETOOTH_DEBUG_LOG:Enable bluetooth debug log.
*/ */
#if defined(BFLB_BLE) #if defined(BFLB_BLE)
#if defined(CFG_BLE_STACK_DBG_PRINT) #if defined(CFG_BLE_STACK_DBG_PRINT)
#undef CONFIG_BT_DEBUG #undef CONFIG_BT_DEBUG
@@ -422,64 +425,64 @@
#endif #endif
#endif #endif
/** /**
* CONFIG_BT_DEBUG_L2CAP:Enable bluetooth l2cap debug log. * CONFIG_BT_DEBUG_L2CAP:Enable bluetooth l2cap debug log.
*/ */
#ifdef CONFIG_BT_DEBUG_L2CAP #ifdef CONFIG_BT_DEBUG_L2CAP
#undef CONFIG_BT_DEBUG_L2CAP #undef CONFIG_BT_DEBUG_L2CAP
#define CONFIG_BT_DEBUG_L2CAP 1 #define CONFIG_BT_DEBUG_L2CAP 1
#endif #endif
/** /**
* CONFIG_BT_DEBUG_CONN:Enable bluetooth conn debug log. * CONFIG_BT_DEBUG_CONN:Enable bluetooth conn debug log.
*/ */
#ifdef CONFIG_BT_DEBUG_CONN #ifdef CONFIG_BT_DEBUG_CONN
#undef CONFIG_BT_DEBUG_CONN #undef CONFIG_BT_DEBUG_CONN
#define CONFIG_BT_DEBUG_CONN 1 #define CONFIG_BT_DEBUG_CONN 1
#endif #endif
/** /**
* CONFIG_BT_DEBUG_ATT:Enable bluetooth att debug log. * CONFIG_BT_DEBUG_ATT:Enable bluetooth att debug log.
*/ */
#ifdef CONFIG_BT_DEBUG_ATT #ifdef CONFIG_BT_DEBUG_ATT
#undef CONFIG_BT_DEBUG_ATT #undef CONFIG_BT_DEBUG_ATT
#define CONFIG_BT_DEBUG_ATT 1 #define CONFIG_BT_DEBUG_ATT 1
#endif #endif
/** /**
* CONFIG_BT_DEBUG_GATT:Enable bluetooth gatt debug log. * CONFIG_BT_DEBUG_GATT:Enable bluetooth gatt debug log.
*/ */
#ifdef CONFIG_BT_DEBUG_GATT #ifdef CONFIG_BT_DEBUG_GATT
#undef CONFIG_BT_DEBUG_GATT #undef CONFIG_BT_DEBUG_GATT
#define CONFIG_BT_DEBUG_GATT 1 #define CONFIG_BT_DEBUG_GATT 1
#endif #endif
/** /**
* CONFIG_BT_DEBUG_HCI_CORE:Enable bluetooth hci core debug log. * CONFIG_BT_DEBUG_HCI_CORE:Enable bluetooth hci core debug log.
*/ */
#ifdef CONFIG_BT_DEBUG_HCI_CORE #ifdef CONFIG_BT_DEBUG_HCI_CORE
#undef CONFIG_BT_DEBUG_HCI_CORE #undef CONFIG_BT_DEBUG_HCI_CORE
#define CONFIG_BT_DEBUG_HCI_CORE 1 #define CONFIG_BT_DEBUG_HCI_CORE 1
#endif #endif
/** /**
* CONFIG_BT_DEBUG_HCI_DRIVER:Enable bluetooth hci driver debug log. * CONFIG_BT_DEBUG_HCI_DRIVER:Enable bluetooth hci driver debug log.
*/ */
#ifdef CONFIG_BT_DEBUG_HCI_DRIVER #ifdef CONFIG_BT_DEBUG_HCI_DRIVER
#undef CONFIG_BT_DEBUG_HCI_DRIVER #undef CONFIG_BT_DEBUG_HCI_DRIVER
#define CONFIG_BT_DEBUG_HCI_DRIVER 1 #define CONFIG_BT_DEBUG_HCI_DRIVER 1
#endif #endif
/** /**
* CONFIG_BT_TEST:Enable bluetooth test. * CONFIG_BT_TEST:Enable bluetooth test.
*/ */
#ifdef CONFIG_BT_TEST #ifdef CONFIG_BT_TEST
#undef CONFIG_BT_TEST #undef CONFIG_BT_TEST
#define CONFIG_BT_TEST 1 #define CONFIG_BT_TEST 1
#endif #endif
/** /**
* CONFIG_BT_DEBUG_CORE:Enable bluetooth core debug log. * CONFIG_BT_DEBUG_CORE:Enable bluetooth core debug log.
*/ */
#ifdef CONFIG_BT_DEBUG_CORE #ifdef CONFIG_BT_DEBUG_CORE
#undef CONFIG_BT_DEBUG_CORE #undef CONFIG_BT_DEBUG_CORE
#define CONFIG_BT_DEBUG_CORE 1 #define CONFIG_BT_DEBUG_CORE 1
@@ -487,16 +490,16 @@
#ifndef CONFIG_BT_ATT_TX_MAX #ifndef CONFIG_BT_ATT_TX_MAX
/* /*
* Take throuthput test into consideration, set att tx max the same with lowstack tx buffer count. * Take throuthput test into consideration, set att tx max the same with lowstack tx buffer count.
* att semaphore determine the max numble packets can send to lowsatck at once. * att semaphore determine the max numble packets can send to lowsatck at once.
*/ */
#define CONFIG_BT_ATT_TX_MAX 10 #define CONFIG_BT_ATT_TX_MAX 10
#endif #endif
#ifndef CONFIG_BT_CONN_TX_MAX #ifndef CONFIG_BT_CONN_TX_MAX
/* /*
* Take throuthput test into consideration, set upperstack conn tx max the same with lowstack tx buffer count. * Take throuthput test into consideration, set upperstack conn tx max the same with lowstack tx buffer count.
*/ */
#define CONFIG_BT_CONN_TX_MAX 10 #define CONFIG_BT_CONN_TX_MAX 10
#endif #endif
@@ -541,7 +544,7 @@
#endif #endif
#if defined(CONFIG_BT_BREDR) #if defined(CONFIG_BT_BREDR)
#define CONFIG_BT_PAGE_TIMEOUT 0x2000 //5.12s #define CONFIG_BT_PAGE_TIMEOUT 0x2000 // 5.12s
#define CONFIG_BT_L2CAP_RX_MTU 672 #define CONFIG_BT_L2CAP_RX_MTU 672
#ifndef CONFIG_BT_RFCOMM_TX_STACK_SIZE #ifndef CONFIG_BT_RFCOMM_TX_STACK_SIZE
@@ -555,7 +558,7 @@
#endif #endif
#if defined(CONFIG_BT_AUDIO) #if defined(CONFIG_BT_AUDIO)
#define CONFIG_BT_MAX_ISO_CONN 8 //range 1 to 64 #define CONFIG_BT_MAX_ISO_CONN 8 // range 1 to 64
#endif #endif
@@ -574,7 +577,7 @@
//#define CONFIG_BT_ADV_WITH_PUBLIC_ADDR 1 //#define CONFIG_BT_ADV_WITH_PUBLIC_ADDR 1
#define CONFIG_BT_ATT_PREPARE_COUNT 64 #define CONFIG_BT_ATT_PREPARE_COUNT 64
#endif #endif
#endif //BFLB_BLE #endif // BFLB_BLE
/*******************************Bouffalo Lab Patch******************************/ /*******************************Bouffalo Lab Patch******************************/
/*Fix the issue that DHKEY_check_failed error happens in smp procedure if CONFIG_BT_PRIVACY is enabled.*/ /*Fix the issue that DHKEY_check_failed error happens in smp procedure if CONFIG_BT_PRIVACY is enabled.*/
@@ -602,15 +605,15 @@ happens, which cause memory leak issue.*/
#endif #endif
#define BFLB_RELEASE_CMD_SEM_IF_CONN_DISC #define BFLB_RELEASE_CMD_SEM_IF_CONN_DISC
/*Fix the issue when local auth_req is 0(no boinding), /*Fix the issue when local auth_req is 0(no boinding),
BT_SMP_DIST_ENC_KEY bit is not cleared while remote ENC_KEY is received.*/ BT_SMP_DIST_ENC_KEY bit is not cleared while remote ENC_KEY is received.*/
#define BFLB_BLE_PATCH_CLEAR_REMOTE_KEY_BIT #define BFLB_BLE_PATCH_CLEAR_REMOTE_KEY_BIT
#if defined(CONFIG_BT_CENTRAL) || defined(CONFIG_BT_OBSERVER) #if defined(CONFIG_BT_CENTRAL) || defined(CONFIG_BT_OBSERVER)
// #define BFLB_BLE_NOTIFY_ADV_DISCARDED // #define BFLB_BLE_NOTIFY_ADV_DISCARDED
#endif #endif
#if defined(__cplusplus) #ifdef __cplusplus
} };
#endif #endif
#endif /* BLE_CONFIG_H */ #endif /* BLE_CONFIG_H */