1893dbb94SMatthias Ringwald // 2893dbb94SMatthias Ringwald // btstack_config.h for generic POSIX H4 port 3893dbb94SMatthias Ringwald // 4893dbb94SMatthias Ringwald // Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ 5893dbb94SMatthias Ringwald // 6893dbb94SMatthias Ringwald 7893dbb94SMatthias Ringwald #ifndef BTSTACK_CONFIG_H 8893dbb94SMatthias Ringwald #define BTSTACK_CONFIG_H 9893dbb94SMatthias Ringwald 10893dbb94SMatthias Ringwald // Port related features 11893dbb94SMatthias Ringwald #define HAVE_ASSERT 12893dbb94SMatthias Ringwald #define HAVE_BTSTACK_STDIN 13893dbb94SMatthias Ringwald #define HAVE_EM9304_PATCH_CONTAINER 14893dbb94SMatthias Ringwald #define HAVE_MALLOC 15893dbb94SMatthias Ringwald #define HAVE_POSIX_FILE_IO 16893dbb94SMatthias Ringwald #define HAVE_POSIX_TIME 17893dbb94SMatthias Ringwald 18893dbb94SMatthias Ringwald // BTstack features that can be enabled 19893dbb94SMatthias Ringwald #define ENABLE_ATT_DELAYED_RESPONSE 20b2b52d42SMatthias Ringwald #define ENABLE_AVRCP_COVER_ART 21893dbb94SMatthias Ringwald #define ENABLE_BLE 22893dbb94SMatthias Ringwald #define ENABLE_CLASSIC 23893dbb94SMatthias Ringwald #define ENABLE_CROSS_TRANSPORT_KEY_DERIVATION 24*3c07636cSMatthias Ringwald #define ENABLE_GOEP_L2CAP 25893dbb94SMatthias Ringwald #define ENABLE_HFP_WIDE_BAND_SPEECH 26893dbb94SMatthias Ringwald #define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE 27893dbb94SMatthias Ringwald #define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE 28b2b52d42SMatthias Ringwald #define ENABLE_LE_CENTRAL 29893dbb94SMatthias Ringwald #define ENABLE_LE_DATA_LENGTH_EXTENSION 30893dbb94SMatthias Ringwald #define ENABLE_LE_PERIPHERAL 31893dbb94SMatthias Ringwald #define ENABLE_LE_PRIVACY_ADDRESS_RESOLUTION 32893dbb94SMatthias Ringwald #define ENABLE_LE_SECURE_CONNECTIONS 33893dbb94SMatthias Ringwald #define ENABLE_LOG_ERROR 34893dbb94SMatthias Ringwald #define ENABLE_LOG_INFO 35893dbb94SMatthias Ringwald #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS 36893dbb94SMatthias Ringwald #define ENABLE_PRINTF_HEXDUMP 37893dbb94SMatthias Ringwald #define ENABLE_SCO_OVER_HCI 38893dbb94SMatthias Ringwald #define ENABLE_SDP_DES_DUMP 39893dbb94SMatthias Ringwald #define ENABLE_SOFTWARE_AES128 40893dbb94SMatthias Ringwald 41893dbb94SMatthias Ringwald // BTstack configuration. buffers, sizes, ... 42893dbb94SMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4) 43893dbb94SMatthias Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy 44893dbb94SMatthias Ringwald 45893dbb94SMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES 16 46893dbb94SMatthias Ringwald #define NVM_NUM_LINK_KEYS 16 47893dbb94SMatthias Ringwald 48893dbb94SMatthias Ringwald // Mesh Configuration 49893dbb94SMatthias Ringwald #define ENABLE_MESH 50893dbb94SMatthias Ringwald #define ENABLE_MESH_ADV_BEARER 51893dbb94SMatthias Ringwald #define ENABLE_MESH_GATT_BEARER 52893dbb94SMatthias Ringwald #define ENABLE_MESH_PB_ADV 53893dbb94SMatthias Ringwald #define ENABLE_MESH_PB_GATT 54893dbb94SMatthias Ringwald #define ENABLE_MESH_PROVISIONER 55893dbb94SMatthias Ringwald #define ENABLE_MESH_PROXY_SERVER 56893dbb94SMatthias Ringwald 57893dbb94SMatthias Ringwald #define MAX_NR_MESH_SUBNETS 2 58893dbb94SMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS 16 59893dbb94SMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16 60893dbb94SMatthias Ringwald 61893dbb94SMatthias Ringwald // allow for one NetKey update 62893dbb94SMatthias Ringwald #define MAX_NR_MESH_NETWORK_KEYS (MAX_NR_MESH_SUBNETS+1) 63893dbb94SMatthias Ringwald 64893dbb94SMatthias Ringwald #endif 65893dbb94SMatthias Ringwald 66