11182cb7eSMatthias Ringwald // 21182cb7eSMatthias Ringwald // btstack_config.h for generic POSIX H4 port 31182cb7eSMatthias Ringwald // 41182cb7eSMatthias Ringwald 51182cb7eSMatthias Ringwald #ifndef BTSTACK_CONFIG_H 61182cb7eSMatthias Ringwald #define BTSTACK_CONFIG_H 71182cb7eSMatthias Ringwald 81182cb7eSMatthias Ringwald // Port related features 91182cb7eSMatthias Ringwald #define HAVE_ASSERT 101182cb7eSMatthias Ringwald #define HAVE_BTSTACK_STDIN 111182cb7eSMatthias Ringwald #define HAVE_MALLOC 121182cb7eSMatthias Ringwald #define HAVE_POSIX_FILE_IO 131182cb7eSMatthias Ringwald #define HAVE_POSIX_TIME 141182cb7eSMatthias Ringwald 151182cb7eSMatthias Ringwald // BTstack features that can be enabled 161182cb7eSMatthias Ringwald #define ENABLE_ATT_DELAYED_RESPONSE 171182cb7eSMatthias Ringwald #define ENABLE_BLE 181182cb7eSMatthias Ringwald #define ENABLE_CLASSIC 191182cb7eSMatthias Ringwald #define ENABLE_H5 201182cb7eSMatthias Ringwald #define ENABLE_HFP_WIDE_BAND_SPEECH 211182cb7eSMatthias Ringwald #define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE 221182cb7eSMatthias Ringwald #define ENABLE_LE_CENTRAL 23*b28dc800SMatthias Ringwald #define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE 241182cb7eSMatthias Ringwald #define ENABLE_LE_DATA_LENGTH_EXTENSION 251182cb7eSMatthias Ringwald #define ENABLE_LE_PERIPHERAL 261182cb7eSMatthias Ringwald #define ENABLE_LE_SECURE_CONNECTIONS 271182cb7eSMatthias Ringwald #define ENABLE_LOG_ERROR 281182cb7eSMatthias Ringwald #define ENABLE_LOG_INFO 291182cb7eSMatthias Ringwald #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS 301182cb7eSMatthias Ringwald #define ENABLE_PRINTF_HEXDUMP 311182cb7eSMatthias Ringwald #define ENABLE_SCO_OVER_HCI 321182cb7eSMatthias Ringwald #define ENABLE_SDP_DES_DUMP 331182cb7eSMatthias Ringwald #define ENABLE_SOFTWARE_AES128 341182cb7eSMatthias Ringwald 351182cb7eSMatthias Ringwald // BTstack configuration. buffers, sizes, ... 361182cb7eSMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4) 371182cb7eSMatthias Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof BNEP header, avoid memcpy 381182cb7eSMatthias Ringwald #define HCI_OUTGOING_PRE_BUFFER_SIZE 4 391182cb7eSMatthias Ringwald 401182cb7eSMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES 16 411182cb7eSMatthias Ringwald #define NVM_NUM_LINK_KEYS 16 421182cb7eSMatthias Ringwald 431182cb7eSMatthias Ringwald // Mesh Configuration 441182cb7eSMatthias Ringwald #define ENABLE_MESH 451182cb7eSMatthias Ringwald #define ENABLE_MESH_ADV_BEARER 461182cb7eSMatthias Ringwald #define ENABLE_MESH_GATT_BEARER 471182cb7eSMatthias Ringwald #define ENABLE_MESH_PB_ADV 481182cb7eSMatthias Ringwald #define ENABLE_MESH_PB_GATT 491182cb7eSMatthias Ringwald #define ENABLE_MESH_PROVISIONER 501182cb7eSMatthias Ringwald #define ENABLE_MESH_PROXY_SERVER 511182cb7eSMatthias Ringwald 521182cb7eSMatthias Ringwald #define MAX_NR_MESH_SUBNETS 2 531182cb7eSMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS 16 541182cb7eSMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16 551182cb7eSMatthias Ringwald 561182cb7eSMatthias Ringwald // allow for one NetKey update 571182cb7eSMatthias Ringwald #define MAX_NR_MESH_NETWORK_KEYS (MAX_NR_MESH_SUBNETS+1) 581182cb7eSMatthias Ringwald 591182cb7eSMatthias Ringwald #endif 601182cb7eSMatthias Ringwald 61