From 65e476df3e4584aa744763b52a86930c67e2e288 Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Wed, 6 Jan 2021 09:32:08 -0500 Subject: fix(splits): Send pos notify from dedicated thread * Avoid deadlocks by using a deadicated workqueue for sending position state notifications from peripherals. --- app/Kconfig | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'app/Kconfig') diff --git a/app/Kconfig b/app/Kconfig index 7602b9b..df00f1d 100644 --- a/app/Kconfig +++ b/app/Kconfig @@ -102,7 +102,7 @@ config ZMK_SPLIT if ZMK_SPLIT -config ZMK_SPLIT_BLE +menuconfig ZMK_SPLIT_BLE bool "Split keyboard support via BLE transport" depends on ZMK_BLE default y @@ -125,6 +125,18 @@ endif if !ZMK_SPLIT_BLE_ROLE_CENTRAL +config ZMK_SPLIT_BLE_PERIPHERAL_STACK_SIZE + int "BLE split peripheral notify thread stack size" + default 512 + +config ZMK_SPLIT_BLE_PERIPHERAL_PRIORITY + int "BLE split peripheral notify thread priority" + default 5 + +config ZMK_SPLIT_BLE_PERIPHERAL_POSITION_QUEUE_SIZE + int "Max number of key position state events to queue to send to the central" + default 10 + config ZMK_USB default n -- cgit v1.2.3