17eac9e22SMatthias Ringwald // 27eac9e22SMatthias Ringwald // btstack_config.h for libusb port 37eac9e22SMatthias Ringwald // 47eac9e22SMatthias Ringwald 536327e5aSMilanka Ringwald #ifndef BTSTACK_CONFIG_H 636327e5aSMilanka Ringwald #define BTSTACK_CONFIG_H 77eac9e22SMatthias Ringwald 87eac9e22SMatthias Ringwald // Port related features 9d20e3046SMatthias Ringwald #define HAVE_ASSERT 1036327e5aSMilanka Ringwald #define HAVE_BTSTACK_STDIN 117eac9e22SMatthias Ringwald #define HAVE_MALLOC 127eac9e22SMatthias Ringwald #define HAVE_POSIX_FILE_IO 137eac9e22SMatthias Ringwald #define HAVE_POSIX_TIME 147eac9e22SMatthias Ringwald 157eac9e22SMatthias Ringwald // BTstack features that can be enabled 1636327e5aSMilanka Ringwald #define ENABLE_ATT_DELAYED_RESPONSE 177eac9e22SMatthias Ringwald #define ENABLE_BLE 187eac9e22SMatthias Ringwald #define ENABLE_CLASSIC 197eac9e22SMatthias Ringwald #define ENABLE_HFP_WIDE_BAND_SPEECH 207eac9e22SMatthias Ringwald #define ENABLE_LE_CENTRAL 21*b28dc800SMatthias Ringwald #define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE 2236327e5aSMilanka Ringwald #define ENABLE_LE_DATA_LENGTH_EXTENSION 237eac9e22SMatthias Ringwald #define ENABLE_LE_PERIPHERAL 247eac9e22SMatthias Ringwald #define ENABLE_LE_SECURE_CONNECTIONS 257eac9e22SMatthias Ringwald #define ENABLE_LOG_ERROR 267eac9e22SMatthias Ringwald #define ENABLE_LOG_INFO 2736327e5aSMilanka Ringwald #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS 28606ccc9bSMilanka Ringwald #define ENABLE_PRINTF_HEXDUMP 297eac9e22SMatthias Ringwald #define ENABLE_SCO_OVER_HCI 307eac9e22SMatthias Ringwald #define ENABLE_SDP_DES_DUMP 317eac9e22SMatthias Ringwald 327eac9e22SMatthias Ringwald #define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE 337cdc89a5SMatthias Ringwald #define ENABLE_SOFTWARE_AES128 347eac9e22SMatthias Ringwald 357eac9e22SMatthias Ringwald // BTstack configuration. buffers, sizes, ... 367eac9e22SMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4) 377eac9e22SMatthias Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof BNEP header, avoid memcpy 387eac9e22SMatthias Ringwald 39dbe92de6SMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES 16 4036327e5aSMilanka Ringwald #define NVM_NUM_LINK_KEYS 16 4181862996SMatthias Ringwald 42e514a7f5SMatthias Ringwald // Mesh Configuration 43e514a7f5SMatthias Ringwald #define ENABLE_MESH 44e514a7f5SMatthias Ringwald #define ENABLE_MESH_ADV_BEARER 45e514a7f5SMatthias Ringwald #define ENABLE_MESH_GATT_BEARER 46e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_ADV 47e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_GATT 48e514a7f5SMatthias Ringwald #define ENABLE_MESH_PROVISIONER 4936327e5aSMilanka Ringwald #define ENABLE_MESH_PROXY_SERVER 50e514a7f5SMatthias Ringwald 5136327e5aSMilanka Ringwald #define MAX_NR_MESH_SUBNETS 2 52e514a7f5SMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS 16 53e514a7f5SMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16 54e514a7f5SMatthias Ringwald 55e514a7f5SMatthias Ringwald // allow for one NetKey update 56e514a7f5SMatthias Ringwald #define MAX_NR_MESH_NETWORK_KEYS (MAX_NR_MESH_SUBNETS+1) 57e514a7f5SMatthias Ringwald 587eac9e22SMatthias Ringwald #endif 59