1ccebdf93SMatthias Ringwald // 2ccebdf93SMatthias Ringwald // btstack_config.h for generic POSIX H4 port 3ccebdf93SMatthias Ringwald // 4ccebdf93SMatthias Ringwald 536327e5aSMilanka Ringwald #ifndef BTSTACK_CONFIG_H 636327e5aSMilanka Ringwald #define BTSTACK_CONFIG_H 7ccebdf93SMatthias Ringwald 8ccebdf93SMatthias Ringwald // Port related features 9d20e3046SMatthias Ringwald #define HAVE_ASSERT 1036327e5aSMilanka Ringwald #define HAVE_BTSTACK_STDIN 11ccebdf93SMatthias Ringwald #define HAVE_MALLOC 12ccebdf93SMatthias Ringwald #define HAVE_POSIX_FILE_IO 13ccebdf93SMatthias Ringwald #define HAVE_POSIX_TIME 14ccebdf93SMatthias Ringwald 15ccebdf93SMatthias Ringwald // BTstack features that can be enabled 16ccebdf93SMatthias Ringwald #define ENABLE_BLE 17ccebdf93SMatthias Ringwald #define ENABLE_LE_CENTRAL 18*b28dc800SMatthias Ringwald #define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE 19ccebdf93SMatthias Ringwald #define ENABLE_LE_DATA_LENGTH_EXTENSION 2036327e5aSMilanka Ringwald #define ENABLE_LE_PERIPHERAL 2136327e5aSMilanka Ringwald #define ENABLE_LE_SECURE_CONNECTIONS 22ccebdf93SMatthias Ringwald #define ENABLE_LOG_ERROR 23ccebdf93SMatthias Ringwald #define ENABLE_LOG_INFO 2436327e5aSMilanka Ringwald #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS 25606ccc9bSMilanka Ringwald #define ENABLE_PRINTF_HEXDUMP 26ccebdf93SMatthias Ringwald 27ccebdf93SMatthias Ringwald // BTstack configuration. buffers, sizes, ... 28ccebdf93SMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4) 2936327e5aSMilanka Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy 30ccebdf93SMatthias Ringwald 3181862996SMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES 20 32e514a7f5SMatthias Ringwald 33e514a7f5SMatthias Ringwald // Mesh Configuration 34e514a7f5SMatthias Ringwald #define ENABLE_MESH 35e514a7f5SMatthias Ringwald #define ENABLE_MESH_ADV_BEARER 36e514a7f5SMatthias Ringwald #define ENABLE_MESH_GATT_BEARER 37e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_ADV 38e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_GATT 39e514a7f5SMatthias Ringwald #define ENABLE_MESH_PROVISIONER 4036327e5aSMilanka Ringwald #define ENABLE_MESH_PROXY_SERVER 41e514a7f5SMatthias Ringwald 4236327e5aSMilanka Ringwald #define MAX_NR_MESH_SUBNETS 2 43e514a7f5SMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS 16 44e514a7f5SMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16 45e514a7f5SMatthias Ringwald 46e514a7f5SMatthias Ringwald // allow for one NetKey update 47e514a7f5SMatthias Ringwald #define MAX_NR_MESH_NETWORK_KEYS (MAX_NR_MESH_SUBNETS+1) 48e514a7f5SMatthias Ringwald 49ccebdf93SMatthias Ringwald #endif 50ccebdf93SMatthias Ringwald 51