1ccebdf93SMatthias Ringwald // 2*077fecbbSMilanka Ringwald // btstack_config.h for POSIX H4 + ATWILC3000 port 3*077fecbbSMilanka Ringwald // 4*077fecbbSMilanka Ringwald // Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ 5ccebdf93SMatthias Ringwald // 6ccebdf93SMatthias Ringwald 736327e5aSMilanka Ringwald #ifndef BTSTACK_CONFIG_H 836327e5aSMilanka Ringwald #define BTSTACK_CONFIG_H 9ccebdf93SMatthias Ringwald 10ccebdf93SMatthias Ringwald // Port related features 11d20e3046SMatthias Ringwald #define HAVE_ASSERT 1236327e5aSMilanka Ringwald #define HAVE_BTSTACK_STDIN 13ccebdf93SMatthias Ringwald #define HAVE_MALLOC 14ccebdf93SMatthias Ringwald #define HAVE_POSIX_FILE_IO 15ccebdf93SMatthias Ringwald #define HAVE_POSIX_TIME 16ccebdf93SMatthias Ringwald 17ccebdf93SMatthias Ringwald // BTstack features that can be enabled 18ccebdf93SMatthias Ringwald #define ENABLE_BLE 19ccebdf93SMatthias Ringwald #define ENABLE_LE_CENTRAL 20b28dc800SMatthias Ringwald #define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE 21ccebdf93SMatthias Ringwald #define ENABLE_LE_DATA_LENGTH_EXTENSION 2236327e5aSMilanka Ringwald #define ENABLE_LE_PERIPHERAL 2336327e5aSMilanka Ringwald #define ENABLE_LE_SECURE_CONNECTIONS 24ccebdf93SMatthias Ringwald #define ENABLE_LOG_ERROR 25ccebdf93SMatthias Ringwald #define ENABLE_LOG_INFO 2636327e5aSMilanka Ringwald #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS 27606ccc9bSMilanka Ringwald #define ENABLE_PRINTF_HEXDUMP 28ccebdf93SMatthias Ringwald 29ccebdf93SMatthias Ringwald // BTstack configuration. buffers, sizes, ... 30ccebdf93SMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4) 3136327e5aSMilanka Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy 32ccebdf93SMatthias Ringwald 3381862996SMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES 20 34e514a7f5SMatthias Ringwald 35e514a7f5SMatthias Ringwald // Mesh Configuration 36e514a7f5SMatthias Ringwald #define ENABLE_MESH 37e514a7f5SMatthias Ringwald #define ENABLE_MESH_ADV_BEARER 38e514a7f5SMatthias Ringwald #define ENABLE_MESH_GATT_BEARER 39e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_ADV 40e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_GATT 41e514a7f5SMatthias Ringwald #define ENABLE_MESH_PROVISIONER 4236327e5aSMilanka Ringwald #define ENABLE_MESH_PROXY_SERVER 43e514a7f5SMatthias Ringwald 4436327e5aSMilanka Ringwald #define MAX_NR_MESH_SUBNETS 2 45e514a7f5SMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS 16 46e514a7f5SMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16 47e514a7f5SMatthias Ringwald 48e514a7f5SMatthias Ringwald // allow for one NetKey update 49e514a7f5SMatthias Ringwald #define MAX_NR_MESH_NETWORK_KEYS (MAX_NR_MESH_SUBNETS+1) 50e514a7f5SMatthias Ringwald 51ccebdf93SMatthias Ringwald #endif 52ccebdf93SMatthias Ringwald 53