xref: /btstack/port/archive/wiced-h5/btstack_config.h (revision b28dc8004dd8d4fb9020a6dcd2bc81f05d36a008)
11182cb7eSMatthias Ringwald //
21182cb7eSMatthias Ringwald // btstack_config.h for WICED port
31182cb7eSMatthias Ringwald //
41182cb7eSMatthias Ringwald 
51182cb7eSMatthias Ringwald #ifndef BTSTACK_CONFIG_H
61182cb7eSMatthias Ringwald #define BTSTACK_CONFIG_H
71182cb7eSMatthias Ringwald 
81182cb7eSMatthias Ringwald // Port related features
91182cb7eSMatthias Ringwald #define HAVE_AES128
101182cb7eSMatthias Ringwald #define HAVE_BTSTACK_STDIN
111182cb7eSMatthias Ringwald #define HAVE_EMBEDDED_TIME_MS
121182cb7eSMatthias Ringwald #define WICED_BT_UART_MANUAL_CTS_RTS
131182cb7eSMatthias Ringwald 
141182cb7eSMatthias Ringwald // BTstack features that can be enabled
151182cb7eSMatthias Ringwald #define ENABLE_BLE
161182cb7eSMatthias Ringwald #define ENABLE_CLASSIC
171182cb7eSMatthias Ringwald #define ENABLE_LE_CENTRAL
18*b28dc800SMatthias Ringwald #define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE
191182cb7eSMatthias Ringwald #define ENABLE_LE_DATA_LENGTH_EXTENSION
201182cb7eSMatthias Ringwald #define ENABLE_LE_PERIPHERAL
211182cb7eSMatthias Ringwald #define ENABLE_LE_SECURE_CONNECTIONS
221182cb7eSMatthias Ringwald #define ENABLE_LOG_ERROR
231182cb7eSMatthias Ringwald #define ENABLE_LOG_INFO
241182cb7eSMatthias Ringwald #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS
251182cb7eSMatthias Ringwald #define ENABLE_PRINTF_HEXDUMP
261182cb7eSMatthias Ringwald 
271182cb7eSMatthias Ringwald // BTstack configuration. buffers, sizes, ...
281182cb7eSMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
291182cb7eSMatthias Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof BNEP header, avoid memcpy
301182cb7eSMatthias Ringwald #define HCI_OUTGOING_PRE_BUFFER_SIZE  4
311182cb7eSMatthias Ringwald 
321182cb7eSMatthias Ringwald // BTstack configuration. buffers, sizes, ...
331182cb7eSMatthias Ringwald #define MAX_NR_BNEP_CHANNELS 0
341182cb7eSMatthias Ringwald #define MAX_NR_BNEP_SERVICES 0
351182cb7eSMatthias Ringwald #define MAX_NR_BTSTACK_LINK_KEY_DB_MEMORY_ENTRIES 2
361182cb7eSMatthias Ringwald #define MAX_NR_GATT_CLIENTS 1
371182cb7eSMatthias Ringwald #define MAX_NR_HCI_CONNECTIONS MAX_SPP_CONNECTIONS
381182cb7eSMatthias Ringwald #define MAX_NR_HFP_CONNECTIONS 0
391182cb7eSMatthias Ringwald #define MAX_NR_L2CAP_CHANNELS  (1+MAX_SPP_CONNECTIONS)
401182cb7eSMatthias Ringwald #define MAX_NR_L2CAP_SERVICES  2
411182cb7eSMatthias Ringwald #define MAX_NR_LE_DEVICE_DB_ENTRIES 1
421182cb7eSMatthias Ringwald #define MAX_NR_RFCOMM_CHANNELS MAX_SPP_CONNECTIONS
431182cb7eSMatthias Ringwald #define MAX_NR_RFCOMM_MULTIPLEXERS MAX_SPP_CONNECTIONS
441182cb7eSMatthias Ringwald #define MAX_NR_RFCOMM_SERVICES 1
451182cb7eSMatthias Ringwald #define MAX_NR_SERVICE_RECORD_ITEMS 4
461182cb7eSMatthias Ringwald #define MAX_NR_SM_LOOKUP_ENTRIES 3
471182cb7eSMatthias Ringwald #define MAX_NR_WHITELIST_ENTRIES 1
481182cb7eSMatthias Ringwald #define MAX_SPP_CONNECTIONS 1
491182cb7eSMatthias Ringwald 
501182cb7eSMatthias Ringwald // TODO: only use NVM_NUM_LE_DEVICES
511182cb7eSMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES      16
521182cb7eSMatthias Ringwald #define NVM_NUM_LE_DEVICES             16
531182cb7eSMatthias Ringwald 
541182cb7eSMatthias Ringwald #endif
55