14e630824SMatthias Ringwald // 24e630824SMatthias Ringwald // btstack_config.h for libusb port 34e630824SMatthias Ringwald // 44e630824SMatthias Ringwald 54e630824SMatthias Ringwald #ifndef __BTSTACK_CONFIG 64e630824SMatthias Ringwald #define __BTSTACK_CONFIG 74e630824SMatthias Ringwald 84e630824SMatthias Ringwald // Port related features 94e630824SMatthias Ringwald #define HAVE_MALLOC 104e630824SMatthias Ringwald #define HAVE_POSIX_FILE_IO 117ea7688aSMatthias Ringwald #define HAVE_BTSTACK_STDIN 124e630824SMatthias Ringwald #define HAVE_POSIX_TIME 134e630824SMatthias Ringwald 144e630824SMatthias Ringwald // BTstack features that can be enabled 154e630824SMatthias Ringwald #define ENABLE_BLE 164e630824SMatthias Ringwald #define ENABLE_CLASSIC 171bbecc2bSMatthias Ringwald #define ENABLE_HFP_WIDE_BAND_SPEECH 18b5674ee2SMatthias Ringwald #define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE 1973d0f5e5SMatthias Ringwald #define ENABLE_LE_CENTRAL 201bbecc2bSMatthias Ringwald #define ENABLE_LE_PERIPHERAL 214e630824SMatthias Ringwald #define ENABLE_LE_SECURE_CONNECTIONS 22fcae305fSMatthias Ringwald #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS 23ff01079bSMatthias Ringwald #define ENABLE_LE_DATA_CHANNELS 24b435e062SMatthias Ringwald #define ENABLE_LE_DATA_LENGTH_EXTENSION 25*b596325dSMatthias Ringwald #define ENABLE_LE_PRIVACY_ADDRESS_RESOLUTION 264e630824SMatthias Ringwald #define ENABLE_LOG_ERROR 274e630824SMatthias Ringwald #define ENABLE_LOG_INFO 284e630824SMatthias Ringwald #define ENABLE_SCO_OVER_HCI 294e630824SMatthias Ringwald #define ENABLE_SDP_DES_DUMP 307cdc89a5SMatthias Ringwald #define ENABLE_SOFTWARE_AES128 314e630824SMatthias Ringwald 324e630824SMatthias Ringwald // BTstack configuration. buffers, sizes, ... 334e630824SMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4) 344e630824SMatthias Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof BNEP header, avoid memcpy 354e630824SMatthias Ringwald 36dbe92de6SMatthias Ringwald #define NVM_NUM_LINK_KEYS 16 37dbe92de6SMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES 16 38e514a7f5SMatthias Ringwald 39e514a7f5SMatthias Ringwald // Mesh Configuration 40e514a7f5SMatthias Ringwald #define ENABLE_MESH 41e514a7f5SMatthias Ringwald #define ENABLE_MESH_ADV_BEARER 42e514a7f5SMatthias Ringwald #define ENABLE_MESH_GATT_BEARER 43e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_ADV 44e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_GATT 45e514a7f5SMatthias Ringwald #define ENABLE_MESH_PROXY_SERVER 46e514a7f5SMatthias Ringwald #define ENABLE_MESH_PROVISIONER 47e514a7f5SMatthias Ringwald 48e514a7f5SMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS 16 49e514a7f5SMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16 50e514a7f5SMatthias Ringwald #define MAX_NR_MESH_SUBNETS 2 51e514a7f5SMatthias Ringwald 52e514a7f5SMatthias Ringwald // allow for one NetKey update 53e514a7f5SMatthias Ringwald #define MAX_NR_MESH_NETWORK_KEYS (MAX_NR_MESH_SUBNETS+1) 54e514a7f5SMatthias Ringwald 55e514a7f5SMatthias Ringwald 564e630824SMatthias Ringwald #endif 57