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 /// Provide 1 byte of data for H4 TL type 19 #define HCI_OUTGOING_PRE_BUFFER_SIZE (1) 20 21 #define HAVE_HOST_CONTROLLER_API 22 23 // Internal ring buffer: 21 kB 24 #define HCI_HOST_ACL_PACKET_NUM (20) 25 #define HCI_HOST_ACL_PACKET_LEN (1024) 26 #define HCI_HOST_SCO_PACKET_NUM (10) 27 #define HCI_HOST_SCO_PACKET_LEN (60) 28 29 // Link Key DB and LE Device DB using TLV on top of Flash Sector interface 30 #define NVM_NUM_LINK_KEYS (0) 31 #define NVM_NUM_DEVICE_DB_ENTRIES (0) 32 33 // BTstack configuration. buffers, sizes, ... 34 35 #define MAX_NR_HCI_CONNECTIONS (4) 36 #define MAX_NR_L2CAP_SERVICES (6) 37 #define MAX_NR_L2CAP_CHANNELS (6) 38 39 #define MAX_NR_BTSTACK_LINK_KEY_DB_MEMORY_ENTRIES (0) 40 #define MAX_NR_BNEP_SERVICES (0) 41 #define MAX_NR_BNEP_CHANNELS (0) 42 #define MAX_NR_WHITELIST_ENTRIES (0) 43 #define MAX_NR_SM_LOOKUP_ENTRIES (0) 44 #define MAX_NR_SERVICE_RECORD_ITEMS (8) 45 #define MAX_NR_AVDTP_STREAM_ENDPOINTS (4) 46 #define MAX_NR_AVDTP_CONNECTIONS (2) 47 #define MAX_NR_AVRCP_CONNECTIONS (2) 48 49 #define MAX_NR_HFP_CONNECTIONS (1) 50 #define MAX_NR_RFCOMM_MULTIPLEXERS (1) 51 #define MAX_NR_RFCOMM_SERVICES (1) 52 #define MAX_NR_RFCOMM_CHANNELS (1) 53 54 /// Enable SCO over HCI 55 #define ENABLE_SCO_OVER_HCI 56 /// Ensure that BK doesn't start implicitly discoverable and connectable mode 57 #define ENABLE_EXPLICIT_CONNECTABLE_MODE_CONTROL 58 /// Add support of BT classic OOB pairing 59 #define ENABLE_CLASSIC_PAIRING_OOB 60 /// Handle IOCAP by application 61 #define ENABLE_EXPLICIT_IO_CAPABILITIES_REPLY 62 /// Enable A2DP source codec config 63 #define ENABLE_A2DP_SOURCE_EXPLICIT_CONFIG 64 /// Allow defer of LINK Key Reply 65 #define ENABLE_EXPLICIT_LINK_KEY_REPLY 66 // Trigger L2CAP Information Requests to get supported fixed channels 67 #define ENABLE_L2CAP_INFORMATION_REQUESTS_ON_CONNECT 68 69 #define ENABLE_HFP_WIDE_BAND_SPEECH 70 #define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE 71 #define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE_FOR_RFCOMM 72 #define ENABLE_GOEP_L2CAP 73 74 75 // cannot be used yet - mere inclusion of <stdio.h> causes compile errors 76 // <stdio.h> is used at various places for snprintf 77 // abort on use of printf in main library 78 // #define printf() no_printf_please() 79 80 #endif 81 82