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