aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Kconfig
diff options
context:
space:
mode:
authorPete Johanson <[email protected]>2020-10-02 02:09:38 -0400
committerPete Johanson <[email protected]>2020-10-06 17:24:36 -0400
commita7496ab06425cab7de5fc7164b4ce5a34dd7107b (patch)
tree996b25361b7ef6d006c9f3b949562efda57a77c8 /app/Kconfig
parent9be566603e2eb248fbaa7af65cba42d5c06dbd33 (diff)
downloadzmk-a7496ab06425cab7de5fc7164b4ce5a34dd7107b.tar.gz
zmk-a7496ab06425cab7de5fc7164b4ce5a34dd7107b.zip
feat(power): Initial deep sleep work.
* New ZMK_SLEEP Kconfig symbol to enable the functionality. * Switch to PORT events that allows wake from deep sleep. * Initial basic power management policy, with idle ms, and ignoring deep sleep if we detect a USB connection.
Diffstat (limited to 'app/Kconfig')
-rw-r--r--app/Kconfig20
1 files changed, 19 insertions, 1 deletions
diff --git a/app/Kconfig b/app/Kconfig
index 9398fce1b8..edf586700f 100644
--- a/app/Kconfig
+++ b/app/Kconfig
@@ -76,6 +76,25 @@ 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_DISPLAY
bool "ZMK display support"
default n
@@ -112,7 +131,6 @@ config ZMK_SPLIT_BLE_ROLE_CENTRAL
config ZMK_SPLIT_BLE_ROLE_PERIPHERAL
bool "Peripheral"
- select BT_KEYS_OVERWRITE_OLDEST
if ZMK_SPLIT_BLE_ROLE_PERIPHERAL