xref: /btstack/port/nrf5-cinnamon/port/btstack_config.h (revision f11fd9a990fedbf11b7c70e38b9da44019506e13)
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
36 #define DEBUG_PIN_HF_CLOCK 19
37 #define DEBUG_PIN_ADDRESS  20
38 #define DEBUG_PIN_RX       22
39 #define DEBUG_PIN_TX       23
40 #define DEBUG_PIN_RADIO_IRQ 24
41 
42 #endif
43