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 9*d20e3046SMatthias Ringwald #define HAVE_ASSERT 107eac9e22SMatthias Ringwald #define HAVE_MALLOC 117eac9e22SMatthias Ringwald #define HAVE_POSIX_FILE_IO 127eac9e22SMatthias Ringwald #define HAVE_BTSTACK_STDIN 137eac9e22SMatthias Ringwald #define HAVE_POSIX_TIME 147eac9e22SMatthias Ringwald 157eac9e22SMatthias Ringwald // BTstack features that can be enabled 167eac9e22SMatthias Ringwald #define ENABLE_BLE 177eac9e22SMatthias Ringwald #define ENABLE_CLASSIC 187eac9e22SMatthias Ringwald #define ENABLE_HFP_WIDE_BAND_SPEECH 197eac9e22SMatthias Ringwald #define ENABLE_LE_CENTRAL 207eac9e22SMatthias Ringwald #define ENABLE_LE_PERIPHERAL 217eac9e22SMatthias Ringwald #define ENABLE_LE_SECURE_CONNECTIONS 227eac9e22SMatthias Ringwald #define ENABLE_LE_DATA_CHANNELS 237eac9e22SMatthias Ringwald #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS 247eac9e22SMatthias Ringwald #define ENABLE_LE_DATA_LENGTH_EXTENSION 257eac9e22SMatthias Ringwald #define ENABLE_ATT_DELAYED_RESPONSE 267eac9e22SMatthias Ringwald #define ENABLE_LOG_ERROR 277eac9e22SMatthias Ringwald #define ENABLE_LOG_INFO 287eac9e22SMatthias Ringwald #define ENABLE_SCO_OVER_HCI 297eac9e22SMatthias Ringwald #define ENABLE_SDP_DES_DUMP 307eac9e22SMatthias Ringwald 317eac9e22SMatthias Ringwald #define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE 327cdc89a5SMatthias Ringwald #define ENABLE_SOFTWARE_AES128 337eac9e22SMatthias Ringwald 347eac9e22SMatthias Ringwald // BTstack configuration. buffers, sizes, ... 357eac9e22SMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4) 367eac9e22SMatthias Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof BNEP header, avoid memcpy 377eac9e22SMatthias Ringwald 38dbe92de6SMatthias Ringwald #define NVM_NUM_LINK_KEYS 16 39dbe92de6SMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES 16 4081862996SMatthias Ringwald 41e514a7f5SMatthias Ringwald // Mesh Configuration 42e514a7f5SMatthias Ringwald #define ENABLE_MESH 43e514a7f5SMatthias Ringwald #define ENABLE_MESH_ADV_BEARER 44e514a7f5SMatthias Ringwald #define ENABLE_MESH_GATT_BEARER 45e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_ADV 46e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_GATT 47e514a7f5SMatthias Ringwald #define ENABLE_MESH_PROXY_SERVER 48e514a7f5SMatthias Ringwald #define ENABLE_MESH_PROVISIONER 49e514a7f5SMatthias Ringwald 50e514a7f5SMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS 16 51e514a7f5SMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16 52e514a7f5SMatthias Ringwald #define MAX_NR_MESH_SUBNETS 2 53e514a7f5SMatthias Ringwald 54e514a7f5SMatthias Ringwald // allow for one NetKey update 55e514a7f5SMatthias Ringwald #define MAX_NR_MESH_NETWORK_KEYS (MAX_NR_MESH_SUBNETS+1) 56e514a7f5SMatthias Ringwald 577eac9e22SMatthias Ringwald #endif 58