xref: /btstack/port/esp32/components/btstack/include/btstack_config.h (revision 88949f844376f979826afad7a30727a235ee4f0c)
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 #define HAVE_FREERTOS_TASK_NOTIFICATIONS
13 
14 // BTstack features that can be enabled
15 #define ENABLE_BLE
16 #define ENABLE_CLASSIC
17 #define ENABLE_LE_PERIPHERAL
18 #define ENABLE_LE_CENTRAL
19 #define ENABLE_LE_DATA_CHANNELS
20 #define ENABLE_LE_DATA_LENGTH_EXTENSION
21 #define ENABLE_LE_SECURE_CONNECTIONS
22 #define ENABLE_ATT_DELAYED_RESPONSE
23 // ESP32 supports ECDH HCI Commands, but micro-ecc lib is already provided anyway
24 #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS
25 #define ENABLE_SCO_OVER_HCI
26 #define ENABLE_LOG_ERROR
27 #define ENABLE_LOG_INFO
28 // #define ENABLE_LOG_DEBUG
29 
30 // BTstack configuration. buffers, sizes, ...
31 #define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
32 
33 // HCI Controller to Host Flow Control
34 #define ENABLE_HCI_CONTROLLER_TO_HOST_FLOW_CONTROL
35 
36 // Interal ring buffer: 21 kB
37 #define HCI_HOST_ACL_PACKET_NUM 20
38 #define HCI_HOST_ACL_PACKET_LEN 1024
39 #define HCI_HOST_SCO_PACKET_NUM 10
40 #define HCI_HOST_SCO_PACKET_LEN 60
41 #endif
42 
43 // Link Key DB and LE Device DB using TLV on top of Flash Sector interface
44 #define NVM_NUM_LINK_KEYS 16
45 #define NVM_NUM_DEVICE_DB_ENTRIES 16
46