1 // 2 // btstack_config.h for WICED port 3 // 4 5 #ifndef BTSTACK_CONFIG_H 6 #define BTSTACK_CONFIG_H 7 8 // Port related features 9 #define HAVE_AES128 10 #define HAVE_BTSTACK_STDIN 11 #define HAVE_EMBEDDED_TIME_MS 12 #define WICED_BT_UART_MANUAL_CTS_RTS 13 14 // BTstack features that can be enabled 15 #define ENABLE_BLE 16 #define ENABLE_CLASSIC 17 #define ENABLE_LE_CENTRAL 18 #define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE 19 #define ENABLE_LE_DATA_LENGTH_EXTENSION 20 #define ENABLE_LE_PERIPHERAL 21 #define ENABLE_LE_SECURE_CONNECTIONS 22 #define ENABLE_LOG_ERROR 23 #define ENABLE_LOG_INFO 24 #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS 25 #define ENABLE_PRINTF_HEXDUMP 26 27 // BTstack configuration. buffers, sizes, ... 28 #define HCI_ACL_PAYLOAD_SIZE (1691 + 4) 29 #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof BNEP header, avoid memcpy 30 #define HCI_OUTGOING_PRE_BUFFER_SIZE 4 31 32 // BTstack configuration. buffers, sizes, ... 33 #define MAX_NR_BNEP_CHANNELS 0 34 #define MAX_NR_BNEP_SERVICES 0 35 #define MAX_NR_BTSTACK_LINK_KEY_DB_MEMORY_ENTRIES 2 36 #define MAX_NR_GATT_CLIENTS 1 37 #define MAX_NR_HCI_CONNECTIONS MAX_SPP_CONNECTIONS 38 #define MAX_NR_HFP_CONNECTIONS 0 39 #define MAX_NR_L2CAP_CHANNELS (1+MAX_SPP_CONNECTIONS) 40 #define MAX_NR_L2CAP_SERVICES 2 41 #define MAX_NR_LE_DEVICE_DB_ENTRIES 1 42 #define MAX_NR_RFCOMM_CHANNELS MAX_SPP_CONNECTIONS 43 #define MAX_NR_RFCOMM_MULTIPLEXERS MAX_SPP_CONNECTIONS 44 #define MAX_NR_RFCOMM_SERVICES 1 45 #define MAX_NR_SERVICE_RECORD_ITEMS 4 46 #define MAX_NR_SM_LOOKUP_ENTRIES 3 47 #define MAX_NR_WHITELIST_ENTRIES 1 48 #define MAX_SPP_CONNECTIONS 1 49 50 // TODO: only use NVM_NUM_LE_DEVICES 51 #define NVM_NUM_DEVICE_DB_ENTRIES 16 52 #define NVM_NUM_LE_DEVICES 16 53 54 #endif 55