1 // 2 // btstack_config.h for nRF5x LL 3 // 4 5 #ifndef BTSTACK_CONFIG_H 6 #define BTSTACK_CONFIG_H 7 8 // Port related features 9 #define HAVE_EM9304_PATCH_CONTAINER 10 #define HAVE_EMBEDDED_TIME_MS 11 12 // BTstack features that can be enabled 13 #define ENABLE_BLE 14 #define ENABLE_LE_CENTRAL 15 #define ENABLE_LE_DATA_LENGTH_EXTENSION 16 #define ENABLE_LE_PERIPHERAL 17 #define ENABLE_LOG_ERROR 18 #define ENABLE_LOG_INFO 19 #define ENABLE_PRINTF_HEXDUMP 20 #define ENABLE_SEGGER_RTT 21 #define ENABLE_BTSTACK_ASSERT 22 23 // BTstack configuration. buffers, sizes, ... 24 #define HCI_ACL_PAYLOAD_SIZE 100 25 #define MAX_NR_GATT_CLIENTS 1 26 #define MAX_NR_HCI_CONNECTIONS 1 27 #define MAX_NR_L2CAP_CHANNELS 1 28 #define MAX_NR_L2CAP_SERVICES 1 29 #define MAX_NR_SM_LOOKUP_ENTRIES 3 30 #define MAX_NR_WHITELIST_ENTRIES 1 31 32 // LE Device DB using TLV on top of Flash Sector interface 33 #define NVM_NUM_DEVICE_DB_ENTRIES 16 34 35 // GPIO debugging on nRF52832 DK, P6: 17-20 are LEDs 1-4, 13-16 Butttons 1-4 36 #define DEBUG_PIN_HF_CLOCK 0 37 #define DEBUG_PIN_ADDRESS 1 38 #define DEBUG_PIN_RX 21 39 #define DEBUG_PIN_TX 5 40 #define DEBUG_PIN_RADIO_IRQ 6 41 42 #endif 43