1 /*
2  * Copyright (C) 2019-2020 Alibaba Group Holding Limited
3  */
4 
5 #ifndef _BLE_DEFAULT_CONFIG_H_
6 #define _BLE_DEFAULT_CONFIG_H_
7 
8 #ifndef CONFIG_BT
9 #error "CONFIG_BT is not defined!!!"
10 #endif
11 
12 #ifdef CONFIG_BT
13 
14 #ifndef CONFIG_NET_BUF_USER_DATA_SIZE
15 #define CONFIG_NET_BUF_USER_DATA_SIZE 4
16 #endif
17 
18 #ifndef CONFIG_BT_HCI
19 #define CONFIG_BT_HCI 1
20 #endif
21 
22 #ifdef CONFIG_BT_HCI
23 
24 #ifndef CONFIG_BT_H4
25 /* Bluetooth H:4 UART driver. Requires hardware flow control lines to be available. */
26 #define CONFIG_BT_H4 1
27 #endif
28 
29 #ifdef CONFIG_BT_H5
30 #undef CONFIG_BT_H4
31 #endif
32 
33 #ifdef CONFIG_BT_H4
34 //#define CONFIG_BT_RECV_IS_RX_THREAD 1
35 #endif
36 
37 #ifndef CONFIG_BT_CENTRAL
38 //#define CONFIG_BT_CENTRAL 1
39 #endif
40 
41 #ifndef CONFIG_BT_PERIPHERAL
42 #ifndef CONFIG_BT_CENTRAL
43 #define CONFIG_BT_PERIPHERAL 1
44 #endif
45 #endif
46 
47 /* Select this for LE Peripheral role support. */
48 #ifdef CONFIG_BT_PERIPHERAL
49 
50 #ifndef CONFIG_BT_BROADCASTER
51 #define CONFIG_BT_BROADCASTER 1
52 #endif
53 
54 #ifndef CONFIG_BT_CONN
55 #define CONFIG_BT_CONN 1
56 #endif
57 
58 #endif // CONFIG_BT_PERIPHERAL
59 
60 /* Select this for LE Central role support. */
61 #ifdef CONFIG_BT_CENTRAL
62 
63 #ifndef CONFIG_BT_OBSERVER
64 #define CONFIG_BT_OBSERVER 1
65 #endif
66 
67 #ifndef CONFIG_BT_CONN
68 #define CONFIG_BT_CONN 1
69 #endif
70 
71 #endif // CONFIG_BT_CENTRAL
72 
73 /* Select this for LE Broadcaster role support. */
74 #ifndef CONFIG_BT_PERIPHERAL
75 #ifndef CONFIG_BT_OBSERVER
76 #ifndef CONFIG_BT_BROADCASTER
77 #define CONFIG_BT_BROADCASTER 1
78 #endif
79 #endif
80 #endif //!CONFIG_BT_PERIPHERAL
81 
82 /* Select this for LE Observer role support. */
83 //#define CONFIG_BT_OBSERVER 1
84 
85 /* Enable support for Bluetooth 5.0 PHY Update Procedure. */
86 #ifndef CONFIG_BT_PHY_UPDATE
87 #define CONFIG_BT_PHY_UPDATE 1
88 #endif
89 
90 /* Enable support for Bluetooth 5.0 PHY Update Procedure. */
91 #ifndef CONFIG_BT_DATA_LEN_UPDATE
92 #define CONFIG_BT_DATA_LEN_UPDATE 1
93 #endif
94 
95 
96 #ifdef CONFIG_BT_CONN
97 
98 /* Maximum number of simultaneous Bluetooth connections supported. */
99 #ifndef CONFIG_BT_MAX_CONN
100 #define CONFIG_BT_MAX_CONN 1
101 #endif
102 
103 #ifndef CONFIG_BT_HCI_ACL_FLOW_CONTROL
104 //#define CONFIG_BT_HCI_ACL_FLOW_CONTROL 1
105 #endif
106 
107 #endif //CONFIG_BT_CONN
108 
109 #ifndef CONFIG_BT_HCI_HOST
110 #define CONFIG_BT_HCI_HOST 1
111 #endif
112 
113 /* Number of buffers available for HCI commands. */
114 #ifndef CONFIG_BT_HCI_CMD_COUNT
115 #define CONFIG_BT_HCI_CMD_COUNT 2
116 #endif
117 
118 /* Number of buffers available for incoming ACL packets or HCI events from the controller. */
119 #ifndef CONFIG_BT_RX_BUF_COUNT
120 #ifdef CONFIG_BT_RECV_IS_RX_THREAD
121 #define CONFIG_BT_RX_BUF_COUNT 3
122 #elif defined(CONFIG_BT_MESH)
123 #define CONFIG_BT_RX_BUF_COUNT 20
124 #else
125 #define CONFIG_BT_RX_BUF_COUNT 3
126 #endif
127 #endif
128 
129 /* Number of discardable event buffers. */
130 #ifndef CONFIG_BT_DISCARDABLE_BUF_COUNT
131 #ifdef CONFIG_BT_MESH
132 #define CONFIG_BT_DISCARDABLE_BUF_COUNT 20
133 #else
134 #define CONFIG_BT_DISCARDABLE_BUF_COUNT 3
135 #endif
136 #endif
137 
138 /* Size of discardable event buffers. */
139 #ifndef CONFIG_BT_DISCARDABLE_BUF_SIZE
140 #if defined(CONFIG_BT_BREDR) || defined(CONFIG_BT_EXT_ADV)
141 #define CONFIG_BT_DISCARDABLE_BUF_SIZE 257
142 #else
143 #define CONFIG_BT_DISCARDABLE_BUF_SIZE 45
144 #endif
145 #endif
146 
147 /* GATT Service Changed support. */
148 #ifndef CONFIG_BT_GATT_SERVICE_CHANGED
149 #define CONFIG_BT_GATT_SERVICE_CHANGED 1
150 #endif
151 
152 /* GATT dynamic database support. */
153 #ifndef CONFIG_BT_GATT_DYNAMIC_DB
154 #define CONFIG_BT_GATT_DYNAMIC_DB
155 #endif
156 
157 /* Maximum data size for each HCI RX buffer. This size includes
158 	  everything starting with the ACL or HCI event headers. Note that
159 	  buffer sizes are always rounded up to the nearest multiple of 4,
160 	  so if this Kconfig value is something else then there will be some
161 	  wasted space. The minimum of 73 has been taken for LE SC which has
162 	  an L2CAP MTU of 65 bytes. On top of this there's the L2CAP header
163 	  (4 bytes) and the ACL header (also 4 bytes) which yields 73 bytes. */
164 #ifndef CONFIG_BT_RX_BUF_LEN
165 #ifdef CONFIG_BT_MESH_PROXY
166 #define CONFIG_BT_RX_BUF_LEN 77
167 #else
168 #define CONFIG_BT_RX_BUF_LEN 76
169 #endif
170 #endif
171 
172 /* Stack size needed for executing bt_send with specified driver */
173 #ifndef CONFIG_BT_HCI_TX_STACK_SIZE
174 #define CONFIG_BT_HCI_TX_STACK_SIZE 1536
175 #endif
176 
177 /* Stack size needed for executing bt_send with specified driver */
178 #ifndef CONFIG_BT_HCI_TX_PRIO
179 #define CONFIG_BT_HCI_TX_PRIO 7
180 #endif
181 
182 /* Headroom that the driver needs for sending and receiving buffers. */
183 #ifndef CONFIG_BT_HCI_RESERVE
184 #if defined(CONFIG_BT_H4) || defined(CONFIG_BT_H5)
185 #define CONFIG_BT_HCI_RESERVE 1
186 #else
187 #define CONFIG_BT_HCI_RESERVE 1
188 #endif
189 #endif
190 
191 /* Size of the receiving thread stack. This is the context from
192 	  which all event callbacks to the application occur. The
193 	  default value is sufficient for basic operation, but if the
194 	  application needs to do advanced things in its callbacks that
195 	  require extra stack space, this value can be increased to
196 	  accommodate for that. */
197 #ifndef CONFIG_BT_RX_STACK_SIZE
198 #define CONFIG_BT_RX_STACK_SIZE 2048
199 #endif
200 
201 #ifndef CONFIG_BT_RX_PRIO
202 #define CONFIG_BT_RX_PRIO 8
203 #endif
204 
205 #ifdef CONFIG_BT_HCI_HOST
206 
207 /* Controller crypto feature */
208 #ifndef CONFIG_BT_CTLR_CRYPTO
209 //#define CONFIG_BT_CTLR_CRYPTO 1
210 #endif
211 
212 /* Host crypto feature */
213 #ifndef CONFIG_BT_CTLR_CRYPTO
214 #define CONFIG_BT_HOST_CRYPTO 1
215 #endif
216 
217 #ifndef CONFIG_BT_SETTINGS
218 #define CONFIG_BT_SETTINGS 1
219 #endif
220 
221 /* 	  Store Client Configuration Characteristic value right after it has
222 	  been updated.
223 
224 	  By default, CCC is only stored on disconnection.
225 	  Choosing this option is safer for battery-powered devices or devices
226 	  that expect to be reset suddenly. However, it requires additional
227 	  workqueue stack space. */
228 #ifndef CONFIG_BT_SETTINGS_CCC_STORE_ON_WRITE
229 #ifdef CONFIG_BT_SETTINGS
230 //#define CONFIG_BT_SETTINGS_CCC_STORE_ON_WRITE 1
231 #endif
232 #endif
233 
234 
235 #ifdef CONFIG_BT_CONN
236 
237 #ifdef CONFIG_BT_HCI_ACL_FLOW_CONTROL
238 
239 #ifndef CONFIG_BT_ACL_RX_COUNT
240 #define CONFIG_BT_ACL_RX_COUNT 6
241 #endif
242 
243 /* Maximum size of each incoming L2CAP PDU. */
244 #ifndef CONFIG_BT_L2CAP_RX_MTU
245 #ifdef CONFIG_BT_SMP
246 #define CONFIG_BT_L2CAP_RX_MTU 65
247 #else
248 #define CONFIG_BT_L2CAP_RX_MTU 23
249 #endif
250 #endif
251 
252 #endif //CONFIG_BT_HCI_ACL_FLOW_CONTROL
253 
254 /* Number of buffers available for outgoing L2CAP packets. */
255 #ifndef CONFIG_BT_L2CAP_TX_BUF_COUNT
256 #define CONFIG_BT_L2CAP_TX_BUF_COUNT 3
257 #endif
258 
259 /* Maximum number of queued outgoing ATT PDUs. */
260 #ifndef CONFIG_BT_ATT_TX_MAX
261 #define CONFIG_BT_ATT_TX_MAX CONFIG_BT_L2CAP_TX_BUF_COUNT
262 #endif
263 
264 /* Number of buffers available for fragments of TX buffers. Warning:
265 	  setting this to 0 means that the application must ensure that
266 	  queued TX buffers never need to be fragmented, i.e. that the
267 	  controller's buffer size is large enough. If this is not ensured,
268 	  and there are no dedicated fragment buffers, a deadlock may occur.
269 	  In most cases the default value of 2 is a safe bet. */
270 #ifndef CONFIG_BT_L2CAP_TX_FRAG_COUNT
271 #define CONFIG_BT_L2CAP_TX_FRAG_COUNT 2
272 #endif
273 
274 /*  Maximum L2CAP MTU for L2CAP TX buffers. */
275 #ifndef CONFIG_BT_L2CAP_TX_MTU
276 #ifdef CONFIG_BT_SMP
277 #define CONFIG_BT_L2CAP_TX_MTU 65
278 #else
279 #define CONFIG_BT_L2CAP_TX_MTU 23
280 #endif
281 #endif
282 
283 /* Maximum number of pending TX buffers that have not yet been acknowledged by the controller.*/
284 #ifndef CONFIG_BT_CONN_TX_MAX
285 #define CONFIG_BT_CONN_TX_MAX 7
286 #endif
287 
288 /* Initiate PHY Update Procedure on connection establishment.
289 
290 	  Disable this if you want PHY Update Procedure feature supported but
291 	  want to rely on remote device to initiate the procedure at its
292 	  discretion.*/
293 #ifndef CONFIG_BT_AUTO_PHY_UPDATE
294 #ifdef CONFIG_BT_PHY_UPDATE
295 #define CONFIG_BT_AUTO_PHY_UPDATE 1
296 #endif
297 #endif
298 
299 /* This option enables support for the Security Manager Protocol
300 	  (SMP), making it possible to pair devices over LE. */
301 #ifndef CONFIG_BT_SMP
302 //#define CONFIG_BT_SMP 1
303 #endif
304 
305 #ifdef CONFIG_BT_SMP
306 
307 #ifndef CONFIG_BT_RPA
308 #define CONFIG_BT_RPA 1
309 #endif
310 
311 /* Enable local Privacy Feature support. This makes it possible
312 	  to use Resolvable Private Addresses (RPAs). */
313 #ifndef CONFIG_BT_PRIVACY
314 //#define CONFIG_BT_PRIVACY 1
315 #endif
316 
317 /* This option defines how often resolvable private address is rotated.
318 	  Value is provided in seconds and defaults to 900 seconds (15 minutes). */
319 #ifdef CONFIG_BT_PRIVACY
320 #ifndef CONFIG_BT_RPA_TIMEOUT
321 #define CONFIG_BT_RPA_TIMEOUT 900
322 #endif
323 #endif
324 
325 /*
326 	Number of buffers in a separate buffer pool for events which
327 	the HCI driver considers discardable. Examples of such events
328 	could be e.g. Advertising Reports. The benefit of having such
329 	a pool means that the if there is a heavy inflow of such events
330 	it will not cause the allocation for other critical events to
331 	block and may even eliminate deadlocks in some cases.
332  */
333 #ifndef BT_DISCARDABLE_BUF_COUNT
334 #if defined(CONFIG_BT_MESH)
335 #define BT_DISCARDABLE_BUF_COUNT 20
336 #else
337 #define BT_DISCARDABLE_BUF_COUNT 3
338 #endif
339 #endif
340 
341 
342 /* This option enables data signing which is used for transferring
343 	  authenticated data in an unencrypted connection. */
344 #ifndef CONFIG_BT_SIGNING
345 //#define CONFIG_BT_SIGNING 1
346 #endif
347 
348 /* This option enables support for Secure Connection Only Mode. In this
349 	  mode device shall only use Security Mode 1 Level 4 with exception
350 	  for services that only require Security Mode 1 Level 1 (no security).
351 	  Security Mode 1 Level 4 stands for authenticated LE Secure Connections
352 	  pairing with encryption. Enabling this option disables legacy pairing. */
353 #ifndef CONFIG_BT_SMP_SC_ONLY
354 //#define CONFIG_BT_SMP_SC_ONLY 1
355 #endif
356 
357 /* This option disables LE legacy pairing and forces LE secure connection
358 	  pairing. All Security Mode 1 levels can be used with legacy pairing
359 	  disabled, but pairing with devices that do not support secure
360 	  connections pairing will not be supported.
361 	  To force a higher security level use "Secure Connections Only Mode"*/
362 #ifndef CONFIG_BT_SMP_SC_PAIR_ONLY
363 #ifdef CONFIG_BT_SMP_SC_ONLY
364 #define CONFIG_BT_SMP_SC_PAIR_ONLY 1
365 #endif
366 #endif
367 
368 /* With this option enabled, the application will be able to call the
369 	  bt_passkey_set() API to set a fixed passkey. If set, the
370 	  pairing_confim() callback will be called for all incoming pairings. */
371 #ifndef CONFIG_BT_FIXED_PASSKEY
372 //#define CONFIG_BT_FIXED_PASSKEY 1
373 #endif
374 
375 /* This option places Security Manager in a Debug Mode. In this mode
376 	  predefined Diffie-Hellman private/public key pair is used as described
377 	  in Core Specification Vol. 3, Part H, 2.3.5.6.1. This option should
378 	  only be enabled for debugging and should never be used in production.
379 	  If this option is enabled anyone is able to decipher encrypted air
380 	  traffic. */
381 #ifndef CONFIG_BT_USE_DEBUG_KEYS
382 //#define CONFIG_BT_USE_DEBUG_KEYS 1
383 #endif
384 
385 /* This option enables support for Bondable Mode. In this mode,
386 	  Bonding flag in AuthReq of SMP Pairing Request/Response will be set
387 	  indicating the support for this mode. */
388 #ifndef CONFIG_BT_BONDABLE
389 #define CONFIG_BT_BONDABLE 1
390 #endif
391 
392 /* With this option enabled, the Security Manager will set MITM option in
393 	  the Authentication Requirements Flags whenever local IO Capabilities
394 	  allow the generated key to be authenticated. */
395 #ifndef CONFIG_BT_SMP_ENFORCE_MITM
396 #define CONFIG_BT_SMP_ENFORCE_MITM 1
397 #endif
398 
399 #endif //CONFIG_BT_SMP
400 
401 /* This option enables support for LE Connection oriented Channels,
402 	  allowing the creation of dynamic L2CAP Channels. */
403 #ifndef CONFIG_BT_L2CAP_DYNAMIC_CHANNEL
404 //#define CONFIG_BT_L2CAP_DYNAMIC_CHANNEL 1
405 #endif
406 
407 /* Enforce strict flow control semantics for incoming PDUs */
408 #ifndef CONFIG_BT_ATT_ENFORCE_FLOW
409 //#define CONFIG_BT_ATT_ENFORCE_FLOW 1
410 #endif
411 
412 /* Number of buffers available for ATT prepare write, setting
413 	  this to 0 disables GATT long/reliable writes. */
414 #ifndef CONFIG_BT_ATT_PREPARE_COUNT
415 #define CONFIG_BT_ATT_PREPARE_COUNT 0
416 #endif
417 
418 /* Number of ATT PDUs that can be at a single moment queued for
419 	  transmission. If the application tries to send more than this
420 	  amount the calls will block until an existing queued PDU gets
421 	  sent. */
422 #ifndef CONFIG_BT_ATT_TX_MAX
423 #define CONFIG_BT_ATT_TX_MAX 2
424 #endif
425 
426 /* This option enables support for GATT Caching. When enabled the stack
427 	  will register Client Supported Features and Database Hash
428 	  characteristics which can be used by clients to detect if anything has
429 	  changed on the GATT database. */
430 #ifndef CONFIG_BT_GATT_CACHING
431 //#warning "CHECK CONFIG_BT_GATT_CACHING default config"
432 //#define CONFIG_BT_GATT_CACHING 1
433 #endif
434 
435 /* When enable this option blocks notification and indications to client
436 	 to conform to the following statement from the Bluetooth 5.1
437 	 specification:
438 	 '...the server shall not send notifications and indications to such
439 	 a client until it becomes change-aware."
440 	 In case the service cannot deal with sudden errors (-EAGAIN) then it
441 	 shall not use this option. */
442 #ifndef CONFIG_BT_GATT_ENFORCE_CHANGE_UNAWARE
443 #ifdef CONFIG_BT_GATT_CACHING
444 //#define CONFIG_BT_GATT_ENFORCE_CHANGE_UNAWARE 1
445 #endif
446 #endif
447 
448 /* This option enables support for the GATT Client role. */
449 #ifndef CONFIG_BT_GATT_CLIENT
450 //#define CONFIG_BT_GATT_CLIENT 1
451 #endif
452 
453 /* This option enables support for the GATT Read Multiple Characteristic
454 	  Values procedure. */
455 #ifndef CONFIG_BT_GATT_READ_MULTIPLE
456 #define CONFIG_BT_GATT_READ_MULTIPLE 1
457 #endif
458 
459 /* Peripheral connection parameter update timeout in milliseconds. */
460 #ifndef CONFIG_BT_CONN_PARAM_UPDATE_TIMEOUT
461 #define CONFIG_BT_CONN_PARAM_UPDATE_TIMEOUT 5000
462 #endif
463 
464 /* Maximum number of paired Bluetooth devices. The minimum (and
465 	  default) number is 1. */
466 #ifndef CONFIG_BT_MAX_PAIRED
467 #ifndef CONFIG_BT_SMP
468 #define CONFIG_BT_MAX_PAIRED 0
469 #else
470 #define CONFIG_BT_MAX_PAIRED 1
471 #endif
472 #endif
473 
474 /* Configure peripheral preferred connection parameters */
475 #ifndef CONFIG_BT_GAP_PERIPHERAL_PREF_PARAMS
476 #ifdef CONFIG_BT_PERIPHERAL
477 #define CONFIG_BT_GAP_PERIPHERAL_PREF_PARAMS 1
478 #endif
479 #endif
480 
481 #ifdef CONFIG_BT_GAP_PERIPHERAL_PREF_PARAMS
482 
483 /* Peripheral preferred minimum connection interval in 1.25ms units */
484 #ifndef CONFIG_BT_PERIPHERAL_PREF_MIN_INT
485 #define CONFIG_BT_PERIPHERAL_PREF_MIN_INT 24
486 #endif
487 
488 /* Peripheral preferred maximum connection interval in 1.25ms units */
489 #ifndef CONFIG_BT_PERIPHERAL_PREF_MAX_INT
490 #define CONFIG_BT_PERIPHERAL_PREF_MAX_INT 40
491 #endif
492 
493 /* Peripheral preferred slave latency in Connection Intervals */
494 #ifndef CONFIG_BT_PERIPHERAL_PREF_SLAVE_LATENCY
495 #define CONFIG_BT_PERIPHERAL_PREF_SLAVE_LATENCY 0
496 #endif
497 
498 /* Peripheral preferred supervision timeout in 10ms units */
499 #ifndef CONFIG_BT_PERIPHERAL_PREF_TIMEOUT
500 #define CONFIG_BT_PERIPHERAL_PREF_TIMEOUT 42
501 #endif
502 
503 #endif //CONFIG_BT_GAP_PERIPHERAL_PREF_PARAMS
504 
505 /* Timeout for pending LE Create Connection command in seconds */
506 #ifndef CONFIG_BT_CREATE_CONN_TIMEOUT
507 #define CONFIG_BT_CREATE_CONN_TIMEOUT 3
508 #endif
509 
510 #endif //CONFIG_BT_CONN
511 
512 #ifdef CONFIG_BT_OBSERVER
513 
514 /* Scan interval used for background scanning in 0.625 ms units */
515 #ifndef CONFIG_BT_BACKGROUND_SCAN_INTERVAL
516 #define CONFIG_BT_BACKGROUND_SCAN_INTERVAL 2048
517 #endif
518 
519 /* Scan window used for background scanning in 0.625 ms units */
520 #ifndef CONFIG_BT_BACKGROUND_SCAN_WINDOW
521 #define CONFIG_BT_BACKGROUND_SCAN_WINDOW 18
522 #endif
523 
524 #endif //CONFIG_BT_OBSERVER
525 
526 /* Enable this if you want to perform active scanning using the local
527 	  identity address as the scanner address. By default the stack will
528 	  always use a non-resolvable private address (NRPA) in order to avoid
529 	  disclosing local identity information. However, if the use case
530 	  requires disclosing it then enable this option. */
531 #ifndef CONFIG_BT_SCAN_WITH_IDENTITY
532 //#define CONFIG_BT_SCAN_WITH_IDENTITY 1
533 #endif
534 
535 /* Enable this if you want to perform active scanning using the local
536 	  identity address as the scanner address. By default the stack will
537 	  always use a non-resolvable private address (NRPA) in order to avoid
538 	  disclosing local identity information. However, if the use case
539 	  requires disclosing it then enable this option. */
540 #ifndef CONFIG_BT_DEVICE_NAME_DYNAMIC
541 #define CONFIG_BT_DEVICE_NAME_DYNAMIC 1
542 #endif
543 
544 /* Bluetooth device name storage size. Storage can be up to 248 bytes
545 	  long (excluding NULL termination). */
546 #ifndef CONFIG_BT_DEVICE_NAME_MAX
547 #ifdef CONFIG_BT_DEVICE_NAME_DYNAMIC
548 #define CONFIG_BT_DEVICE_NAME_MAX 28
549 #endif
550 #endif
551 
552 /* Enabling this option allows remote GATT clients to write to device
553 	  name GAP characteristic. */
554 #ifndef CONFIG_BT_DEVICE_NAME_GATT_WRITABLE
555 #if defined(CONFIG_BT_DEVICE_NAME_DYNAMIC) && defined(CONFIG_BT_CONN)
556 #define CONFIG_BT_DEVICE_NAME_GATT_WRITABLE 28
557 #endif
558 #endif
559 
560 /* Bluetooth device name. Name can be up to 248 bytes long (excluding
561 	  NULL termination). Can be empty string. */
562 #ifndef CONFIG_BT_DEVICE_NAME
563 #define CONFIG_BT_DEVICE_NAME "YoC Test"
564 #endif
565 
566 /* Bluetooth device appearance. For the list of possible values please
567 	  consult the following link:
568 	  https://www.bluetooth.com/specifications/assigned-numbers */
569 #ifndef CONFIG_BT_DEVICE_APPEARANCE
570 #define CONFIG_BT_DEVICE_APPEARANCE 0
571 #endif
572 
573 #ifndef CONFIG_BT_ID_MAX
574 #define CONFIG_BT_ID_MAX 1
575 #endif
576 
577 #endif //CONFIG_BT_HCI_HOST
578 
579 /* Enable ECDH key generation support */
580 #ifndef CONFIG_BT_ECC
581 //#define CONFIG_BT_ECC 1
582 #endif
583 
584 #ifndef CONFIG_BT_TINYCRYPT_ECC
585 #define CONFIG_BT_TINYCRYPT_ECC 1
586 #endif
587 
588 #ifdef CONFIG_BT_DEBUG
589 
590 #ifndef CONFIG_BT_DEBUG_LOG
591 //#define CONFIG_BT_DEBUG_LOG 1
592 #endif
593 
594 #ifndef CONFIG_BT_DEBUG_SETTINGS
595 //#define CONFIG_BT_DEBUG_SETTINGS 1
596 #endif
597 
598 #ifndef CONFIG_BT_DEBUG_HCI_CORE
599 //#define CONFIG_BT_DEBUG_HCI_CORE 1
600 #endif
601 
602 #ifndef CONFIG_BT_DEBUG_CONN
603 //#define CONFIG_BT_DEBUG_CONN 1
604 #endif
605 
606 #ifndef CONFIG_BT_DEBUG_KEYS
607 //#define CONFIG_BT_DEBUG_KEYS 1
608 #endif
609 
610 #ifndef CONFIG_BT_DEBUG_L2CAP
611 //#define CONFIG_BT_DEBUG_L2CAP 1
612 #endif
613 
614 #ifndef CONFIG_BT_DEBUG_SMP
615 //#define CONFIG_BT_DEBUG_SMP 1
616 #endif
617 
618 #ifndef CONFIG_BT_SMP_SELFTEST
619 //#define CONFIG_BT_SMP_SELFTEST 1
620 #endif
621 
622 #ifndef CONFIG_BT_DEBUG_ATT
623 //#define CONFIG_BT_DEBUG_ATT 1
624 #endif
625 
626 #ifndef CONFIG_BT_DEBUG_GATT
627 //#define CONFIG_BT_DEBUG_GATT 1
628 #endif
629 
630 #endif //CONFIG_BT_DEBUG
631 
632 #ifndef CONFIG_BT_SHELL
633 //#define CONFIG_BT_SHELL 1
634 #endif
635 
636 #endif //CONFIG_BT_HCI
637 
638 #endif //CONFIG_BT
639 
640 #endif //_BLE_DEFAULT_CONFIG_H_
641