xref: /btstack/port/esp32/components/btstack/include/btstack_config.h (revision f69d0bf9f0f84deb196bfcb6c82a4329fefa6fa4)
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 
12 // BTstack features that can be enabled
13 #define ENABLE_BLE
14 #define ENABLE_CLASSIC
15 #define ENABLE_LE_PERIPHERAL
16 #define ENABLE_LE_CENTRAL
17 #define ENABLE_LOG_ERROR
18 // #define ENABLE_LOG_INFO
19 // #define ENABLE_LOG_DEBUG
20 // #define ENABLE_EHCILL
21 
22 // BTstack configuration. buffers, sizes, ...
23 #define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
24 #define MAX_NR_BNEP_CHANNELS MAX_SPP_CONNECTIONS
25 #define MAX_NR_BNEP_SERVICES 1
26 #define MAX_NR_BTSTACK_LINK_KEY_DB_MEMORY_ENTRIES  2
27 #define MAX_NR_GATT_CLIENTS 1
28 #define MAX_NR_HCI_CONNECTIONS MAX_SPP_CONNECTIONS
29 #define MAX_NR_HFP_CONNECTIONS 0
30 #define MAX_NR_L2CAP_CHANNELS  (1+MAX_SPP_CONNECTIONS)
31 #define MAX_NR_L2CAP_SERVICES  2
32 #define MAX_NR_RFCOMM_CHANNELS MAX_SPP_CONNECTIONS
33 #define MAX_NR_RFCOMM_MULTIPLEXERS MAX_SPP_CONNECTIONS
34 #define MAX_NR_RFCOMM_SERVICES 1
35 #define MAX_NR_SERVICE_RECORD_ITEMS 1
36 #define MAX_NR_SM_LOOKUP_ENTRIES 3
37 #define MAX_NR_WHITELIST_ENTRIES 1
38 #define MAX_SPP_CONNECTIONS 1
39 #define MAX_NR_LE_DEVICE_DB_ENTRIES 0
40 //
41 
42 #endif
43 
44