summaryrefslogtreecommitdiff
path: root/app/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'app/Kconfig')
-rw-r--r--app/Kconfig78
1 files changed, 62 insertions, 16 deletions
diff --git a/app/Kconfig b/app/Kconfig
index 877fce4..fca4912 100644
--- a/app/Kconfig
+++ b/app/Kconfig
@@ -21,12 +21,16 @@ menuconfig ZMK_USB
select USB_DEVICE_STACK
select USB_DEVICE_HID
-if ZMK_USB
+if USB
config ZMK_USB_INIT_PRIORITY
int "Init Priority"
default 50
+endif
+
+if ZMK_USB
+
config USB_NUMOF_EP_WRITE_RETRIES
default 10
@@ -37,21 +41,26 @@ menuconfig ZMK_BLE
select BT
select BT_SMP
select BT_SMP_SC_PAIR_ONLY
+ select BT_SMP_APP_PAIRING_ACCEPT
select BT_PERIPHERAL
select BT_GATT_DIS
select BT_GATT_BAS
+ select BT_SETTINGS
select SETTINGS
- # select BT_SETTINGS
if ZMK_BLE
config ZMK_BLE_INIT_PRIORITY
int "Init Priority"
default 50
-
+
config SYSTEM_WORKQUEUE_STACK_SIZE
default 2048
+config ZMK_BLE_CLEAR_BONDS_ON_START
+ bool "Configuration that clears all bond information from the keyboard on startup."
+ default n
+
# HID GATT notifications sent this way are *not* picked up by Linux, and possibly others.
config BT_GATT_NOTIFY_MULTIPLE
default n
@@ -67,6 +76,29 @@ endif
endmenu
+menuconfig ZMK_SLEEP
+ bool "Enable deep sleep support"
+ imply USB
+
+if ZMK_SLEEP
+
+config SYS_POWER_DEEP_SLEEP_STATES
+ default y
+
+choice SYS_PM_POLICY
+ default SYS_PM_POLICY_APP
+endchoice
+
+config ZMK_IDLE_SLEEP_TIMEOUT
+ int "Milliseconds to wait to sleep when going idle"
+ default 900000
+
+endif
+
+config ZMK_EXT_POWER
+ bool "Enable support to control external power output"
+ default y
+
config ZMK_DISPLAY
bool "ZMK display support"
default n
@@ -101,17 +133,6 @@ config ZMK_SPLIT_BLE_ROLE_CENTRAL
select BT_CENTRAL
select BT_GATT_CLIENT
-if ZMK_SPLIT_BLE_ROLE_CENTRAL
-
-config BT_MAX_CONN
- default 5
-
-config BT_MAX_PAIRED
- # Bump this everywhere once we support switching active connections!
- default 2
-
-endif
-
config ZMK_SPLIT_BLE_ROLE_PERIPHERAL
bool "Peripheral"
@@ -120,9 +141,11 @@ if ZMK_SPLIT_BLE_ROLE_PERIPHERAL
config ZMK_USB
default n
+config BT_MAX_PAIRED
+ default 1
config BT_MAX_CONN
- default 5
+ default 1
config BT_GAP_AUTO_UPDATE_CONN_PARAMS
default n
@@ -135,8 +158,31 @@ endif
endif
-endmenu
+if ZMK_BLE
+
+if ZMK_SPLIT_BLE && ZMK_SPLIT_BLE_ROLE_CENTRAL
+
+config BT_MAX_CONN
+ default 6
+
+config BT_MAX_PAIRED
+ default 6
+
+endif
+if !ZMK_SPLIT_BLE
+
+config BT_MAX_CONN
+ default 5
+
+config BT_MAX_PAIRED
+ default 5
+
+endif
+
+endif
+
+endmenu
config ZMK_KSCAN_MOCK_DRIVER
bool "Enable mock kscan driver to simulate key presses"