xref: /btstack/port/windows-winusb/btstack_config.h (revision d20e3046cbd5da533ad321c5296b06e09b34ca36)
1eddcc851SMatthias Ringwald //
2eddcc851SMatthias Ringwald // btstack_config.h for libusb port
3eddcc851SMatthias Ringwald //
4eddcc851SMatthias Ringwald 
5eddcc851SMatthias Ringwald #ifndef __BTSTACK_CONFIG
6eddcc851SMatthias Ringwald #define __BTSTACK_CONFIG
7eddcc851SMatthias Ringwald 
8eddcc851SMatthias Ringwald // Port related features
9*d20e3046SMatthias Ringwald #define HAVE_ASSERT
10eddcc851SMatthias Ringwald #define HAVE_MALLOC
11eddcc851SMatthias Ringwald #define HAVE_POSIX_FILE_IO
127ea7688aSMatthias Ringwald #define HAVE_BTSTACK_STDIN
13eddcc851SMatthias Ringwald #define HAVE_POSIX_TIME
14eddcc851SMatthias Ringwald 
15eddcc851SMatthias Ringwald // BTstack features that can be enabled
16eddcc851SMatthias Ringwald #define ENABLE_BLE
17eddcc851SMatthias Ringwald #define ENABLE_CLASSIC
181bbecc2bSMatthias Ringwald #define ENABLE_HFP_WIDE_BAND_SPEECH
19b5674ee2SMatthias Ringwald #define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE
2073d0f5e5SMatthias Ringwald #define ENABLE_LE_CENTRAL
211bbecc2bSMatthias Ringwald #define ENABLE_LE_PERIPHERAL
22eddcc851SMatthias Ringwald #define ENABLE_LE_SECURE_CONNECTIONS
23fcae305fSMatthias Ringwald #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS
24ff01079bSMatthias Ringwald #define ENABLE_LE_DATA_CHANNELS
25b435e062SMatthias Ringwald #define ENABLE_LE_DATA_LENGTH_EXTENSION
26b596325dSMatthias Ringwald #define ENABLE_LE_PRIVACY_ADDRESS_RESOLUTION
275308b30fSMatthias Ringwald #define ENABLE_CROSS_TRANSPORT_KEY_DERIVATION
28eddcc851SMatthias Ringwald #define ENABLE_LOG_ERROR
29eddcc851SMatthias Ringwald #define ENABLE_LOG_INFO
30eddcc851SMatthias Ringwald #define ENABLE_SCO_OVER_HCI
31eddcc851SMatthias Ringwald #define ENABLE_SDP_DES_DUMP
327cdc89a5SMatthias Ringwald #define ENABLE_SOFTWARE_AES128
33eddcc851SMatthias Ringwald 
34eddcc851SMatthias Ringwald // BTstack configuration. buffers, sizes, ...
35eddcc851SMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
36eddcc851SMatthias Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof BNEP header, avoid memcpy
37eddcc851SMatthias Ringwald 
38dbe92de6SMatthias Ringwald #define NVM_NUM_LINK_KEYS              16
39dbe92de6SMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES      16
40e514a7f5SMatthias Ringwald 
41e514a7f5SMatthias Ringwald // Mesh Configuration
42e514a7f5SMatthias Ringwald #define ENABLE_MESH
43e514a7f5SMatthias Ringwald #define ENABLE_MESH_ADV_BEARER
44e514a7f5SMatthias Ringwald #define ENABLE_MESH_GATT_BEARER
45e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_ADV
46e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_GATT
47e514a7f5SMatthias Ringwald #define ENABLE_MESH_PROXY_SERVER
48e514a7f5SMatthias Ringwald #define ENABLE_MESH_PROVISIONER
49e514a7f5SMatthias Ringwald 
50e514a7f5SMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS    16
51e514a7f5SMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16
52e514a7f5SMatthias Ringwald #define MAX_NR_MESH_SUBNETS            2
53e514a7f5SMatthias Ringwald 
54e514a7f5SMatthias Ringwald // allow for one NetKey update
55e514a7f5SMatthias Ringwald #define MAX_NR_MESH_NETWORK_KEYS      (MAX_NR_MESH_SUBNETS+1)
56e514a7f5SMatthias Ringwald 
57eddcc851SMatthias Ringwald #endif
58