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 20*b2b52d42SMatthias Ringwald #define ENABLE_AVRCP_COVER_ART 21893dbb94SMatthias Ringwald #define ENABLE_BLE 22893dbb94SMatthias Ringwald #define ENABLE_CLASSIC 23893dbb94SMatthias Ringwald #define ENABLE_CROSS_TRANSPORT_KEY_DERIVATION 24893dbb94SMatthias Ringwald #define ENABLE_HFP_WIDE_BAND_SPEECH 25893dbb94SMatthias Ringwald #define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE 26893dbb94SMatthias Ringwald #define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE 27*b2b52d42SMatthias Ringwald #define ENABLE_LE_CENTRAL 28893dbb94SMatthias Ringwald #define ENABLE_LE_DATA_LENGTH_EXTENSION 29893dbb94SMatthias Ringwald #define ENABLE_LE_PERIPHERAL 30893dbb94SMatthias Ringwald #define ENABLE_LE_PRIVACY_ADDRESS_RESOLUTION 31893dbb94SMatthias Ringwald #define ENABLE_LE_SECURE_CONNECTIONS 32893dbb94SMatthias Ringwald #define ENABLE_LOG_ERROR 33893dbb94SMatthias Ringwald #define ENABLE_LOG_INFO 34893dbb94SMatthias Ringwald #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS 35893dbb94SMatthias Ringwald #define ENABLE_PRINTF_HEXDUMP 36893dbb94SMatthias Ringwald #define ENABLE_SCO_OVER_HCI 37893dbb94SMatthias Ringwald #define ENABLE_SDP_DES_DUMP 38893dbb94SMatthias Ringwald #define ENABLE_SOFTWARE_AES128 39893dbb94SMatthias Ringwald 40893dbb94SMatthias Ringwald // BTstack configuration. buffers, sizes, ... 41893dbb94SMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4) 42893dbb94SMatthias Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy 43893dbb94SMatthias Ringwald 44893dbb94SMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES 16 45893dbb94SMatthias Ringwald #define NVM_NUM_LINK_KEYS 16 46893dbb94SMatthias Ringwald 47893dbb94SMatthias Ringwald // Mesh Configuration 48893dbb94SMatthias Ringwald #define ENABLE_MESH 49893dbb94SMatthias Ringwald #define ENABLE_MESH_ADV_BEARER 50893dbb94SMatthias Ringwald #define ENABLE_MESH_GATT_BEARER 51893dbb94SMatthias Ringwald #define ENABLE_MESH_PB_ADV 52893dbb94SMatthias Ringwald #define ENABLE_MESH_PB_GATT 53893dbb94SMatthias Ringwald #define ENABLE_MESH_PROVISIONER 54893dbb94SMatthias Ringwald #define ENABLE_MESH_PROXY_SERVER 55893dbb94SMatthias Ringwald 56893dbb94SMatthias Ringwald #define MAX_NR_MESH_SUBNETS 2 57893dbb94SMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS 16 58893dbb94SMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16 59893dbb94SMatthias Ringwald 60893dbb94SMatthias Ringwald // allow for one NetKey update 61893dbb94SMatthias Ringwald #define MAX_NR_MESH_NETWORK_KEYS (MAX_NR_MESH_SUBNETS+1) 62893dbb94SMatthias Ringwald 63893dbb94SMatthias Ringwald #endif 64893dbb94SMatthias Ringwald 65