From 7443a917cb01484f2bb9fb9294c680eda343e24d Mon Sep 17 00:00:00 2001 From: Luigi311 Date: Sun, 4 Jul 2021 07:06:05 +0000 Subject: [PATCH] Add ble connection interval support Signed-off-by: Luigi311 --- app/Kconfig | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/app/Kconfig b/app/Kconfig index 0ea557d2..f26b6eb4 100644 --- a/app/Kconfig +++ b/app/Kconfig @@ -142,6 +142,30 @@ config ZMK_BLE_PASSKEY_ENTRY bool "Experimental: Requiring typing passkey from host to pair BLE connection" default n +config BT_GAP_AUTO_UPDATE_CONN_PARAMS + bool "Automatic Update of Connection Parameters" + default y + +config BT_GAP_PERIPHERAL_PREF_PARAMS + bool "Configure peripheral preferred connection parameters" + default y + +config BT_PERIPHERAL_PREF_MIN_INT + int "Peripheral preferred minimum connection interval in 1.25ms units" + default 6 + +config BT_PERIPHERAL_PREF_MAX_INT + int "Peripheral preferred maximum connection interval in 1.25ms units" + default 12 + +config BT_PERIPHERAL_PREF_SLAVE_LATENCY + int "Peripheral preferred slave latency in Connection Intervals" + default 30 + +config BT_PERIPHERAL_PREF_TIMEOUT + int "Peripheral preferred supervision timeout in 10ms units" + default 400 + #ZMK_BLE endif @@ -211,9 +235,6 @@ config BT_MAX_PAIRED config BT_MAX_CONN default 1 -config BT_GAP_AUTO_UPDATE_CONN_PARAMS - default n - #!ZMK_SPLIT_BLE_ROLE_CENTRAL endif