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