Skip to content
Permalink
Browse files

samples: nrf52: power_mgr: Fix build with prj_tickless.conf config

prj_tickless.conf lacks the CONFIG_PM_CONTROL_OS=y option which
results in the sample failing to build with this config as it leaves
sys_pm_ctrl_disable_state() and sys_pm_ctrl_enable_state()
undefined.

Add the relevant options from prj.conf to fix the build.

Tested on nrf52840_pca10056.

Signed-off-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
  • Loading branch information...
benpicco authored and nashif committed Feb 20, 2019
1 parent d9e4512 commit 3702d1a0d3fcd022e75be85a8b2fc0a4d7624b25
Showing with 4 additions and 0 deletions.
  1. +4 −0 samples/boards/nrf52/power_mgr/prj_tickless.conf
@@ -5,4 +5,8 @@ CONFIG_SYS_POWER_SLEEP_STATES=y
CONFIG_SYS_POWER_DEEP_SLEEP_STATES=y
CONFIG_DEVICE_POWER_MANAGEMENT=y
CONFIG_TICKLESS_KERNEL=y
CONFIG_PM_CONTROL_OS=y
CONFIG_PM_CONTROL_STATE_LOCK=y
CONFIG_PM_LPS_1_MIN_RES=5
CONFIG_PM_LPS_2_MIN_RES=15
CONFIG_GPIO=y

0 comments on commit 3702d1a

Please sign in to comment.
You can’t perform that action at this time.