xref: /btstack/port/posix-h4/btstack_config.h (revision d20e3046cbd5da533ad321c5296b06e09b34ca36)
10d529a9fSMatthias Ringwald //
20d529a9fSMatthias Ringwald // btstack_config.h for generic POSIX H4 port
30d529a9fSMatthias Ringwald //
47907f069SMatthias Ringwald 
57907f069SMatthias Ringwald #ifndef __BTSTACK_CONFIG
67907f069SMatthias Ringwald #define __BTSTACK_CONFIG
77907f069SMatthias Ringwald 
80d529a9fSMatthias Ringwald // Port related features
9*d20e3046SMatthias Ringwald #define HAVE_ASSERT
100d529a9fSMatthias Ringwald #define HAVE_MALLOC
11eb443d3dSMatthias Ringwald #define HAVE_POSIX_FILE_IO
127ea7688aSMatthias Ringwald #define HAVE_BTSTACK_STDIN
13d0755cd6SMatthias Ringwald #define HAVE_POSIX_TIME
14b6a24fb9SMatthias Ringwald #define HAVE_EM9304_PATCH_CONTAINER
150d529a9fSMatthias Ringwald 
160d529a9fSMatthias Ringwald // BTstack features that can be enabled
170d529a9fSMatthias Ringwald #define ENABLE_BLE
1880b9a8caSMatthias Ringwald #define ENABLE_CLASSIC
191bbecc2bSMatthias Ringwald #define ENABLE_HFP_WIDE_BAND_SPEECH
20e5b6c4e9SMatthias Ringwald #define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE
211a682202SMatthias Ringwald #define ENABLE_LE_CENTRAL
221bbecc2bSMatthias Ringwald #define ENABLE_LE_PERIPHERAL
236df11ce0SMatthias Ringwald #define ENABLE_LE_SECURE_CONNECTIONS
24fcae305fSMatthias Ringwald #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS
25ff01079bSMatthias Ringwald #define ENABLE_LE_DATA_CHANNELS
26b435e062SMatthias Ringwald #define ENABLE_LE_DATA_LENGTH_EXTENSION
27b596325dSMatthias Ringwald #define ENABLE_LE_PRIVACY_ADDRESS_RESOLUTION
28beb20288SMatthias Ringwald #define ENABLE_ATT_DELAYED_RESPONSE
297907f069SMatthias Ringwald #define ENABLE_LOG_ERROR
300d529a9fSMatthias Ringwald #define ENABLE_LOG_INFO
3171c4de7aSMatthias Ringwald #define ENABLE_SCO_OVER_HCI
327907f069SMatthias Ringwald #define ENABLE_SDP_DES_DUMP
335308b30fSMatthias Ringwald #define ENABLE_CROSS_TRANSPORT_KEY_DERIVATION
347cdc89a5SMatthias Ringwald #define ENABLE_SOFTWARE_AES128
3547c58a2aSMatthias Ringwald // #define ENABLE_EHCILL
367907f069SMatthias Ringwald 
370d529a9fSMatthias Ringwald // BTstack configuration. buffers, sizes, ...
380d529a9fSMatthias Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy
390d529a9fSMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
400d529a9fSMatthias Ringwald 
41dbe92de6SMatthias Ringwald #define NVM_NUM_LINK_KEYS              16
42dbe92de6SMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES      16
43e514a7f5SMatthias Ringwald 
44e514a7f5SMatthias Ringwald // Mesh Configuration
45e514a7f5SMatthias Ringwald #define ENABLE_MESH
46e514a7f5SMatthias Ringwald #define ENABLE_MESH_ADV_BEARER
47e514a7f5SMatthias Ringwald #define ENABLE_MESH_GATT_BEARER
48e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_ADV
49e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_GATT
50e514a7f5SMatthias Ringwald #define ENABLE_MESH_PROXY_SERVER
51e514a7f5SMatthias Ringwald #define ENABLE_MESH_PROVISIONER
52e514a7f5SMatthias Ringwald 
53e514a7f5SMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS    16
54e514a7f5SMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16
55e514a7f5SMatthias Ringwald #define MAX_NR_MESH_SUBNETS            2
56e514a7f5SMatthias Ringwald 
57e514a7f5SMatthias Ringwald // allow for one NetKey update
58e514a7f5SMatthias Ringwald #define MAX_NR_MESH_NETWORK_KEYS      (MAX_NR_MESH_SUBNETS+1)
59e514a7f5SMatthias Ringwald 
607907f069SMatthias Ringwald #endif
610d529a9fSMatthias Ringwald 
62