xref: /btstack/port/renesas-tb-s1ja-cc256x/template/btstack_example/src/btstack_config.h (revision a8d51f092f1b660d0f6921369ad2bc3f9368296c)
1 //
2 // btstack_config.h for STM32F103RB Nucleo + TI CC256B port
3 //
4 
5 #ifndef __BTSTACK_CONFIG
6 #define __BTSTACK_CONFIG
7 
8 // Port related features
9 #define HAVE_EMBEDDED_TIME_MS
10 // #define HAVE_HAL_AUDIO
11 #define HAVE_BTSTACK_STDIN
12 
13 // BTstack features that can be enabled
14 #define ENABLE_BLE
15 #define ENABLE_LE_PERIPHERAL
16 #define ENABLE_LE_CENTRAL
17 #define ENABLE_CLASSIC
18 #define ENABLE_LE_DATA_CHANNELS
19 // #define ENABLE_LOG_INFO
20 #define ENABLE_LOG_ERROR
21 #define ENABLE_SCO_OVER_HCI
22 #define ENABLE_SCO_STEREO_PLAYBACK
23 #define ENABLE_HFP_WIDE_BAND_SPEECH
24 #define ENABLE_CC256X_BAUDRATE_CHANGE_FLOWCONTROL_BUG_WORKAROUND
25 // #define ENABLE_EHCILL
26 #define ENABLE_SEGGER_RTT
27 
28 // BTstack configuration. buffers, sizes, ...
29 #define SDP_RESPONSE_BUFFER_SIZE 200
30 #define HCI_ACL_PAYLOAD_SIZE 1021
31 #define MAX_NR_GATT_CLIENTS 1
32 #define MAX_NR_HCI_CONNECTIONS 2
33 #define MAX_NR_L2CAP_SERVICES  3
34 #define MAX_NR_L2CAP_CHANNELS  4
35 #define MAX_NR_RFCOMM_MULTIPLEXERS 1
36 #define MAX_NR_RFCOMM_SERVICES 1
37 #define MAX_NR_RFCOMM_CHANNELS 1
38 #define MAX_NR_BTSTACK_LINK_KEY_DB_MEMORY_ENTRIES  2
39 #define MAX_NR_BNEP_SERVICES 1
40 #define MAX_NR_BNEP_CHANNELS 1
41 #define MAX_NR_HFP_CONNECTIONS 1
42 #define MAX_NR_WHITELIST_ENTRIES 1
43 #define MAX_NR_SM_LOOKUP_ENTRIES 3
44 #define MAX_NR_SERVICE_RECORD_ITEMS 4
45 #define MAX_NR_AVDTP_STREAM_ENDPOINTS 1
46 #define MAX_NR_AVDTP_CONNECTIONS 1
47 #define MAX_NR_AVRCP_CONNECTIONS 1
48 
49 // Link Key DB and LE Device DB using TLV on top of Flash Sector interface
50 #define NVM_NUM_LINK_KEYS 16
51 #define NVM_NUM_DEVICE_DB_ENTRIES 16
52 
53 #endif
54