diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-01-22 16:42:49 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-01-22 16:42:49 +0000 |
commit | 0068180bf82411052452587a4fae3a9f6971950b (patch) | |
tree | a8318c2dddbe4ecd66f431e93f8ac7e1fe5adabe /nuttx/Documentation/NuttxPortingGuide.html | |
parent | cb1242d496133d75a3214186d3a3c4a19ca3f64e (diff) | |
download | px4-firmware-0068180bf82411052452587a4fae3a9f6971950b.tar.gz px4-firmware-0068180bf82411052452587a4fae3a9f6971950b.tar.bz2 px4-firmware-0068180bf82411052452587a4fae3a9f6971950b.zip |
Create directory structures to support power-related devices
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4321 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/Documentation/NuttxPortingGuide.html')
-rw-r--r-- | nuttx/Documentation/NuttxPortingGuide.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/nuttx/Documentation/NuttxPortingGuide.html b/nuttx/Documentation/NuttxPortingGuide.html index 7ef4e522a..62f5d1d11 100644 --- a/nuttx/Documentation/NuttxPortingGuide.html +++ b/nuttx/Documentation/NuttxPortingGuide.html @@ -3331,18 +3331,18 @@ extern void up_ledoff(int led); <code>SLEEP</code> (some MCUs may even require going through reset). </dl> <p> - These various states are represented with type <code>enum pm_state_e</code> in <code>include/nuttx/pm.h</code>. + These various states are represented with type <code>enum pm_state_e</code> in <code>include/nuttx/power/pm.h</code>. </p> <h3><a name="pminterfaces">6.4.2 Interfaces</a></h3> <p> - All PM interfaces are declared in the file <code>include/nuttx/pm.h</code>. + All PM interfaces are declared in the file <code>include/nuttx/power/pm.h</code>. </p> <h4><a name="pminitialize">6.4.2.1 pm_initialize()</a></h4> <p><b>Function Prototype:</b></p> <ul><pre> -#include <nuttx/pm.h> +#include <nuttx/power/pm.h> void pm_initialize(void); </pre></ul> <p><b>Description:</b> @@ -3359,7 +3359,7 @@ None <h4><a name="pmregister">6.4.2.2 pm_register()</a></h4> <p><b>Function Prototype:</b></p> <ul><pre> -#include <nuttx/pm.h> +#include <nuttx/power/pm.h> int pm_register(FAR struct pm_callback_s *callbacks); </pre></ul> <p><b>Description:</b> @@ -3379,7 +3379,7 @@ Zero (<code>OK</code>) on success; otherwise a negater <code>errno</code> value <h4><a name="pmactivity">6.4.2.3 pm_activity()</a></h4> <p><b>Function Prototype:</b></p> <ul><pre> -#include <nuttx/pm.h> +#include <nuttx/power/pm.h> void pm_activity(int priority); </pre></ul> <p><b>Description:</b> @@ -3406,7 +3406,7 @@ void pm_activity(int priority); <h4><a name="pmcheckstate">6.4.2.4 pm_checkstate()</a></h4> <p><b>Function Prototype:</b></p> <ul><pre> -#include <nuttx/pm.h> +#include <nuttx/power/pm.h> enum pm_state_e pm_checkstate(void); </pre></ul> <p><b>Description:</b> @@ -3433,7 +3433,7 @@ enum pm_state_e pm_checkstate(void); <h4><a name="pmchangestate">6.4.2.5 pm_changestate()</a></h4> <p><b>Function Prototype:</b></p> <ul><pre> -#include <nuttx/pm.h> +#include <nuttx/power/pm.h> int pm_changestate(enum pm_state_e newstate); </pre></ul> <p><b>Description:</b> @@ -3461,7 +3461,7 @@ enum pm_state_e pm_checkstate(void); <h3><a name="pmcallbacks">6.4.3 Callbacks</a></h3> <p> The <code>struct pm_callback_s</code> includes the pointers to the driver callback functions. - This structure is defined <code>include/nuttx/pm.h</code>. + This structure is defined <code>include/nuttx/power/pm.h</code>. These callback functions can be used to provide power management information to the driver. </p> @@ -3496,7 +3496,7 @@ int (*prepare)(FAR struct pm_callback_s *cb, enum pm_state_e pmstate); <h4><a name="pmnotify">6.4.3.1 notify()</a></h4> <p><b>Function Prototype:</b></p> <ul><pre> -#include <nuttx/pm.h> +#include <nuttx/power/pm.h> void (*notify)(FAR struct pm_callback_s *cb, enum pm_state_e pmstate); </pre></ul> <p><b>Description:</b> |