#ifndef BTSTACK_CONFIG_H
#define BTSTACK_CONFIG_H

// Port related features
//#define HAVE_BTSTACK_STDIN
#define HAVE_EMBEDDED_TIME_MS


// BTstack features that can be enabled
#define ENABLE_BLE

#define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS //wei note:BLE低功耗安全连接
#define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE//wei note:信道
#define ENABLE_LE_PERIPHERAL //wei note:设备
#define ENABLE_LE_SECURE_CONNECTIONS //wei note:启用安全连接
#define ENABLE_LOG_ERROR
//#define ENABLE_LOG_INFO
//#define ENABLE_PRINTF_HEXDUMP //wei note:十六进制打印的功能
//#define ENABLE_CLASSIC


// BTstack configuration. buffers, sizes, ...

#define HCI_ACL_PAYLOAD_SIZE 74

#define MAX_NR_HCI_CONNECTIONS 1 //wei note:支持与一个HCI连接

// Link Key DB and LE Device DB using TLV on top of Flash Sector interface
#define NVM_NUM_DEVICE_DB_ENTRIES 2 //wei note:FLASH存储已配对设备信息
//#define NVM_NUM_LINK_KEYS 16//wei note:FLASH存储密钥的最大条目



//#define MAX_NR_BTSTACK_LINK_KEY_DB_MEMORY_ENTRIES 1 //wei note:存储连接密钥
//#define MAX_NR_GATT_CLIENTS 1 //wei note:可以与一个GATT服务端设备连接
//#define MAX_NR_HCI_CONNECTIONS 1 //wei note:支持与一个HCI连接
////#define MAX_NR_HID_HOST_CONNECTIONS 1//wei note:可以与一个HID主机连接
////#define MAX_NR_HIDS_CLIENTS 1//wei note:可以与一个HID设备连接
////#define MAX_NR_L2CAP_CHANNELS 4 //wei note:可以与4个L2CAP通道进行连接
////#define MAX_NR_L2CAP_SERVICES 3 //wei note:可以与4个L2CAP服务进行连接
////#define MAX_NR_SERVICE_RECORD_ITEMS 4 //wei note:服务记录
//#define MAX_NR_SM_LOOKUP_ENTRIES 1//wei note:安全管理器查找表的最大条目
//#define MAX_NR_WHITELIST_ENTRIES 1//wei note:白名单记录最大条目




#endif



