mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Minor update to PM discussion in the porting guide
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
<h1><big><font color="#3c34ec">
|
<h1><big><font color="#3c34ec">
|
||||||
<i>NuttX RTOS Porting Guide</i>
|
<i>NuttX RTOS Porting Guide</i>
|
||||||
</font></big></h1>
|
</font></big></h1>
|
||||||
<p>Last Updated: March 13, 2016</p>
|
<p>Last Updated: March 28, 2016</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@@ -5580,12 +5580,13 @@ int kbd_decode(FAR struct lib_instream_s *stream, FAR struct kbd_getstate_s *sta
|
|||||||
|
|
||||||
<h3><a name="pmoverview">6.4.1 Overview</a></h3>
|
<h3><a name="pmoverview">6.4.1 Overview</a></h3>
|
||||||
<p>
|
<p>
|
||||||
|
<b>Power Management (PM) Sub-System</b>.
|
||||||
NuttX supports a simple power management (PM) sub-system. This sub-system:
|
NuttX supports a simple power management (PM) sub-system. This sub-system:
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>
|
||||||
Monitors driver activity, and
|
Monitors activity from drivers (and from other parts of the syste), and
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@@ -5624,6 +5625,7 @@ int kbd_decode(FAR struct lib_instream_s *stream, FAR struct kbd_getstate_s *sta
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>
|
<p>
|
||||||
|
<b>Low Power Consumption States</b>.
|
||||||
Various "sleep" and low power consumption states have various names and are sometimes used in conflicting ways.
|
Various "sleep" and low power consumption states have various names and are sometimes used in conflicting ways.
|
||||||
In the NuttX PM logic, we will use the following terminology:
|
In the NuttX PM logic, we will use the following terminology:
|
||||||
</p>
|
</p>
|
||||||
@@ -5652,6 +5654,14 @@ int kbd_decode(FAR struct lib_instream_s *stream, FAR struct kbd_getstate_s *sta
|
|||||||
These various states are represented with type <code>enum pm_state_e</code> in <code>include/nuttx/power/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>
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<b>Power Management Domains</b>.
|
||||||
|
Each PM interfaces includes a integer <i>domain</i> number.
|
||||||
|
By default, only a single power domain is supported (<code>CONFIG_PM_NDOMAINS=1</code>).
|
||||||
|
But that is configurable; any number of PM domains can be supported.
|
||||||
|
Multiple PM domains might be useful, for example, if you would want to control power states associated with a network separately from power states associated with a user interface.
|
||||||
|
</p>
|
||||||
|
|
||||||
<h3><a name="pminterfaces">6.4.2 Interfaces</a></h3>
|
<h3><a name="pminterfaces">6.4.2 Interfaces</a></h3>
|
||||||
<p>
|
<p>
|
||||||
All PM interfaces are declared in the file <code>include/nuttx/power/pm.h</code>.
|
All PM interfaces are declared in the file <code>include/nuttx/power/pm.h</code>.
|
||||||
|
|||||||
Reference in New Issue
Block a user