Skip to content

Commit 96f4abe

Browse files
authored
btstack_config: enable most features (#424)
1 parent 82fd266 commit 96f4abe

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

pico_w/bt/config/btstack_config.h

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,30 @@
22
#define _PICO_BTSTACK_BTSTACK_CONFIG_H
33

44
// BTstack features that can be enabled
5-
#ifdef ENABLE_BLE
6-
#define ENABLE_LE_PERIPHERAL
7-
#define ENABLE_LE_CENTRAL
8-
#define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE
9-
#endif
105
#define ENABLE_LOG_INFO
116
#define ENABLE_LOG_ERROR
127
#define ENABLE_PRINTF_HEXDUMP
138
#define ENABLE_SCO_OVER_HCI
149

10+
#ifdef ENABLE_BLE
11+
#define ENABLE_GATT_CLIENT_PAIRING
12+
#define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE
13+
#define ENABLE_LE_CENTRAL
14+
#define ENABLE_LE_DATA_LENGTH_EXTENSION
15+
#define ENABLE_LE_PERIPHERAL
16+
#define ENABLE_LE_PRIVACY_ADDRESS_RESOLUTION
17+
#define ENABLE_LE_SECURE_CONNECTIONS
18+
#endif
19+
20+
#ifdef ENABLE_CLASSIC
21+
#define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE
22+
#define ENABLE_GOEP_L2CAP
23+
#endif
24+
25+
#if defined (ENABLE_CLASSIC) && defined(ENABLE_BLE)
26+
#define ENABLE_CROSS_TRANSPORT_KEY_DERIVATION
27+
#endif
28+
1529
// BTstack configuration. buffers, sizes, ...
1630
#define HCI_OUTGOING_PRE_BUFFER_SIZE 4
1731
#define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
@@ -72,8 +86,4 @@
7286
// To get the audio demos working even with HCI dump at 115200, this truncates long ACL packets
7387
//#define HCI_DUMP_STDOUT_MAX_SIZE_ACL 100
7488

75-
#ifdef ENABLE_CLASSIC
76-
#define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE
77-
#endif
78-
7989
#endif // _PICO_BTSTACK_BTSTACK_CONFIG_H

0 commit comments

Comments
 (0)