17eac9e22SMatthias Ringwald // 27eac9e22SMatthias Ringwald // btstack_config.h for libusb port 37eac9e22SMatthias Ringwald // 47eac9e22SMatthias Ringwald 57eac9e22SMatthias Ringwald #ifndef __BTSTACK_CONFIG 67eac9e22SMatthias Ringwald #define __BTSTACK_CONFIG 77eac9e22SMatthias Ringwald 87eac9e22SMatthias Ringwald // Port related features 97eac9e22SMatthias Ringwald #define HAVE_MALLOC 107eac9e22SMatthias Ringwald #define HAVE_POSIX_FILE_IO 117eac9e22SMatthias Ringwald #define HAVE_BTSTACK_STDIN 127eac9e22SMatthias Ringwald #define HAVE_POSIX_TIME 137eac9e22SMatthias Ringwald 147eac9e22SMatthias Ringwald // BTstack features that can be enabled 157eac9e22SMatthias Ringwald #define ENABLE_BLE 167eac9e22SMatthias Ringwald #define ENABLE_CLASSIC 177eac9e22SMatthias Ringwald #define ENABLE_HFP_WIDE_BAND_SPEECH 187eac9e22SMatthias Ringwald #define ENABLE_LE_CENTRAL 197eac9e22SMatthias Ringwald #define ENABLE_LE_PERIPHERAL 207eac9e22SMatthias Ringwald #define ENABLE_LE_SECURE_CONNECTIONS 217eac9e22SMatthias Ringwald #define ENABLE_LE_DATA_CHANNELS 227eac9e22SMatthias Ringwald #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS 237eac9e22SMatthias Ringwald #define ENABLE_LE_DATA_LENGTH_EXTENSION 247eac9e22SMatthias Ringwald #define ENABLE_ATT_DELAYED_RESPONSE 257eac9e22SMatthias Ringwald #define ENABLE_LOG_ERROR 267eac9e22SMatthias Ringwald #define ENABLE_LOG_INFO 277eac9e22SMatthias Ringwald #define ENABLE_SCO_OVER_HCI 287eac9e22SMatthias Ringwald #define ENABLE_SDP_DES_DUMP 297eac9e22SMatthias Ringwald 307eac9e22SMatthias Ringwald #define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE 317cdc89a5SMatthias Ringwald #define ENABLE_SOFTWARE_AES128 327eac9e22SMatthias Ringwald 337eac9e22SMatthias Ringwald // BTstack configuration. buffers, sizes, ... 347eac9e22SMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4) 357eac9e22SMatthias Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof BNEP header, avoid memcpy 367eac9e22SMatthias Ringwald 37*dbe92de6SMatthias Ringwald #define NVM_NUM_LINK_KEYS 16 38*dbe92de6SMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES 16 3981862996SMatthias Ringwald 40e514a7f5SMatthias Ringwald // Mesh Configuration 41e514a7f5SMatthias Ringwald #define ENABLE_MESH 42e514a7f5SMatthias Ringwald #define ENABLE_MESH_ADV_BEARER 43e514a7f5SMatthias Ringwald #define ENABLE_MESH_GATT_BEARER 44e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_ADV 45e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_GATT 46e514a7f5SMatthias Ringwald #define ENABLE_MESH_PROXY_SERVER 47e514a7f5SMatthias Ringwald #define ENABLE_MESH_PROVISIONER 48e514a7f5SMatthias Ringwald 49e514a7f5SMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS 16 50e514a7f5SMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16 51e514a7f5SMatthias Ringwald #define MAX_NR_MESH_SUBNETS 2 52e514a7f5SMatthias Ringwald 53e514a7f5SMatthias Ringwald // allow for one NetKey update 54e514a7f5SMatthias Ringwald #define MAX_NR_MESH_NETWORK_KEYS (MAX_NR_MESH_SUBNETS+1) 55e514a7f5SMatthias Ringwald 567eac9e22SMatthias Ringwald #endif 57