xref: /btstack/port/posix-h4-zephyr/btstack_config.h (revision 077fecbb6ed539507f37505ebd8a5b00e01c55e9)
16807484cSMatthias Ringwald //
2*077fecbbSMilanka Ringwald // btstack_config.h for POSIX H4 + Zephyr HCI Controller port
3*077fecbbSMilanka Ringwald //
4*077fecbbSMilanka Ringwald // Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/
56807484cSMatthias Ringwald //
66807484cSMatthias Ringwald 
736327e5aSMilanka Ringwald #ifndef BTSTACK_CONFIG_H
836327e5aSMilanka Ringwald #define BTSTACK_CONFIG_H
96807484cSMatthias Ringwald 
106807484cSMatthias Ringwald // Port related features
11d20e3046SMatthias Ringwald #define HAVE_ASSERT
1236327e5aSMilanka Ringwald #define HAVE_BTSTACK_STDIN
136807484cSMatthias Ringwald #define HAVE_MALLOC
146807484cSMatthias Ringwald #define HAVE_POSIX_FILE_IO
156807484cSMatthias Ringwald #define HAVE_POSIX_TIME
166807484cSMatthias Ringwald 
176807484cSMatthias Ringwald // BTstack features that can be enabled
186807484cSMatthias Ringwald #define ENABLE_BLE
196807484cSMatthias Ringwald #define ENABLE_HFP_WIDE_BAND_SPEECH
206807484cSMatthias Ringwald #define ENABLE_LE_CENTRAL
21b28dc800SMatthias Ringwald #define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE
226807484cSMatthias Ringwald #define ENABLE_LE_DATA_LENGTH_EXTENSION
2336327e5aSMilanka Ringwald #define ENABLE_LE_PERIPHERAL
24b596325dSMatthias Ringwald #define ENABLE_LE_PRIVACY_ADDRESS_RESOLUTION
2536327e5aSMilanka Ringwald #define ENABLE_LE_SECURE_CONNECTIONS
266807484cSMatthias Ringwald #define ENABLE_LOG_ERROR
276807484cSMatthias Ringwald #define ENABLE_LOG_INFO
2836327e5aSMilanka Ringwald #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS
29606ccc9bSMilanka Ringwald #define ENABLE_PRINTF_HEXDUMP
306807484cSMatthias Ringwald #define ENABLE_SCO_OVER_HCI
316807484cSMatthias Ringwald #define ENABLE_SDP_DES_DUMP
326807484cSMatthias Ringwald 
336807484cSMatthias Ringwald // BTstack configuration. buffers, sizes, ...
346807484cSMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
3536327e5aSMilanka Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy
366807484cSMatthias Ringwald 
3781862996SMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES      20
3881862996SMatthias 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
4636327e5aSMilanka Ringwald #define ENABLE_MESH_PROXY_SERVER
47e514a7f5SMatthias Ringwald 
4836327e5aSMilanka 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 
556807484cSMatthias Ringwald #endif
566807484cSMatthias Ringwald 
57