13#ifndef __xwos_osal_pm_h__
14#define __xwos_osal_pm_h__
69#define XWOS_PM_STAGE_SUSPENDED XWOSDL_PM_STAGE_SUSPENDED
70#define XWOS_PM_STAGE_SUSPENDING XWOSDL_PM_STAGE_SUSPENDING
71#define XWOS_PM_STAGE_RESUMING XWOSDL_PM_STAGE_RESUMING
72#define XWOS_PM_STAGE_FREEZING XWOSDL_PM_STAGE_FREEZING
73#define XWOS_PM_STAGE_THAWING XWOSDL_PM_STAGE_THAWING
74#define XWOS_PM_STAGE_RUNNING XWOSDL_PM_STAGE_RUNNING
97 return xwosdl_pm_set_cb(resume_cb, suspend_cb, wakeup_cb, sleep_cb, arg);
113 return xwosdl_pm_suspend();
129 return xwosdl_pm_resume();
145 return xwosdl_pm_get_stage();
#define __xwos_inline_api
xwosdl_pm_cb_f xwos_pm_cb_f
电源管理回调函数指针类型
static xwsq_t xwos_pm_get_stage(void)
XWOS API:获取当前电源管理阶段
static void xwos_pm_set_cb(xwos_pm_cb_f resume_cb, xwos_pm_cb_f suspend_cb, xwos_pm_cb_f wakeup_cb, xwos_pm_cb_f sleep_cb, void *arg)
XWOS API:设置电源管理的回调函数
static xwer_t xwos_pm_resume(void)
XWOS API:唤醒系统
static xwer_t xwos_pm_suspend(void)
XWOS API:将系统切换为低功耗状态