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:
parent
edc72c1166
commit
1d83f279cd
2 changed files with 5 additions and 1 deletions
|
@ -399,6 +399,9 @@ config ZMK_SLEEP
|
||||||
|
|
||||||
if ZMK_SLEEP
|
if ZMK_SLEEP
|
||||||
|
|
||||||
|
config PM_DEVICE
|
||||||
|
default y
|
||||||
|
|
||||||
config ZMK_IDLE_SLEEP_TIMEOUT
|
config ZMK_IDLE_SLEEP_TIMEOUT
|
||||||
int "Milliseconds of inactivity before entering deep sleep"
|
int "Milliseconds of inactivity before entering deep sleep"
|
||||||
default 900000
|
default 900000
|
||||||
|
|
|
@ -20,5 +20,6 @@ encoder: &qdec0 {
|
||||||
led-pre = <0>;
|
led-pre = <0>;
|
||||||
steps = <80>;
|
steps = <80>;
|
||||||
pinctrl-0 = <&qdec_default>;
|
pinctrl-0 = <&qdec_default>;
|
||||||
pinctrl-names = "default";
|
pinctrl-1 = <&qdec_default>;
|
||||||
|
pinctrl-names = "default", "sleep";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue