fix(pm): Use Zephyr created device slots.
* Avoid overwriting random memory by using iterable section created by Zephyr PM.
This commit is contained in:
parent
d0e0ecb4e3
commit
41d81801ed
3 changed files with 3 additions and 16 deletions
|
|
@ -8,10 +8,6 @@ set(ZEPHYR_EXTRA_MODULES "${ZMK_EXTRA_MODULES};${CMAKE_CURRENT_SOURCE_DIR}/modul
|
|||
find_package(Zephyr REQUIRED HINTS ../zephyr)
|
||||
project(zmk)
|
||||
|
||||
if(CONFIG_ZMK_PM_DEVICE_SUSPEND_RESUME)
|
||||
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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue