10d529a9fSMatthias Ringwald // 20d529a9fSMatthias Ringwald // btstack_config.h for libusb port 30d529a9fSMatthias Ringwald // 47907f069SMatthias Ringwald 57907f069SMatthias Ringwald #ifndef __BTSTACK_CONFIG 67907f069SMatthias Ringwald #define __BTSTACK_CONFIG 77907f069SMatthias Ringwald 80d529a9fSMatthias Ringwald // Port related features 97907f069SMatthias Ringwald #define HAVE_MALLOC 1009bb5270SMatthias Ringwald #define HAVE_POSIX_FILE_IO 117ea7688aSMatthias Ringwald #define HAVE_BTSTACK_STDIN 12d0755cd6SMatthias Ringwald #define HAVE_POSIX_TIME 130d529a9fSMatthias Ringwald 140d529a9fSMatthias Ringwald // BTstack features that can be enabled 150d529a9fSMatthias Ringwald #define ENABLE_BLE 1680b9a8caSMatthias Ringwald #define ENABLE_CLASSIC 171bbecc2bSMatthias Ringwald #define ENABLE_HFP_WIDE_BAND_SPEECH 181a682202SMatthias Ringwald #define ENABLE_LE_CENTRAL 191bbecc2bSMatthias Ringwald #define ENABLE_LE_PERIPHERAL 20faccbb29SMatthias Ringwald #define ENABLE_LE_SECURE_CONNECTIONS 211add4db5SMatthias Ringwald #define ENABLE_LE_DATA_CHANNELS 22fcae305fSMatthias Ringwald #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS 23b435e062SMatthias Ringwald #define ENABLE_LE_DATA_LENGTH_EXTENSION 24*b596325dSMatthias Ringwald #define ENABLE_LE_PRIVACY_ADDRESS_RESOLUTION 25beb20288SMatthias Ringwald #define ENABLE_ATT_DELAYED_RESPONSE 260d529a9fSMatthias Ringwald #define ENABLE_LOG_ERROR 270d529a9fSMatthias Ringwald #define ENABLE_LOG_INFO 2871c4de7aSMatthias Ringwald #define ENABLE_SCO_OVER_HCI 290d529a9fSMatthias Ringwald #define ENABLE_SDP_DES_DUMP 309974aee0SMilanka Ringwald #define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE 317cdc89a5SMatthias Ringwald #define ENABLE_SOFTWARE_AES128 32f12a3722SMilanka Ringwald 330d529a9fSMatthias Ringwald // BTstack configuration. buffers, sizes, ... 347907f069SMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4) 357907f069SMatthias Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof BNEP header, avoid memcpy 367907f069SMatthias Ringwald 37dbe92de6SMatthias Ringwald #define NVM_NUM_LINK_KEYS 16 38dbe92de6SMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES 16 39e514a7f5SMatthias 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 49cf862b36SMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS 16 50cf862b36SMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16 51cf862b36SMatthias Ringwald #define MAX_NR_MESH_SUBNETS 2 52cf862b36SMatthias Ringwald 53cf862b36SMatthias Ringwald // allow for one NetKey update 54cf862b36SMatthias Ringwald #define MAX_NR_MESH_NETWORK_KEYS (MAX_NR_MESH_SUBNETS+1) 55cf862b36SMatthias Ringwald 567907f069SMatthias Ringwald #endif 57cf862b36SMatthias Ringwald 58