xref: /btstack/port/libusb/btstack_config.h (revision 7cdc89a533ca236b2c2564b759993b788bae89d3)
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
30*7cdc89a5SMatthias Ringwald #define ENABLE_SOFTWARE_AES128
31f12a3722SMilanka Ringwald 
320d529a9fSMatthias Ringwald // BTstack configuration. buffers, sizes, ...
337907f069SMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
347907f069SMatthias Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof BNEP header, avoid memcpy
357907f069SMatthias Ringwald 
3681862996SMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES      20
37e514a7f5SMatthias Ringwald 
38e514a7f5SMatthias Ringwald // Mesh Configuration
39e514a7f5SMatthias Ringwald #define ENABLE_MESH
40e514a7f5SMatthias Ringwald #define ENABLE_MESH_ADV_BEARER
41e514a7f5SMatthias Ringwald #define ENABLE_MESH_GATT_BEARER
42e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_ADV
43e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_GATT
44e514a7f5SMatthias Ringwald #define ENABLE_MESH_PROXY_SERVER
45e514a7f5SMatthias Ringwald #define ENABLE_MESH_PROVISIONER
46e514a7f5SMatthias Ringwald 
47cf862b36SMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS    16
48cf862b36SMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16
49cf862b36SMatthias Ringwald #define MAX_NR_MESH_SUBNETS            2
50cf862b36SMatthias Ringwald 
51cf862b36SMatthias Ringwald // allow for one NetKey update
52cf862b36SMatthias Ringwald #define MAX_NR_MESH_NETWORK_KEYS      (MAX_NR_MESH_SUBNETS+1)
53cf862b36SMatthias Ringwald 
547907f069SMatthias Ringwald #endif
55cf862b36SMatthias Ringwald 
56