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 20*b2b52d42SMatthias Ringwald #define ENABLE_AVRCP_COVER_ART 21cc528b9dSMatthias Ringwald #define ENABLE_BLE 22cc528b9dSMatthias Ringwald #define ENABLE_CLASSIC 23cc528b9dSMatthias Ringwald #define ENABLE_CROSS_TRANSPORT_KEY_DERIVATION 24cc528b9dSMatthias Ringwald #define ENABLE_HFP_WIDE_BAND_SPEECH 25cc528b9dSMatthias Ringwald #define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE 26cc528b9dSMatthias Ringwald #define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE 27*b2b52d42SMatthias Ringwald #define ENABLE_LE_CENTRAL 28cc528b9dSMatthias Ringwald #define ENABLE_LE_DATA_LENGTH_EXTENSION 29cc528b9dSMatthias Ringwald #define ENABLE_LE_PERIPHERAL 30cc528b9dSMatthias Ringwald #define ENABLE_LE_PRIVACY_ADDRESS_RESOLUTION 31cc528b9dSMatthias Ringwald #define ENABLE_LE_SECURE_CONNECTIONS 32cc528b9dSMatthias Ringwald #define ENABLE_LOG_ERROR 33cc528b9dSMatthias Ringwald #define ENABLE_LOG_INFO 34cc528b9dSMatthias Ringwald #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS 35cc528b9dSMatthias Ringwald #define ENABLE_PRINTF_HEXDUMP 36cc528b9dSMatthias Ringwald #define ENABLE_SCO_OVER_HCI 37cc528b9dSMatthias Ringwald #define ENABLE_SDP_DES_DUMP 38cc528b9dSMatthias Ringwald #define ENABLE_SOFTWARE_AES128 39cc528b9dSMatthias Ringwald 40cc528b9dSMatthias Ringwald // BTstack configuration. buffers, sizes, ... 41cc528b9dSMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4) 42cc528b9dSMatthias Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy 43cc528b9dSMatthias Ringwald 44cc528b9dSMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES 16 45cc528b9dSMatthias Ringwald #define NVM_NUM_LINK_KEYS 16 46cc528b9dSMatthias Ringwald 47cc528b9dSMatthias Ringwald // Mesh Configuration 48cc528b9dSMatthias Ringwald #define ENABLE_MESH 49cc528b9dSMatthias Ringwald #define ENABLE_MESH_ADV_BEARER 50cc528b9dSMatthias Ringwald #define ENABLE_MESH_GATT_BEARER 51cc528b9dSMatthias Ringwald #define ENABLE_MESH_PB_ADV 52cc528b9dSMatthias Ringwald #define ENABLE_MESH_PB_GATT 53cc528b9dSMatthias Ringwald #define ENABLE_MESH_PROVISIONER 54cc528b9dSMatthias Ringwald #define ENABLE_MESH_PROXY_SERVER 55cc528b9dSMatthias Ringwald 56cc528b9dSMatthias Ringwald #define MAX_NR_MESH_SUBNETS 2 57cc528b9dSMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS 16 58cc528b9dSMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16 59cc528b9dSMatthias Ringwald 60cc528b9dSMatthias Ringwald // allow for one NetKey update 61cc528b9dSMatthias Ringwald #define MAX_NR_MESH_NETWORK_KEYS (MAX_NR_MESH_SUBNETS+1) 62cc528b9dSMatthias Ringwald 63cc528b9dSMatthias Ringwald #endif 64cc528b9dSMatthias Ringwald 65