diff options
| author | Bernard Xiong <[email protected]> | 2019-05-09 09:42:19 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-05-09 09:42:19 +0800 |
| commit | d0b686ed3c45c50950785ced52e70808af3c1fa6 (patch) | |
| tree | a03e2d03db949271181c93f7501c203abc1a2ff1 /examples | |
| parent | abc5fff696d5e48aec38c4c414c69be0d9ba47fb (diff) | |
| parent | d51e0783babc4ffa7286e8dadceb2b2be2129b33 (diff) | |
Merge pull request #2653 from Zero-Free/pm_dev
改进低功耗组件
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/pm/timer_app.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/pm/timer_app.c b/examples/pm/timer_app.c index 5c20d0f690..b7ff675b39 100644 --- a/examples/pm/timer_app.c +++ b/examples/pm/timer_app.c @@ -6,6 +6,7 @@ * Change Logs: * Date Author Notes * 2018-08-07 Tanek first implementation + * 2019-05-06 Zero-Free adapt to the new power management interface */ #include <board.h> @@ -39,7 +40,7 @@ static int timer_app_init(void) rt_timer_start(timer1); /* keep in timer mode */ - rt_pm_request(PM_SLEEP_MODE_TIMER); + rt_pm_request(PM_SLEEP_MODE_DEEP); return 0; } |
