1 // 2 // btstack_config.h for mRF5-Zephyr port 3 // 4 // Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ 5 // 6 7 #ifndef BTSTACK_CONFIG_H 8 #define BTSTACK_CONFIG_H 9 10 // Port related features 11 12 // BTstack features that can be enabled 13 #define ENABLE_BLE 14 #define ENABLE_LE_CENTRAL 15 #define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE 16 #define ENABLE_LE_DATA_LENGTH_EXTENSION 17 #define ENABLE_LE_PERIPHERAL 18 #define ENABLE_LOG_ERROR 19 #define ENABLE_LOG_INFO 20 #define ENABLE_PRINTF_HEXDUMP 21 22 // BTstack configuration. buffers, sizes, ... 23 #define HCI_ACL_PAYLOAD_SIZE 260 24 #define MAX_NR_GATT_CLIENTS 1 25 #define MAX_NR_HCI_CONNECTIONS 1 26 #define MAX_NR_L2CAP_CHANNELS 1 27 #define MAX_NR_L2CAP_SERVICES 1 28 #define MAX_NR_SM_LOOKUP_ENTRIES 3 29 #define MAX_NR_WHITELIST_ENTRIES 1 30 31 #define MAX_NR_BNEP_CHANNELS 0 32 #define MAX_NR_BNEP_SERVICES 0 33 #define MAX_NR_BTSTACK_LINK_KEY_DB_MEMORY_ENTRIES 0 34 #define MAX_NR_HFP_CONNECTIONS 0 35 #define MAX_NR_LE_DEVICE_DB_ENTRIES 1 36 #define MAX_NR_RFCOMM_CHANNELS 0 37 #define MAX_NR_RFCOMM_MULTIPLEXERS 0 38 #define MAX_NR_RFCOMM_SERVICES 0 39 #define MAX_NR_SERVICE_RECORD_ITEMS 0 40 41 // hack to fix usage of hci_init in zephry 42 #define hci_init btstack_hci_init 43 44 // LE Device DB using TLV 45 #define NVM_NUM_DEVICE_DB_ENTRIES 16 46 47 #endif 48