1*1182cb7eSMatthias Ringwald // 2*1182cb7eSMatthias Ringwald // btstack_config.h for generic POSIX H4 port 3*1182cb7eSMatthias Ringwald // 4*1182cb7eSMatthias Ringwald 5*1182cb7eSMatthias Ringwald #ifndef BTSTACK_CONFIG_H 6*1182cb7eSMatthias Ringwald #define BTSTACK_CONFIG_H 7*1182cb7eSMatthias Ringwald 8*1182cb7eSMatthias Ringwald // Port related features 9*1182cb7eSMatthias Ringwald #define HAVE_ASSERT 10*1182cb7eSMatthias Ringwald #define HAVE_BTSTACK_STDIN 11*1182cb7eSMatthias Ringwald #define HAVE_MALLOC 12*1182cb7eSMatthias Ringwald #define HAVE_POSIX_FILE_IO 13*1182cb7eSMatthias Ringwald #define HAVE_POSIX_TIME 14*1182cb7eSMatthias Ringwald 15*1182cb7eSMatthias Ringwald // BTstack features that can be enabled 16*1182cb7eSMatthias Ringwald #define ENABLE_ATT_DELAYED_RESPONSE 17*1182cb7eSMatthias Ringwald #define ENABLE_BLE 18*1182cb7eSMatthias Ringwald #define ENABLE_CLASSIC 19*1182cb7eSMatthias Ringwald #define ENABLE_H5 20*1182cb7eSMatthias Ringwald #define ENABLE_HFP_WIDE_BAND_SPEECH 21*1182cb7eSMatthias Ringwald #define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE 22*1182cb7eSMatthias Ringwald #define ENABLE_LE_CENTRAL 23*1182cb7eSMatthias Ringwald #define ENABLE_LE_DATA_CHANNELS 24*1182cb7eSMatthias Ringwald #define ENABLE_LE_DATA_LENGTH_EXTENSION 25*1182cb7eSMatthias Ringwald #define ENABLE_LE_PERIPHERAL 26*1182cb7eSMatthias Ringwald #define ENABLE_LE_SECURE_CONNECTIONS 27*1182cb7eSMatthias Ringwald #define ENABLE_LOG_ERROR 28*1182cb7eSMatthias Ringwald #define ENABLE_LOG_INFO 29*1182cb7eSMatthias Ringwald #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS 30*1182cb7eSMatthias Ringwald #define ENABLE_PRINTF_HEXDUMP 31*1182cb7eSMatthias Ringwald #define ENABLE_SCO_OVER_HCI 32*1182cb7eSMatthias Ringwald #define ENABLE_SDP_DES_DUMP 33*1182cb7eSMatthias Ringwald #define ENABLE_SOFTWARE_AES128 34*1182cb7eSMatthias Ringwald 35*1182cb7eSMatthias Ringwald // BTstack configuration. buffers, sizes, ... 36*1182cb7eSMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4) 37*1182cb7eSMatthias Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof BNEP header, avoid memcpy 38*1182cb7eSMatthias Ringwald #define HCI_OUTGOING_PRE_BUFFER_SIZE 4 39*1182cb7eSMatthias Ringwald 40*1182cb7eSMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES 16 41*1182cb7eSMatthias Ringwald #define NVM_NUM_LINK_KEYS 16 42*1182cb7eSMatthias Ringwald 43*1182cb7eSMatthias Ringwald // Mesh Configuration 44*1182cb7eSMatthias Ringwald #define ENABLE_MESH 45*1182cb7eSMatthias Ringwald #define ENABLE_MESH_ADV_BEARER 46*1182cb7eSMatthias Ringwald #define ENABLE_MESH_GATT_BEARER 47*1182cb7eSMatthias Ringwald #define ENABLE_MESH_PB_ADV 48*1182cb7eSMatthias Ringwald #define ENABLE_MESH_PB_GATT 49*1182cb7eSMatthias Ringwald #define ENABLE_MESH_PROVISIONER 50*1182cb7eSMatthias Ringwald #define ENABLE_MESH_PROXY_SERVER 51*1182cb7eSMatthias Ringwald 52*1182cb7eSMatthias Ringwald #define MAX_NR_MESH_SUBNETS 2 53*1182cb7eSMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS 16 54*1182cb7eSMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16 55*1182cb7eSMatthias Ringwald 56*1182cb7eSMatthias Ringwald // allow for one NetKey update 57*1182cb7eSMatthias Ringwald #define MAX_NR_MESH_NETWORK_KEYS (MAX_NR_MESH_SUBNETS+1) 58*1182cb7eSMatthias Ringwald 59*1182cb7eSMatthias Ringwald #endif 60*1182cb7eSMatthias Ringwald 61