xref: /btstack/test/fuzz/btstack_config.h (revision 02a3cd7f0093996b2361088f1a5baf75d8a128da)
11f805efeSMatthias Ringwald //
21f805efeSMatthias Ringwald // btstack_config.h for test/fuzz
31f805efeSMatthias Ringwald //
41f805efeSMatthias Ringwald 
5*02a3cd7fSMilanka Ringwald #ifndef BTSTACK_CONFIG_H
6*02a3cd7fSMilanka Ringwald #define BTSTACK_CONFIG_H
71f805efeSMatthias Ringwald 
8eddac615SMatthias Ringwald #define FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
9eddac615SMatthias Ringwald 
101f805efeSMatthias Ringwald // Port related features
11*02a3cd7fSMilanka Ringwald #define HAVE_ASSERT
12*02a3cd7fSMilanka Ringwald #define HAVE_BTSTACK_STDIN
131f805efeSMatthias Ringwald #define HAVE_MALLOC
141f805efeSMatthias Ringwald #define HAVE_POSIX_FILE_IO
151f805efeSMatthias Ringwald #define HAVE_POSIX_TIME
161f805efeSMatthias Ringwald 
171f805efeSMatthias Ringwald // BTstack features that can be enabled
18*02a3cd7fSMilanka Ringwald #define ENABLE_ATT_DELAYED_RESPONSE
191f805efeSMatthias Ringwald #define ENABLE_BLE
201f805efeSMatthias Ringwald #define ENABLE_CLASSIC
211f805efeSMatthias Ringwald #define ENABLE_HFP_WIDE_BAND_SPEECH
221f805efeSMatthias Ringwald #define ENABLE_LE_CENTRAL
23*02a3cd7fSMilanka Ringwald #define ENABLE_LE_DATA_CHANNELS
24*02a3cd7fSMilanka Ringwald #define ENABLE_LE_DATA_LENGTH_EXTENSION
251f805efeSMatthias Ringwald #define ENABLE_LE_PERIPHERAL
261f805efeSMatthias Ringwald #define ENABLE_LE_SECURE_CONNECTIONS
271f805efeSMatthias Ringwald #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS
28*02a3cd7fSMilanka Ringwald 
291f805efeSMatthias Ringwald //#define ENABLE_LOG_ERROR
301f805efeSMatthias Ringwald //#define ENABLE_LOG_INFO
31*02a3cd7fSMilanka Ringwald #define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE
321f805efeSMatthias Ringwald #define ENABLE_SCO_OVER_HCI
331f805efeSMatthias Ringwald #define ENABLE_SDP_DES_DUMP
341f805efeSMatthias Ringwald #define ENABLE_SOFTWARE_AES128
351f805efeSMatthias Ringwald 
361f805efeSMatthias Ringwald // BTstack configuration. buffers, sizes, ...
371f805efeSMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
381f805efeSMatthias Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof BNEP header, avoid memcpy
391f805efeSMatthias Ringwald 
401f805efeSMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES      20
41*02a3cd7fSMilanka Ringwald #define NVM_NUM_LINK_KEYS              16
421f805efeSMatthias Ringwald 
431f805efeSMatthias Ringwald // Mesh Configuration
441f805efeSMatthias Ringwald #define ENABLE_MESH
451f805efeSMatthias Ringwald #define ENABLE_MESH_ADV_BEARER
461f805efeSMatthias Ringwald #define ENABLE_MESH_GATT_BEARER
471f805efeSMatthias Ringwald #define ENABLE_MESH_PB_ADV
481f805efeSMatthias Ringwald #define ENABLE_MESH_PB_GATT
491f805efeSMatthias Ringwald #define ENABLE_MESH_PROVISIONER
50*02a3cd7fSMilanka Ringwald #define ENABLE_MESH_PROXY_SERVER
511f805efeSMatthias Ringwald 
52*02a3cd7fSMilanka Ringwald #define MAX_NR_MESH_SUBNETS            2
531f805efeSMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS    16
541f805efeSMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16
551f805efeSMatthias Ringwald 
561f805efeSMatthias Ringwald // allow for one NetKey update
571f805efeSMatthias Ringwald #define MAX_NR_MESH_NETWORK_KEYS      (MAX_NR_MESH_SUBNETS+1)
581f805efeSMatthias Ringwald 
591f805efeSMatthias Ringwald #endif
601f805efeSMatthias Ringwald 
61