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