refactor: Move to new PM API/Kconfig settings.
This commit is contained in:
parent
2b469acbce
commit
e6fa8a93e7
3 changed files with 3 additions and 5 deletions
|
@ -335,7 +335,7 @@ config ZMK_SLEEP
|
||||||
|
|
||||||
if ZMK_SLEEP
|
if ZMK_SLEEP
|
||||||
|
|
||||||
choice SYS_PM_POLICY
|
choice PM_POLICY
|
||||||
default PM_POLICY_APP
|
default PM_POLICY_APP
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#include <device.h>
|
#include <device.h>
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <kernel.h>
|
#include <kernel.h>
|
||||||
#include <power/power.h>
|
#include <pm/pm.h>
|
||||||
|
|
||||||
#include <logging/log.h>
|
#include <logging/log.h>
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
#include <zephyr.h>
|
#include <zephyr.h>
|
||||||
#include <kernel.h>
|
#include <kernel.h>
|
||||||
#include <power/power.h>
|
#include <pm/pm.h>
|
||||||
|
|
||||||
#include <logging/log.h>
|
#include <logging/log.h>
|
||||||
|
|
||||||
|
@ -30,5 +30,3 @@ struct pm_state_info pm_policy_next_state(int32_t ticks) {
|
||||||
|
|
||||||
return (struct pm_state_info){PM_STATE_ACTIVE, 0, 0};
|
return (struct pm_state_info){PM_STATE_ACTIVE, 0, 0};
|
||||||
}
|
}
|
||||||
|
|
||||||
__weak bool pm_policy_low_power_devices(enum pm_state state) { return pm_is_sleep_state(state); }
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue