16807484cSMatthias Ringwald // 26807484cSMatthias Ringwald // btstack_config.h for generic POSIX H4 port 36807484cSMatthias Ringwald // 46807484cSMatthias Ringwald 5*36327e5aSMilanka Ringwald #ifndef BTSTACK_CONFIG_H 6*36327e5aSMilanka Ringwald #define BTSTACK_CONFIG_H 76807484cSMatthias Ringwald 86807484cSMatthias Ringwald // Port related features 9d20e3046SMatthias Ringwald #define HAVE_ASSERT 10*36327e5aSMilanka Ringwald #define HAVE_BTSTACK_STDIN 116807484cSMatthias Ringwald #define HAVE_MALLOC 126807484cSMatthias Ringwald #define HAVE_POSIX_FILE_IO 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 19ff01079bSMatthias Ringwald #define ENABLE_LE_DATA_CHANNELS 206807484cSMatthias Ringwald #define ENABLE_LE_DATA_LENGTH_EXTENSION 21*36327e5aSMilanka Ringwald #define ENABLE_LE_PERIPHERAL 22b596325dSMatthias Ringwald #define ENABLE_LE_PRIVACY_ADDRESS_RESOLUTION 23*36327e5aSMilanka Ringwald #define ENABLE_LE_SECURE_CONNECTIONS 246807484cSMatthias Ringwald #define ENABLE_LOG_ERROR 256807484cSMatthias Ringwald #define ENABLE_LOG_INFO 26*36327e5aSMilanka Ringwald #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS 276807484cSMatthias Ringwald #define ENABLE_SCO_OVER_HCI 286807484cSMatthias Ringwald #define ENABLE_SDP_DES_DUMP 296807484cSMatthias Ringwald 306807484cSMatthias Ringwald // BTstack configuration. buffers, sizes, ... 316807484cSMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4) 32*36327e5aSMilanka Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy 336807484cSMatthias Ringwald 3481862996SMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES 20 3581862996SMatthias 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_PROVISIONER 43*36327e5aSMilanka Ringwald #define ENABLE_MESH_PROXY_SERVER 44e514a7f5SMatthias Ringwald 45*36327e5aSMilanka Ringwald #define MAX_NR_MESH_SUBNETS 2 46e514a7f5SMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS 16 47e514a7f5SMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16 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