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