xref: /btstack/port/posix-h4-da14531/btstack_config.h (revision a16c312c96ef4ae390a2d6b17390afcd95996522)
1*a16c312cSMatthias Ringwald //
2*a16c312cSMatthias Ringwald // btstack_config.h for POSIX H4 + DA14585 port
3*a16c312cSMatthias Ringwald //
4*a16c312cSMatthias Ringwald // Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/
5*a16c312cSMatthias Ringwald //
6*a16c312cSMatthias Ringwald 
7*a16c312cSMatthias Ringwald #ifndef BTSTACK_CONFIG_H
8*a16c312cSMatthias Ringwald #define BTSTACK_CONFIG_H
9*a16c312cSMatthias Ringwald 
10*a16c312cSMatthias Ringwald // Port related features
11*a16c312cSMatthias Ringwald #define HAVE_ASSERT
12*a16c312cSMatthias Ringwald #define HAVE_BTSTACK_STDIN
13*a16c312cSMatthias Ringwald #define HAVE_MALLOC
14*a16c312cSMatthias Ringwald #define HAVE_POSIX_FILE_IO
15*a16c312cSMatthias Ringwald #define HAVE_POSIX_TIME
16*a16c312cSMatthias Ringwald 
17*a16c312cSMatthias Ringwald // BTstack features that can be enabled
18*a16c312cSMatthias Ringwald #define ENABLE_BLE
19*a16c312cSMatthias Ringwald #define ENABLE_LE_CENTRAL
20*a16c312cSMatthias Ringwald #define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE
21*a16c312cSMatthias Ringwald #define ENABLE_LE_DATA_LENGTH_EXTENSION
22*a16c312cSMatthias Ringwald #define ENABLE_LE_PERIPHERAL
23*a16c312cSMatthias Ringwald #define ENABLE_LE_PRIVACY_ADDRESS_RESOLUTION
24*a16c312cSMatthias Ringwald #define ENABLE_LE_SECURE_CONNECTIONS
25*a16c312cSMatthias Ringwald #define ENABLE_LOG_ERROR
26*a16c312cSMatthias Ringwald #define ENABLE_LOG_INFO
27*a16c312cSMatthias Ringwald #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS
28*a16c312cSMatthias Ringwald #define ENABLE_PRINTF_HEXDUMP
29*a16c312cSMatthias Ringwald 
30*a16c312cSMatthias Ringwald // work around bug in Controller ACL fragmentation
31*a16c312cSMatthias Ringwald #define ENABLE_LE_LIMIT_ACL_FRAGMENT_BY_MAX_OCTETS
32*a16c312cSMatthias Ringwald 
33*a16c312cSMatthias Ringwald // work around bug in Controller
34*a16c312cSMatthias Ringwald #define ENABLE_LE_WHITELIST_TOUCH_AFTER_RESOLVING_LIST_UPDATE
35*a16c312cSMatthias Ringwald 
36*a16c312cSMatthias Ringwald 
37*a16c312cSMatthias Ringwald // BTstack configuration. buffers, sizes, ...
38*a16c312cSMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
39*a16c312cSMatthias Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy
40*a16c312cSMatthias Ringwald 
41*a16c312cSMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES      20
42*a16c312cSMatthias Ringwald 
43*a16c312cSMatthias Ringwald // Mesh Configuration
44*a16c312cSMatthias Ringwald #define ENABLE_MESH
45*a16c312cSMatthias Ringwald #define ENABLE_MESH_ADV_BEARER
46*a16c312cSMatthias Ringwald #define ENABLE_MESH_GATT_BEARER
47*a16c312cSMatthias Ringwald #define ENABLE_MESH_PB_ADV
48*a16c312cSMatthias Ringwald #define ENABLE_MESH_PB_GATT
49*a16c312cSMatthias Ringwald #define ENABLE_MESH_PROVISIONER
50*a16c312cSMatthias Ringwald #define ENABLE_MESH_PROXY_SERVER
51*a16c312cSMatthias Ringwald 
52*a16c312cSMatthias Ringwald #define MAX_NR_MESH_SUBNETS            2
53*a16c312cSMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS    16
54*a16c312cSMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16
55*a16c312cSMatthias Ringwald 
56*a16c312cSMatthias Ringwald // allow for one NetKey update
57*a16c312cSMatthias Ringwald #define MAX_NR_MESH_NETWORK_KEYS      (MAX_NR_MESH_SUBNETS+1)
58*a16c312cSMatthias Ringwald 
59*a16c312cSMatthias Ringwald #endif
60*a16c312cSMatthias Ringwald 
61