194a5538cSMatthias Ringwald // 2*077fecbbSMilanka Ringwald // btstack_config.h for POSIX H5 port 3*077fecbbSMilanka Ringwald // 4*077fecbbSMilanka Ringwald // Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ 594a5538cSMatthias Ringwald // 694a5538cSMatthias Ringwald 736327e5aSMilanka Ringwald #ifndef BTSTACK_CONFIG_H 836327e5aSMilanka Ringwald #define BTSTACK_CONFIG_H 994a5538cSMatthias Ringwald 1094a5538cSMatthias Ringwald // Port related features 11d20e3046SMatthias Ringwald #define HAVE_ASSERT 1236327e5aSMilanka Ringwald #define HAVE_BTSTACK_STDIN 1394a5538cSMatthias Ringwald #define HAVE_MALLOC 1494a5538cSMatthias Ringwald #define HAVE_POSIX_FILE_IO 1594a5538cSMatthias Ringwald #define HAVE_POSIX_TIME 1694a5538cSMatthias Ringwald 1794a5538cSMatthias Ringwald // BTstack features that can be enabled 1894a5538cSMatthias Ringwald #define ENABLE_BLE 1994a5538cSMatthias Ringwald #define ENABLE_CLASSIC 2008b9cddcSMatthias Ringwald #define ENABLE_H5 211bbecc2bSMatthias Ringwald #define ENABLE_HFP_WIDE_BAND_SPEECH 22e5b6c4e9SMatthias Ringwald #define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE 231a682202SMatthias Ringwald #define ENABLE_LE_CENTRAL 24b28dc800SMatthias Ringwald #define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE 25b435e062SMatthias Ringwald #define ENABLE_LE_DATA_LENGTH_EXTENSION 2636327e5aSMilanka Ringwald #define ENABLE_LE_PERIPHERAL 2736327e5aSMilanka Ringwald #define ENABLE_LE_SECURE_CONNECTIONS 2894a5538cSMatthias Ringwald #define ENABLE_LOG_ERROR 2994a5538cSMatthias Ringwald #define ENABLE_LOG_INFO 3036327e5aSMilanka Ringwald #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS 31606ccc9bSMilanka Ringwald #define ENABLE_PRINTF_HEXDUMP 3294a5538cSMatthias Ringwald #define ENABLE_SCO_OVER_HCI 3394a5538cSMatthias Ringwald #define ENABLE_SDP_DES_DUMP 3494a5538cSMatthias Ringwald 3594a5538cSMatthias Ringwald // BTstack configuration. buffers, sizes, ... 3694a5538cSMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4) 3736327e5aSMilanka Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy 3808b9cddcSMatthias Ringwald #define HCI_OUTGOING_PRE_BUFFER_SIZE 4 3994a5538cSMatthias Ringwald 40dbe92de6SMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES 16 4136327e5aSMilanka Ringwald #define NVM_NUM_LINK_KEYS 16 4281862996SMatthias Ringwald 43e514a7f5SMatthias Ringwald 44e514a7f5SMatthias Ringwald // Mesh Configuration 45e514a7f5SMatthias Ringwald #define ENABLE_MESH 46e514a7f5SMatthias Ringwald #define ENABLE_MESH_ADV_BEARER 47e514a7f5SMatthias Ringwald #define ENABLE_MESH_GATT_BEARER 48e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_ADV 49e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_GATT 50e514a7f5SMatthias Ringwald #define ENABLE_MESH_PROVISIONER 5136327e5aSMilanka Ringwald #define ENABLE_MESH_PROXY_SERVER 52e514a7f5SMatthias Ringwald 5336327e5aSMilanka Ringwald #define MAX_NR_MESH_SUBNETS 2 54e514a7f5SMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS 16 55e514a7f5SMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16 56e514a7f5SMatthias Ringwald 57e514a7f5SMatthias Ringwald // allow for one NetKey update 58e514a7f5SMatthias Ringwald #define MAX_NR_MESH_NETWORK_KEYS (MAX_NR_MESH_SUBNETS+1) 59e514a7f5SMatthias Ringwald 6094a5538cSMatthias Ringwald #endif 6194a5538cSMatthias Ringwald 62