xref: /btstack/port/libusb/btstack_config.h (revision e514a7f533c205a9d9a793ff09d181fcea9ebd1a)
10d529a9fSMatthias Ringwald //
20d529a9fSMatthias Ringwald // btstack_config.h for libusb port
30d529a9fSMatthias Ringwald //
47907f069SMatthias Ringwald 
57907f069SMatthias Ringwald #ifndef __BTSTACK_CONFIG
67907f069SMatthias Ringwald #define __BTSTACK_CONFIG
77907f069SMatthias Ringwald 
80d529a9fSMatthias Ringwald // Port related features
97907f069SMatthias Ringwald #define HAVE_MALLOC
1009bb5270SMatthias Ringwald #define HAVE_POSIX_FILE_IO
117ea7688aSMatthias Ringwald #define HAVE_BTSTACK_STDIN
12d0755cd6SMatthias Ringwald #define HAVE_POSIX_TIME
130d529a9fSMatthias Ringwald 
140d529a9fSMatthias Ringwald // BTstack features that can be enabled
150d529a9fSMatthias Ringwald #define ENABLE_BLE
1680b9a8caSMatthias Ringwald #define ENABLE_CLASSIC
171bbecc2bSMatthias Ringwald #define ENABLE_HFP_WIDE_BAND_SPEECH
181a682202SMatthias Ringwald #define ENABLE_LE_CENTRAL
191bbecc2bSMatthias Ringwald #define ENABLE_LE_PERIPHERAL
20faccbb29SMatthias Ringwald #define ENABLE_LE_SECURE_CONNECTIONS
211add4db5SMatthias Ringwald #define ENABLE_LE_DATA_CHANNELS
22fcae305fSMatthias Ringwald #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS
23b435e062SMatthias Ringwald #define ENABLE_LE_DATA_LENGTH_EXTENSION
24beb20288SMatthias Ringwald #define ENABLE_ATT_DELAYED_RESPONSE
250d529a9fSMatthias Ringwald #define ENABLE_LOG_ERROR
260d529a9fSMatthias Ringwald #define ENABLE_LOG_INFO
2771c4de7aSMatthias Ringwald #define ENABLE_SCO_OVER_HCI
280d529a9fSMatthias Ringwald #define ENABLE_SDP_DES_DUMP
299974aee0SMilanka Ringwald #define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE
30f12a3722SMilanka Ringwald 
310d529a9fSMatthias Ringwald // BTstack configuration. buffers, sizes, ...
327907f069SMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
337907f069SMatthias Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof BNEP header, avoid memcpy
347907f069SMatthias Ringwald 
35cf862b36SMatthias Ringwald #define MAX_NR_LE_DEVICE_DB_ENTRIES    4
36*e514a7f5SMatthias Ringwald 
37*e514a7f5SMatthias Ringwald // Mesh Configuration
38*e514a7f5SMatthias Ringwald #define ENABLE_MESH
39*e514a7f5SMatthias Ringwald #define ENABLE_MESH_ADV_BEARER
40*e514a7f5SMatthias Ringwald #define ENABLE_MESH_GATT_BEARER
41*e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_ADV
42*e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_GATT
43*e514a7f5SMatthias Ringwald #define ENABLE_MESH_PROXY_SERVER
44*e514a7f5SMatthias Ringwald #define ENABLE_MESH_PROVISIONER
45*e514a7f5SMatthias Ringwald 
46cf862b36SMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS    16
47cf862b36SMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16
48cf862b36SMatthias Ringwald #define MAX_NR_MESH_SUBNETS            2
49cf862b36SMatthias Ringwald 
50cf862b36SMatthias Ringwald // allow for one NetKey update
51cf862b36SMatthias Ringwald #define MAX_NR_MESH_NETWORK_KEYS      (MAX_NR_MESH_SUBNETS+1)
52cf862b36SMatthias Ringwald 
537907f069SMatthias Ringwald #endif
54cf862b36SMatthias Ringwald 
55