xref: /btstack/port/windows-h4-da14585/btstack_config.h (revision 077fecbb6ed539507f37505ebd8a5b00e01c55e9)
13c214e8aSMatthias Ringwald //
2*077fecbbSMilanka Ringwald // btstack_config.h for Windows H4 + DA14585 port
3*077fecbbSMilanka Ringwald //
4*077fecbbSMilanka Ringwald // Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/
53c214e8aSMatthias Ringwald //
63c214e8aSMatthias Ringwald 
736327e5aSMilanka Ringwald #ifndef BTSTACK_CONFIG_H
836327e5aSMilanka Ringwald #define BTSTACK_CONFIG_H
93c214e8aSMatthias Ringwald 
103c214e8aSMatthias Ringwald // Port related features
11d20e3046SMatthias Ringwald #define HAVE_ASSERT
1236327e5aSMilanka Ringwald #define HAVE_BTSTACK_STDIN
133c214e8aSMatthias Ringwald #define HAVE_MALLOC
143c214e8aSMatthias Ringwald #define HAVE_POSIX_FILE_IO
153c214e8aSMatthias Ringwald #define HAVE_POSIX_TIME
163c214e8aSMatthias Ringwald 
173c214e8aSMatthias Ringwald // BTstack features that can be enabled
183c214e8aSMatthias Ringwald #define ENABLE_BLE
193c214e8aSMatthias Ringwald #define ENABLE_LE_CENTRAL
20b28dc800SMatthias Ringwald #define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE
213c214e8aSMatthias Ringwald #define ENABLE_LE_DATA_LENGTH_EXTENSION
2236327e5aSMilanka Ringwald #define ENABLE_LE_PERIPHERAL
23b596325dSMatthias Ringwald #define ENABLE_LE_PRIVACY_ADDRESS_RESOLUTION
2436327e5aSMilanka Ringwald #define ENABLE_LE_SECURE_CONNECTIONS
253c214e8aSMatthias Ringwald #define ENABLE_LOG_ERROR
263c214e8aSMatthias Ringwald #define ENABLE_LOG_INFO
2736327e5aSMilanka Ringwald #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS
28606ccc9bSMilanka Ringwald #define ENABLE_PRINTF_HEXDUMP
293c214e8aSMatthias Ringwald 
303c214e8aSMatthias Ringwald // work around bug in Controller ACL fragmentation
313c214e8aSMatthias Ringwald #define ENABLE_LE_LIMIT_ACL_FRAGMENT_BY_MAX_OCTETS
323c214e8aSMatthias Ringwald 
333c214e8aSMatthias Ringwald // BTstack configuration. buffers, sizes, ...
343c214e8aSMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
3536327e5aSMilanka Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy
363c214e8aSMatthias Ringwald 
373c214e8aSMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES      16
383c214e8aSMatthias Ringwald 
393c214e8aSMatthias Ringwald // Mesh Configuration
403c214e8aSMatthias Ringwald #define ENABLE_MESH
413c214e8aSMatthias Ringwald #define ENABLE_MESH_ADV_BEARER
423c214e8aSMatthias Ringwald #define ENABLE_MESH_GATT_BEARER
433c214e8aSMatthias Ringwald #define ENABLE_MESH_PB_ADV
443c214e8aSMatthias Ringwald #define ENABLE_MESH_PB_GATT
453c214e8aSMatthias Ringwald #define ENABLE_MESH_PROVISIONER
4636327e5aSMilanka Ringwald #define ENABLE_MESH_PROXY_SERVER
473c214e8aSMatthias Ringwald 
4836327e5aSMilanka Ringwald #define MAX_NR_MESH_SUBNETS            2
493c214e8aSMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS    16
503c214e8aSMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16
513c214e8aSMatthias Ringwald 
523c214e8aSMatthias Ringwald // allow for one NetKey update
533c214e8aSMatthias Ringwald #define MAX_NR_MESH_NETWORK_KEYS      (MAX_NR_MESH_SUBNETS+1)
543c214e8aSMatthias Ringwald 
553c214e8aSMatthias Ringwald #endif
563c214e8aSMatthias Ringwald 
57