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 9*d20e3046SMatthias Ringwald #define HAVE_ASSERT 106807484cSMatthias Ringwald #define HAVE_MALLOC 116807484cSMatthias Ringwald #define HAVE_POSIX_FILE_IO 126807484cSMatthias Ringwald #define HAVE_BTSTACK_STDIN 136807484cSMatthias Ringwald #define HAVE_POSIX_TIME 146807484cSMatthias Ringwald 156807484cSMatthias Ringwald // BTstack features that can be enabled 166807484cSMatthias Ringwald #define ENABLE_BLE 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 24b596325dSMatthias Ringwald #define ENABLE_LE_PRIVACY_ADDRESS_RESOLUTION 256807484cSMatthias Ringwald #define ENABLE_LOG_ERROR 266807484cSMatthias Ringwald #define ENABLE_LOG_INFO 276807484cSMatthias Ringwald #define ENABLE_SCO_OVER_HCI 286807484cSMatthias Ringwald #define ENABLE_SDP_DES_DUMP 296807484cSMatthias Ringwald // #define ENABLE_EHCILL 306807484cSMatthias Ringwald 316807484cSMatthias Ringwald // BTstack configuration. buffers, sizes, ... 326807484cSMatthias Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy 336807484cSMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4) 346807484cSMatthias Ringwald 3581862996SMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES 20 3681862996SMatthias Ringwald 37e514a7f5SMatthias Ringwald // Mesh Configuration 38e514a7f5SMatthias Ringwald #define ENABLE_MESH 39e514a7f5SMatthias Ringwald #define ENABLE_MESH_ADV_BEARER 40e514a7f5SMatthias Ringwald #define ENABLE_MESH_GATT_BEARER 41e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_ADV 42e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_GATT 43e514a7f5SMatthias Ringwald #define ENABLE_MESH_PROXY_SERVER 44e514a7f5SMatthias Ringwald #define ENABLE_MESH_PROVISIONER 45e514a7f5SMatthias Ringwald 46e514a7f5SMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS 16 47e514a7f5SMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16 48e514a7f5SMatthias Ringwald #define MAX_NR_MESH_SUBNETS 2 49e514a7f5SMatthias Ringwald 50e514a7f5SMatthias Ringwald // allow for one NetKey update 51e514a7f5SMatthias Ringwald #define MAX_NR_MESH_NETWORK_KEYS (MAX_NR_MESH_SUBNETS+1) 52e514a7f5SMatthias Ringwald 536807484cSMatthias Ringwald #endif 546807484cSMatthias Ringwald 55