1 // 2 // btstack_config.h for esp32 port 3 // 4 5 #ifndef __BTSTACK_CONFIG 6 #define __BTSTACK_CONFIG 7 8 // Port related features 9 #define HAVE_EMBEDDED_TIME_MS 10 #define HAVE_MALLOC 11 #define HAVE_BTSTACK_STDIN 12 13 // BTstack features that can be enabled 14 #define ENABLE_BLE 15 #define ENABLE_CLASSIC 16 #define ENABLE_LE_PERIPHERAL 17 #define ENABLE_LE_CENTRAL 18 #define ENABLE_LE_DATA_LENGTH_EXTENSION 19 #define ENABLE_LE_SECURE_CONNECTIONS 20 // ESP32 supports ECDH HCI Commands, but micro-ecc lib is already provided anyway 21 #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS 22 #define ENABLE_LOG_ERROR 23 #define ENABLE_LOG_INFO 24 // #define ENABLE_LOG_DEBUG 25 26 // BTstack configuration. buffers, sizes, ... 27 #define HCI_ACL_PAYLOAD_SIZE (1691 + 4) 28 29 // HCI Controller to Host Flow Control 30 #define ENABLE_HCI_CONTROLLER_TO_HOST_FLOW_CONTROL 31 32 // Interal ring buffer: 21 kB 33 #define HCI_HOST_ACL_PACKET_NUM 20 34 #define HCI_HOST_ACL_PACKET_LEN 1024 35 #define HCI_HOST_SCO_PACKET_NUM 10 36 #define HCI_HOST_SCO_PACKET_LEN 60 37 #endif 38 39 // Link Key DB and LE Device DB using TLV on top of Flash Sector interface 40 #define NVM_NUM_LINK_KEYS 16 41 #define NVM_NUM_DEVICE_DB_ENTRIES 16