~aleteoryx/muditaos

ref: 2060dd964fb57149834bb225ba4521e1f0582caa muditaos/module-bluetooth/Bluetooth/interface/profiles/btstack_config.h -rw-r--r-- 1.4 KiB
2060dd96 — Bartek Cichocki [EGD-2625] added BT scan 5 years ago
                                                                                
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
//
// btstack_config.h for generic POSIX H4 port
//

#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG

// Port related features
#define HAVE_MALLOC
#ifndef TARGET_RT1051
#define HAVE_POSIX_FILE_IO
#endif
#define HAVE_BTSTACK_STDIN
// #define HAVE_POSIX_TIME
#define HAVE_EM9304_PATCH_CONTAINER

// BTstack features that can be enabled
// #define ENABLE_BLE
#define ENABLE_CLASSIC
#define ENABLE_HFP_WIDE_BAND_SPEECH
#define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE
// #define ENABLE_LE_CENTRAL
// #define ENABLE_LE_PERIPHERAL
// #define ENABLE_LE_SECURE_CONNECTIONS
// #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS
// #define ENABLE_LE_DATA_CHANNELS
// #define ENABLE_LE_DATA_LENGTH_EXTENSION
#define ENABLE_ATT_DELAYED_RESPONSE
#define ENABLE_USER_LOG
#define ENABLE_LOG_ERROR
#define ENABLE_LOG_INFO
#define ENABLE_LOG_WARNING
// #define ENABLE_LOG_DEBUG
#define ENABLE_SCO_OVER_HCI
#define ENABLE_SDP_DES_DUMP
// #define ENABLE_EHCILL

// BTstack configuration. buffers, sizes, ...
#define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy
#define HCI_ACL_PAYLOAD_SIZE         (1691 + 4)

// As an option - much slower (according to docs)
// HCI Controller to Host Flow Control
// #define ENABLE_HCI_CONTROLLER_TO_HOST_FLOW_CONTROL
//
// // Interal ring buffer: 21 kB
// #define HCI_HOST_ACL_PACKET_NUM 20
// #define HCI_HOST_ACL_PACKET_LEN 1024
// #define HCI_HOST_SCO_PACKET_NUM 10
// #define HCI_HOST_SCO_PACKET_LEN 60
#endif