From ede532e57bf111380ba6fd058251ee3ca416e77c Mon Sep 17 00:00:00 2001
From: Gregory Nutt 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:
Function Prototype: 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
+ OK) on success; otherwise a negated errno value
#include <nuttx/power/pm.h>
-void pm_activity(int priority);
+void pm_activity(int domain, int priority);
+
domain
+ priority
#include <nuttx/power/pm.h>
-enum pm_state_e pm_checkstate(void);
+enum pm_state_e pm_checkstate(int domain);
+
domain
+
Returned Value: The recommended power management state.