fix(pm): Tweaks for deep sleep/PM.

* Restore enabling of PM_DEVICE, make ZMK_SLEEP work with
  the ZMK Uno shield on nrf52840dk_nrf52840 board.
This commit is contained in:
Peter Johanson 2024-02-08 18:44:05 +00:00 committed by Pete Johanson
parent edc72c1166
commit 1d83f279cd
2 changed files with 5 additions and 1 deletions

View File

@ -399,6 +399,9 @@ config ZMK_SLEEP
if ZMK_SLEEP
config PM_DEVICE
default y
config ZMK_IDLE_SLEEP_TIMEOUT
int "Milliseconds of inactivity before entering deep sleep"
default 900000

View File

@ -20,5 +20,6 @@ encoder: &qdec0 {
led-pre = <0>;
steps = <80>;
pinctrl-0 = <&qdec_default>;
pinctrl-names = "default";
pinctrl-1 = <&qdec_default>;
pinctrl-names = "default", "sleep";
};