xref: /btstack/port/posix-h5/btstack_config.h (revision 36327e5a477375af95206026b682a10acb1b5354)
194a5538cSMatthias Ringwald //
294a5538cSMatthias Ringwald // btstack_config.h for generic POSIX H4 port
394a5538cSMatthias Ringwald //
494a5538cSMatthias Ringwald 
5*36327e5aSMilanka Ringwald #ifndef BTSTACK_CONFIG_H
6*36327e5aSMilanka Ringwald #define BTSTACK_CONFIG_H
794a5538cSMatthias Ringwald 
894a5538cSMatthias Ringwald // Port related features
9d20e3046SMatthias Ringwald #define HAVE_ASSERT
10*36327e5aSMilanka Ringwald #define HAVE_BTSTACK_STDIN
1194a5538cSMatthias Ringwald #define HAVE_MALLOC
1294a5538cSMatthias Ringwald #define HAVE_POSIX_FILE_IO
1394a5538cSMatthias Ringwald #define HAVE_POSIX_TIME
1494a5538cSMatthias Ringwald 
1594a5538cSMatthias Ringwald // BTstack features that can be enabled
1694a5538cSMatthias Ringwald #define ENABLE_BLE
1794a5538cSMatthias Ringwald #define ENABLE_CLASSIC
181bbecc2bSMatthias Ringwald #define ENABLE_HFP_WIDE_BAND_SPEECH
19e5b6c4e9SMatthias Ringwald #define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE
201a682202SMatthias Ringwald #define ENABLE_LE_CENTRAL
21ff01079bSMatthias Ringwald #define ENABLE_LE_DATA_CHANNELS
22b435e062SMatthias Ringwald #define ENABLE_LE_DATA_LENGTH_EXTENSION
23*36327e5aSMilanka Ringwald #define ENABLE_LE_PERIPHERAL
24*36327e5aSMilanka Ringwald #define ENABLE_LE_SECURE_CONNECTIONS
2594a5538cSMatthias Ringwald #define ENABLE_LOG_ERROR
2694a5538cSMatthias Ringwald #define ENABLE_LOG_INFO
27*36327e5aSMilanka Ringwald #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS
2894a5538cSMatthias Ringwald #define ENABLE_SCO_OVER_HCI
2994a5538cSMatthias Ringwald #define ENABLE_SDP_DES_DUMP
3094a5538cSMatthias Ringwald 
3194a5538cSMatthias Ringwald // BTstack configuration. buffers, sizes, ...
3294a5538cSMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
33*36327e5aSMilanka Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy
3494a5538cSMatthias Ringwald 
35dbe92de6SMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES      16
36*36327e5aSMilanka Ringwald #define NVM_NUM_LINK_KEYS              16
3781862996SMatthias Ringwald 
38e514a7f5SMatthias Ringwald 
39e514a7f5SMatthias Ringwald // Mesh Configuration
40e514a7f5SMatthias Ringwald #define ENABLE_MESH
41e514a7f5SMatthias Ringwald #define ENABLE_MESH_ADV_BEARER
42e514a7f5SMatthias Ringwald #define ENABLE_MESH_GATT_BEARER
43e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_ADV
44e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_GATT
45e514a7f5SMatthias Ringwald #define ENABLE_MESH_PROVISIONER
46*36327e5aSMilanka Ringwald #define ENABLE_MESH_PROXY_SERVER
47e514a7f5SMatthias Ringwald 
48*36327e5aSMilanka Ringwald #define MAX_NR_MESH_SUBNETS            2
49e514a7f5SMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS    16
50e514a7f5SMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16
51e514a7f5SMatthias Ringwald 
52e514a7f5SMatthias Ringwald // allow for one NetKey update
53e514a7f5SMatthias Ringwald #define MAX_NR_MESH_NETWORK_KEYS      (MAX_NR_MESH_SUBNETS+1)
54e514a7f5SMatthias Ringwald 
5594a5538cSMatthias Ringwald #endif
5694a5538cSMatthias Ringwald 
57