xref: /btstack/port/posix-h4-zephyr/btstack_config.h (revision 818629960d27e317b8115fb513912a06dbf88524)
16807484cSMatthias Ringwald //
26807484cSMatthias Ringwald // btstack_config.h for generic POSIX H4 port
36807484cSMatthias Ringwald //
46807484cSMatthias Ringwald 
56807484cSMatthias Ringwald #ifndef __BTSTACK_CONFIG
66807484cSMatthias Ringwald #define __BTSTACK_CONFIG
76807484cSMatthias Ringwald 
86807484cSMatthias Ringwald // Port related features
96807484cSMatthias Ringwald #define HAVE_MALLOC
106807484cSMatthias Ringwald #define HAVE_POSIX_FILE_IO
116807484cSMatthias Ringwald #define HAVE_BTSTACK_STDIN
126807484cSMatthias Ringwald #define HAVE_POSIX_TIME
136807484cSMatthias Ringwald 
146807484cSMatthias Ringwald // BTstack features that can be enabled
156807484cSMatthias Ringwald #define ENABLE_BLE
166807484cSMatthias Ringwald #define ENABLE_CLASSIC
176807484cSMatthias Ringwald #define ENABLE_HFP_WIDE_BAND_SPEECH
186807484cSMatthias Ringwald #define ENABLE_LE_CENTRAL
196807484cSMatthias Ringwald #define ENABLE_LE_PERIPHERAL
206807484cSMatthias Ringwald #define ENABLE_LE_SECURE_CONNECTIONS
216807484cSMatthias Ringwald #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS
22ff01079bSMatthias Ringwald #define ENABLE_LE_DATA_CHANNELS
236807484cSMatthias Ringwald #define ENABLE_LE_DATA_LENGTH_EXTENSION
246807484cSMatthias Ringwald #define ENABLE_LOG_ERROR
256807484cSMatthias Ringwald #define ENABLE_LOG_INFO
266807484cSMatthias Ringwald #define ENABLE_SCO_OVER_HCI
276807484cSMatthias Ringwald #define ENABLE_SDP_DES_DUMP
286807484cSMatthias Ringwald // #define ENABLE_EHCILL
296807484cSMatthias Ringwald 
306807484cSMatthias Ringwald // BTstack configuration. buffers, sizes, ...
316807484cSMatthias Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy
326807484cSMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
336807484cSMatthias Ringwald 
34*81862996SMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES      20
35*81862996SMatthias Ringwald 
36e514a7f5SMatthias Ringwald // Mesh Configuration
37e514a7f5SMatthias Ringwald #define ENABLE_MESH
38e514a7f5SMatthias Ringwald #define ENABLE_MESH_ADV_BEARER
39e514a7f5SMatthias Ringwald #define ENABLE_MESH_GATT_BEARER
40e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_ADV
41e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_GATT
42e514a7f5SMatthias Ringwald #define ENABLE_MESH_PROXY_SERVER
43e514a7f5SMatthias Ringwald #define ENABLE_MESH_PROVISIONER
44e514a7f5SMatthias Ringwald 
45e514a7f5SMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS    16
46e514a7f5SMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16
47e514a7f5SMatthias Ringwald #define MAX_NR_MESH_SUBNETS            2
48e514a7f5SMatthias Ringwald 
49e514a7f5SMatthias Ringwald // allow for one NetKey update
50e514a7f5SMatthias Ringwald #define MAX_NR_MESH_NETWORK_KEYS      (MAX_NR_MESH_SUBNETS+1)
51e514a7f5SMatthias Ringwald 
526807484cSMatthias Ringwald #endif
536807484cSMatthias Ringwald 
54