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