1 // 2 // btstack_config.h 3 // 4 5 #ifndef BTSTACK_CONFIG_H 6 #define BTSTACK_CONFIG_H 7 8 // Port related features 9 #define HAVE_EMBEDDED_TIME_MS 10 11 // BTstack features that can be enabled 12 #define ENABLE_CLASSIC 13 14 #define ENABLE_BTSTACK_ASSERT 15 16 // BTstack configuration. buffers, sizes, ... 17 #define HCI_ACL_PAYLOAD_SIZE (676 + 4) 18 19 // Link Key DB and LE Device DB using TLV on top of Flash Sector interface 20 #define NVM_NUM_LINK_KEYS (0) 21 #define NVM_NUM_DEVICE_DB_ENTRIES (0) 22 23 // BTstack configuration. buffers, sizes, ... 24 25 #define MAX_NR_HCI_CONNECTIONS (4) 26 #define MAX_NR_L2CAP_SERVICES (6) 27 #define MAX_NR_L2CAP_CHANNELS (6) 28 29 #define MAX_NR_BTSTACK_LINK_KEY_DB_MEMORY_ENTRIES (0) 30 #define MAX_NR_BNEP_SERVICES (0) 31 #define MAX_NR_BNEP_CHANNELS (0) 32 #define MAX_NR_WHITELIST_ENTRIES (0) 33 #define MAX_NR_SM_LOOKUP_ENTRIES (0) 34 #define MAX_NR_SERVICE_RECORD_ITEMS (8) 35 #define MAX_NR_AVDTP_STREAM_ENDPOINTS (4) 36 #define MAX_NR_AVDTP_CONNECTIONS (2) 37 #define MAX_NR_AVRCP_CONNECTIONS (2) 38 39 #define MAX_NR_HFP_CONNECTIONS (1) 40 #define MAX_NR_RFCOMM_MULTIPLEXERS (1) 41 #define MAX_NR_RFCOMM_SERVICES (1) 42 #define MAX_NR_RFCOMM_CHANNELS (1) 43 44 /// Enable SCO over HCI 45 #define ENABLE_SCO_OVER_HCI 46 /// Ensure that BK doesn't start implicitly discoverable and connectable mode 47 #define ENABLE_EXPLICIT_CONNECTABLE_MODE_CONTROL 48 /// Add support of BT classic OOB pairing 49 #define ENABLE_CLASSIC_PAIRING_OOB 50 /// Handle IOCAP by application 51 #define ENABLE_EXPLICIT_IO_CAPABILITIES_REPLY 52 /// Enable A2DP source codec config 53 #define ENABLE_A2DP_SOURCE_EXPLICIT_CONFIG 54 55 #define ENABLE_HFP_WIDE_BAND_SPEECH 56 #define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE 57 58 // cannot be used yet - mere inclusion of <stdio.h> causes compile errors 59 // <stdio.h> is used at various places for snprintf 60 // abort on use of printf in main library 61 // #define printf() no_printf_please() 62 63 #endif 64 65