aboutsummaryrefslogtreecommitdiff
path: root/src/btstack_config.h
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2024-08-07 20:10:22 +0200
committerJan200101 <sentrycraft123@gmail.com>2024-08-07 20:10:22 +0200
commit2e372fc078afaee704230c31e2b19683904a47a7 (patch)
treecefde9da6e759a5c60f2ee7ecf642adb55c89366 /src/btstack_config.h
parent1b7fbd0f8e0e4022f0ee102d0429771d5449a3a9 (diff)
downloadWirecutter-2e372fc078afaee704230c31e2b19683904a47a7.tar.gz
Wirecutter-2e372fc078afaee704230c31e2b19683904a47a7.zip
enable roll switch, tweak parameters, support BLE, use LEDHEADmaster
Diffstat (limited to 'src/btstack_config.h')
-rw-r--r--src/btstack_config.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/btstack_config.h b/src/btstack_config.h
index e38468b..8f6b5bf 100644
--- a/src/btstack_config.h
+++ b/src/btstack_config.h
@@ -3,8 +3,9 @@
// BTstack features that can be enabled
#ifdef ENABLE_BLE
-#warning no BLE
-#undef ENABLE_BLE
+#define ENABLE_LE_PERIPHERAL
+#define ENABLE_LE_CENTRAL
+#define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE
#endif
#define ENABLE_LOG_DEBUG
#define ENABLE_LOG_INFO
@@ -15,22 +16,22 @@
#define ENABLE_LOG_BTSTACK_EVENTS
// BTstack configuration. buffers, sizes, ...
-#define HCI_OUTGOING_PRE_BUFFER_SIZE 16
-#define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
+#define HCI_OUTGOING_PRE_BUFFER_SIZE 4
+#define HCI_ACL_PAYLOAD_SIZE (158 + 4)
#define HCI_ACL_CHUNK_SIZE_ALIGNMENT 4
#define MAX_NR_AVDTP_CONNECTIONS 1
#define MAX_NR_AVDTP_STREAM_ENDPOINTS 1
#define MAX_NR_AVRCP_CONNECTIONS 2
#define MAX_NR_BNEP_CHANNELS 1
#define MAX_NR_BNEP_SERVICES 1
-#define MAX_NR_BTSTACK_LINK_KEY_DB_MEMORY_ENTRIES 2
+#define MAX_NR_BTSTACK_LINK_KEY_DB_MEMORY_ENTRIES 3
#define MAX_NR_GATT_CLIENTS 1
-#define MAX_NR_HCI_CONNECTIONS 1
+#define MAX_NR_HCI_CONNECTIONS 3
#define MAX_NR_HID_HOST_CONNECTIONS 1
#define MAX_NR_HIDS_CLIENTS 1
#define MAX_NR_HFP_CONNECTIONS 1
-#define MAX_NR_L2CAP_CHANNELS 4
-#define MAX_NR_L2CAP_SERVICES 3
+#define MAX_NR_L2CAP_CHANNELS 4
+#define MAX_NR_L2CAP_SERVICES 3
#define MAX_NR_RFCOMM_CHANNELS 1
#define MAX_NR_RFCOMM_MULTIPLEXERS 1
#define MAX_NR_RFCOMM_SERVICES 1