未验证 提交 7fd434e2 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #1935 from armink/add_pm

[DeviceDriver][pm] Update pm driver.
......@@ -238,7 +238,15 @@ void rt_pm_request(rt_ubase_t mode)
* if not, it has already called in rt_pm_exit()
*/
if (pm->current_mode < PM_SLEEP_MODE_START)
{
pm->ops->exit(pm);
}
else if (pm->exit_count)
{
/* call exeit when global interrupt is disable */
pm->ops->exit(pm);
pm->exit_count = 0;
}
/* update current mode */
pm->current_mode = mode;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册