From ede532e57bf111380ba6fd058251ee3ca416e77c Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 27 Mar 2016 13:01:09 -0600 Subject: [PATCH] PM: Add domain to all PM interfaces. Internal PM data structures now handle multiple PM domains. --- Documentation/NuttxPortingGuide.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Documentation/NuttxPortingGuide.html b/Documentation/NuttxPortingGuide.html index 7567e4f65da..5a6de2f9470 100644 --- a/Documentation/NuttxPortingGuide.html +++ b/Documentation/NuttxPortingGuide.html @@ -5698,7 +5698,7 @@ Zero (OK) on success; otherwise a negated errno value

Function Prototype:

Description: This function is called by a device driver to indicate that it is performing meaningful activities (non-idle). @@ -5706,6 +5706,8 @@ void pm_activity(int priority);

Input Parameters:

+
domain +
Identifies the domain of the new PM activity
priority
Activity priority, range 0-9. @@ -5725,7 +5727,7 @@ void pm_activity(int priority);

Function Prototype:

     #include <nuttx/power/pm.h>
    -enum pm_state_e pm_checkstate(void);
    +enum pm_state_e pm_checkstate(int domain);
     

Description: This function is called from the MCU-specific IDLE loop to monitor the power management conditions. @@ -5742,7 +5744,10 @@ enum pm_state_e pm_checkstate(void); The IDLE loop may need to make these calls atomic by either disabling interrupts until the state change is completed.

Input Parameters: - None +

+
domain +
Identifies the PM domain to check +

Returned Value: The recommended power management state.