DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
| Code Block |
|---|
/* Power management callback function prototypes */ |
| Code Block |
#ifdef CONFIG_PM
static void xyz_pm_notify(struct pm_callback_s *cb, int domain,
enum pm_state_e pmstate);
static int xyz_pm_prepare(struct pm_callback_s *cb, int domain,
enum pm_state_e pmstate);
#endif
|
...
| Code Block |
|---|
/* Power management callback function vtable */ |
| Code Block |
#ifdef CONFIG_PM
static struct pm_callback_s g_xyz_pmcb =
{
.notify = xyz_pm_notify,
.prepare = xyz_pm_prepare,
};
#endif
|
...
| Code Block |
|---|
/* Register to receive power management callbacks */ |
| Code Block |
int ret = pm_register(&g_xyz_pmcb); |
...