xref: /btstack/port/libusb/btstack_config.h (revision cf862b36402c334a88e8a212544b4c39d06a6803)
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
290d529a9fSMatthias Ringwald 
309974aee0SMilanka Ringwald #define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE
31f12a3722SMilanka Ringwald 
32*cf862b36SMatthias Ringwald // Mesh Config
33*cf862b36SMatthias Ringwald #define ENABLE_MESH_ADV_BEARER
34*cf862b36SMatthias Ringwald #define ENABLE_MESH_GATT_BEARER
35*cf862b36SMatthias Ringwald // #define ENABLE_MESH_PB_ADV
36*cf862b36SMatthias Ringwald #define ENABLE_MESH_PB_GATT
37*cf862b36SMatthias Ringwald #define ENABLE_MESH_PROXY_SERVER
38*cf862b36SMatthias Ringwald 
39*cf862b36SMatthias Ringwald #define ENABLE_MESH
40*cf862b36SMatthias Ringwald #define ENABLE_MESH_PROVISIONER
41*cf862b36SMatthias Ringwald 
420d529a9fSMatthias Ringwald // BTstack configuration. buffers, sizes, ...
437907f069SMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
447907f069SMatthias Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof BNEP header, avoid memcpy
457907f069SMatthias Ringwald 
46*cf862b36SMatthias Ringwald #define MAX_NR_LE_DEVICE_DB_ENTRIES    4
47*cf862b36SMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS    16
48*cf862b36SMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16
49*cf862b36SMatthias Ringwald #define MAX_NR_MESH_SUBNETS            2
50*cf862b36SMatthias Ringwald 
51*cf862b36SMatthias Ringwald // allow for one NetKey update
52*cf862b36SMatthias Ringwald #define MAX_NR_MESH_NETWORK_KEYS      (MAX_NR_MESH_SUBNETS+1)
53*cf862b36SMatthias Ringwald 
547907f069SMatthias Ringwald #endif
55*cf862b36SMatthias Ringwald 
56