-
Notifications
You must be signed in to change notification settings - Fork 9
/
Kconfig
357 lines (279 loc) · 8.75 KB
/
Kconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
# Kconfig file for package BTSTACK
menuconfig PKG_USING_BTSTACK
select RT_USING_LIBC
select RT_USING_PTHREADS
select RT_USING_POSIX
select RT_USING_POSIX_TERMIOS
bool "BTSTACK: embedded btstack"
default n
if PKG_USING_BTSTACK
config _GNU_SOURCE
int
default 1
config HAVE_DIRENT_STRUCTURE
int
default 1
config HAVE_DIR_STRUCTURE
int
default 1
config PKG_BTSTACK_PATH
string
default "/packages/iot/btstack"
# btstack office config
menu "BTSTACK stack config"
config ENABLE_LOG_ERROR
bool "btstack error log support"
default y
help
This option log error support.
config ENABLE_LOG_INFO
bool "btstack info log support"
default n
help
This option log info log support.
config ENABLE_LOG_DEBUG
bool "btstack debug log support"
default n
help
This option debug info log support.
config ENABLE_SDP_DES_DUMP
bool "btstack SDP Dump DataElement support"
default y
endmenu
menuconfig ENABLE_LE
bool "BTSTACK BLE support"
default n
if ENABLE_LE
config ENABLE_LE_PERIPHERAL
bool "btstack LE peripheral support"
default y
config ENABLE_LE_CENTRAL
bool "btstack LE central support"
default n
config ENABLE_LE_DATA_CHANNELS
bool "btstack LE data channel support"
default y
config ENABLE_LE_DATA_LENGTH_EXTENSION
bool "btstack LE data length extension"
default n
config ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE
bool "btstack L2CAP ERTM support"
default n
endif
menuconfig ENABLE_CLASSIC
bool "BTSTACK BR_EDR SUPPORT"
default n
if ENABLE_CLASSIC
config NVM_NUM_LINK_KEYS
int
default 16
config NVM_NUM_DEVICE_DB_ENTRIES
int "btstack class device link support"
default 16
config HCI_INCOMING_PRE_BUFFER_SIZE
int "HCI incomming pre in head BUFFER SIZE"
default 14
config HCI_ACL_PAYLOAD_SIZE
int "HCI acl payload size"
default 1695
#HFP
config ENABLE_HFP_WIDE_BAND_SPEECH
bool "btstack class HFP WIDE BAND support"
default n
config PKG_BTSTACK_SBC_ENC
bool "Bluetooth SBC encode support"
default n
help
This option enables Bluetooth Audio ENCODE support.
config PKG_BTSTACK_SBC_DEC
bool "Bluetooth SBC encode decode support"
default n
help
This option enables Bluetooth Audio DECODE support.
config PKG_BTSTACK_CVSD
bool "Bluetooth CVSD support"
default n
help
This option enables Bluetooth CVSD support.
config PKG_BTSTACK_AUDIO
bool "Bluetooth audio support"
default n
help
This option enables Bluetooth audio support.
config PKG_BTSTACK_SDP_CLIENT
bool "Bluetooth SDP CLIENT support"
default n
help
This option enables Bluetooth SDP client support.
config PKG_BTSTACK_HFP_AUDIO
bool "Bluetooth CVSD support"
default n
select PKG_BTSTACK_CVSD
select PKG_BTSTACK_SBC_DEC
select PKG_BTSTACK_SBC_ENC
select PKG_BTSTACK_SDP_CLIENT
select PKG_BTSTACK_AUDIO
help
This option enables Bluetooth HFP support.
endif
menuconfig ENABLE_MESH
bool "BTSTACK Mesh SUPPORT"
default n
if ENABLE_MESH
config ENABLE_MESH_ADV_BEARER
bool "support the adv bear"
default y
config ENABLE_MESH_GATT_BEARER
bool "support the gatt bear"
default y
config ENABLE_MESH_PB_ADV
bool "support the gatt bear"
default y
config ENABLE_MESH_PB_GATT
bool "provisioner gatt"
default y
config ENABLE_MESH_PROXY_SERVER
bool "provisioner server"
default y
config ENABLE_MESH_PROVISIONER
bool "provisioner server"
default y
config MAX_NR_MESH_TRANSPORT_KEYS
int
default 16
config MAX_NR_MESH_VIRTUAL_ADDRESSES
int
default 16
config MAX_NR_MESH_SUBNETS
int
default 2
config MAX_NR_MESH_NETWORK_KEYS
int
default 3
endif
menuconfig PKG_BTSTACK_SMP
bool "BTSTACK SMP SUPPORT"
default n
if PKG_BTSTACK_SMP
config ENABLE_ECC_P256
bool
default y
endif
# example
choice
prompt "BTSTACK example ALL"
default PKG_BTSTACK_SAMPLE_LE_BLUFI_SERVER
help
select the BTSTACK samples
config PKG_BTSTACK_SAMPLE_DISABLE
bool "Not enable sample"
config PKG_BTSTACK_SAMPLE_LE_BLUFI_SERVER
bool "[LE_SRV] rtthread blufi server"
select ENABLE_LE
config PKG_BTSTACK_SAMPLE_LE_COUNTER
bool "[LE_SRV] BLE peripheral le counter"
select ENABLE_LE
select ENABLE_LE_PERIPHERAL
config PKG_BTSTACK_SAMPLE_LE_DATA_CHANNEL_SERVER
bool "[LE_SRV] BLE peripheral le data channel server"
select ENABLE_LE
select ENABLE_LE_PERIPHERAL
config PKG_BTSTACK_SAMPLE_LE_STREAMER
bool "[LE_SRV] Nordic le streamer server"
select ENABLE_LE
select ENABLE_LE_PERIPHERAL
config PKG_BTSTACK_SAMPLE_NORDIC_LE_COUNTER
bool "[LE_SRV] Nordic le counter server"
select ENABLE_LE
select ENABLE_LE_PERIPHERAL
config PKG_BTSTACK_SAMPLE_UBLOX_LE_COUNTER
bool "[LE_SRV] Nordic spp ublox server"
select ENABLE_LE
select ENABLE_LE_PERIPHERAL
config PKG_BTSTACK_SAMPLE_ATT_DELAYED_RESPONSE
bool "[LE_SRV] gatt dealyed response"
select ENABLE_LE
select ENABLE_LE_PERIPHERAL
config PKG_BTSTACK_SAMPLE_SM_PAIRING_PERIPHERAL
bool "[LE_SMP_SRV] smp peripherals"
select ENABLE_LE
select ENABLE_LE_PERIPHERAL
config PKG_BTSTACK_SAMPLE_GATT_STREAMER_PERIPHERAL
bool "[LE_SRV] gatt streamer peipheral"
select ENABLE_LE
select ENABLE_LE_PERIPHERAL
config PKG_BTSTACK_SAMPLE_ANCS_CLIENT_DEMO
bool "[LE_SRV] ancs_client_demo"
select ENABLE_LE
select ENABLE_LE_PERIPHERAL
config PKG_BTSTACK_SAMPLE_HOGP_KEYBOARD_DEMO
bool "[LE_SRV_hogp] hogp keyboard demo"
select ENABLE_LE
select ENABLE_LE_PERIPHERAL
config PKG_BTSTACK_SAMPLE_HOGP_MOUSER_DEMO
bool "[LE_SRV_hogp] hogp mouser demo"
select ENABLE_LE
select ENABLE_LE_PERIPHERAL
# MESH role
config PKG_BTSTACK_SAMPLE_MESH_DEMO
bool "[MESH_NODE] MESH DEMO"
select ENABLE_LE
select ENABLE_MESH
select PKG_BTSTACK_SMP
config PKG_BTSTACK_SAMPLE_TMALL_MESH_DEMO
bool "[MESH_NODE] MESH DEMO ON TMALL ALIGEN"
select ENABLE_LE
select ENABLE_MESH
select PKG_BTSTACK_SMP
# dule mode le and bredr
config PKG_BTSTACK_SAMPLE_SPP_GATT_COUNTER_DEMO
bool "[EDR_LE_SLAVE] spp and gatt counter"
select ENABLE_LE
select ENABLE_CLASSIC
config PKG_BTSTACK_SAMPLE_SPP_GATT_STREAMER_DEMO
bool "[EDR_LE_SLAVE] spp and gatt streamer"
select ENABLE_LE
select ENABLE_CLASSIC
config PKG_BTSTACK_SAMPLE_SPP_COUNTER_DEMO
bool "[EDR_SPP_SLAVE] spp counter"
select ENABLE_CLASSIC
config PKG_BTSTACK_SAMPLE_SPP_STREAMER_DEMO
bool "[EDR_SPP_SLAVE] spp streamer"
select ENABLE_CLASSIC
# classic example
config PKG_BTSTACK_SAMPLE_HFP_HF_DEMO
bool "[EDR_HFP_SLAVE] hfp handsfree demo"
select ENABLE_CLASSIC
select PKG_BTSTACK_HFP_AUDIO
select PKG_BTSTACK_AUDIO
config PKG_BTSTACK_SAMPLE_HFP_AG_DEMO
bool "[EDR_HFP_MASTER] hfp AG demo"
select ENABLE_CLASSIC
select PKG_BTSTACK_HFP_AUDIO
select PKG_BTSTACK_AUDIO
config PKG_BTSTACK_SAMPLE_HSP_HS_DEMO
bool "[EDR_HSP_SLAVE] hfp headset demo"
select ENABLE_CLASSIC
select PKG_BTSTACK_HFP_AUDIO
select PKG_BTSTACK_AUDIO
config PKG_BTSTACK_SAMPLE_HSP_AG_DEMO
bool "[EDR_HSP_MASTER] hfp ag demo"
select ENABLE_CLASSIC
select PKG_BTSTACK_HFP_AUDIO
endchoice
# btstack config
choice
prompt "Version"
default PKG_USING_BTSTACK_LATEST_VERSION
help
Select the package version
config PKG_USING_BTSTACK_V001
bool "v0.0.1"
config PKG_USING_BTSTACK_LATEST_VERSION
bool "latest"
endchoice
config PKG_BTSTACK_VER
string
default "v0.0.1" if PKG_USING_BTSTACK_V001
default "latest" if PKG_USING_BTSTACK_LATEST_VERSION
endif