fix(pm): Restore sleep suspension of devices.

* After the move to `sys_poweroff`, restore the behavior of
  suspending devices before entering sleep state.
This commit is contained in:
Peter Johanson
2024-02-09 18:50:06 +00:00
committed by Pete Johanson
parent 1d83f279cd
commit 50a303b8bb
3 changed files with 79 additions and 0 deletions

View File

@@ -8,6 +8,10 @@ set(ZEPHYR_EXTRA_MODULES "${ZMK_EXTRA_MODULES};${CMAKE_CURRENT_SOURCE_DIR}/modul
find_package(Zephyr REQUIRED HINTS ../zephyr)
project(zmk)
if(CONFIG_ZMK_SLEEP)
zephyr_linker_sources(SECTIONS include/linker/zmk-pm-devices.ld)
endif()
zephyr_linker_sources(SECTIONS include/linker/zmk-behaviors.ld)
zephyr_linker_sources(RODATA include/linker/zmk-events.ld)