xref: /btstack/port/raspi/btstack_config.h (revision 3c07636cece7e6169032e080b1d76e9475bb59d7)
1 //
2 // btstack_config.h for Raspberry Pi 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_ASSERT
12 #define HAVE_BTSTACK_STDIN
13 #define HAVE_MALLOC
14 #define HAVE_POSIX_FILE_IO
15 
16 // BTstack features that can be enabled
17 #define ENABLE_AVRCP_COVER_ART
18 #define ENABLE_BLE
19 #define ENABLE_CLASSIC
20 #define ENABLE_GOEP_L2CAP
21 #define ENABLE_H5
22 #define ENABLE_HFP_WIDE_BAND_SPEECH
23 #define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE
24 #define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE
25 #define ENABLE_LE_CENTRAL
26 #define ENABLE_LE_DATA_LENGTH_EXTENSION
27 #define ENABLE_LE_PERIPHERAL
28 #define ENABLE_LE_SECURE_CONNECTIONS
29 #define ENABLE_LOG_ERROR
30 #define ENABLE_LOG_INFO
31 #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS
32 #define ENABLE_PRINTF_HEXDUMP
33 #define ENABLE_SCO_OVER_HCI
34 #define ENABLE_SDP_DES_DUMP
35 #define ENABLE_SOFTWARE_AES128
36 
37 // Warm Boot needed if connected via Wifi on Raspberry Pi 3A+ or 3B+
38 // #define ENABLE_CONTROLLER_WARM_BOOT
39 
40 // BTstack configuration. buffers, sizes, ...
41 #define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
42 #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof BNEP header, avoid memcpy
43 #define HCI_OUTGOING_PRE_BUFFER_SIZE  4
44 
45 #define NVM_NUM_DEVICE_DB_ENTRIES      16
46 #define NVM_NUM_LINK_KEYS              16
47 
48 // Mesh Configuration
49 #define ENABLE_MESH
50 #define ENABLE_MESH_ADV_BEARER
51 #define ENABLE_MESH_GATT_BEARER
52 #define ENABLE_MESH_PB_ADV
53 #define ENABLE_MESH_PB_GATT
54 #define ENABLE_MESH_PROVISIONER
55 #define ENABLE_MESH_PROXY_SERVER
56 
57 #define MAX_NR_MESH_SUBNETS            2
58 #define MAX_NR_MESH_TRANSPORT_KEYS    16
59 #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16
60 
61 // allow for one NetKey update
62 #define MAX_NR_MESH_NETWORK_KEYS      (MAX_NR_MESH_SUBNETS+1)
63 
64 #endif
65 
66