xref: /btstack/port/stm32-f4discovery-usb/port/btstack_config.h (revision e0a94143c1f0305eb5125b599df7b54ca2d10b42)
1 //
2 // btstack_config.h for STM32 F4 Discovery + USB Bluetooth Dongle 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 #define HAVE_BTSTACK_STDIN
12 #define HAVE_EMBEDDED_TIME_MS
13 #define HAVE_HAL_AUDIO
14 #define HAVE_HAL_AUDIO_SINK_STEREO_ONLY
15 #define HAVE_BTSTACK_AUDIO_EFFECTIVE_SAMPLERATE
16 
17 // BTstack features that can be enabled
18 #define ENABLE_BLE
19 #define ENABLE_BTSTACK_ASSERT
20 #define ENABLE_CC256X_BAUDRATE_CHANGE_FLOWCONTROL_BUG_WORKAROUND
21 #define ENABLE_CLASSIC
22 #define ENABLE_HFP_WIDE_BAND_SPEECH
23 #define ENABLE_LE_CENTRAL
24 #define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE
25 #define ENABLE_LE_PERIPHERAL
26 #define ENABLE_LOG_INFO
27 #define ENABLE_LOG_ERROR
28 #define ENABLE_PRINTF_HEXDUMP
29 #define ENABLE_SCO_OVER_HCI
30 #define ENABLE_SCO_STEREO_PLAYBACK
31 #define ENABLE_SEGGER_RTT
32 
33 // BTstack configuration. buffers, sizes, ...
34 #define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
35 #define MAX_NR_AVDTP_CONNECTIONS 1
36 #define MAX_NR_AVDTP_STREAM_ENDPOINTS 1
37 #define MAX_NR_AVRCP_CONNECTIONS 2
38 #define MAX_NR_BNEP_CHANNELS 1
39 #define MAX_NR_BNEP_SERVICES 1
40 #define MAX_NR_BTSTACK_LINK_KEY_DB_MEMORY_ENTRIES  2
41 #define MAX_NR_GATT_CLIENTS 1
42 #define MAX_NR_HCI_CONNECTIONS 2
43 #define MAX_NR_HFP_CONNECTIONS 1
44 #define MAX_NR_HID_HOST_CONNECTIONS 1
45 #define MAX_NR_HIDS_CLIENTS 1
46 #define MAX_NR_L2CAP_CHANNELS  4
47 #define MAX_NR_L2CAP_SERVICES  3
48 #define MAX_NR_RFCOMM_CHANNELS 1
49 #define MAX_NR_RFCOMM_MULTIPLEXERS 1
50 #define MAX_NR_RFCOMM_SERVICES 1
51 #define MAX_NR_SERVICE_RECORD_ITEMS 4
52 #define MAX_NR_SM_LOOKUP_ENTRIES 3
53 #define MAX_NR_WHITELIST_ENTRIES 1
54 
55 // Link Key DB and LE Device DB using TLV on top of Flash Sector interface
56 #define NVM_NUM_DEVICE_DB_ENTRIES 16
57 #define NVM_NUM_LINK_KEYS 16
58 
59 #endif
60