Add a header file that defines a standard watchdog timer driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4603 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
b805e0fd2e
commit
6534da24e4
@ -12,7 +12,7 @@
|
||||
<h1><big><font color="#3c34ec">
|
||||
<i>NuttX RTOS Porting Guide</i>
|
||||
</font></big></h1>
|
||||
<p>Last Updated: March 23, 2011</p>
|
||||
<p>Last Updated: April 13, 2011</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -129,7 +129,8 @@
|
||||
<a href="#analogdrivers">6.3.11 Analog (ADC/DAC) Drivers</a><br>
|
||||
<a href="#pwmdrivers">6.3.12 PWM Drivers</a><br>
|
||||
<a href="#candrivers">6.3.13 CAN Drivers</a><br>
|
||||
<a href="#quadencoder">6.3.14 Quadrature Encoder Drivers</a>
|
||||
<a href="#quadencoder">6.3.14 Quadrature Encoder Drivers</a><br>
|
||||
<a href="#wdogdriver">6.3.15 Watchdog Timer Drivers</a>
|
||||
</ul>
|
||||
<a href="#pwrmgmt">6.4 Power Management</a>
|
||||
<ul>
|
||||
@ -3261,7 +3262,7 @@ extern void up_ledoff(int led);
|
||||
|
||||
<h3><a name="quadencoder">6.3.14 Quadrature Encoder Drivers</a></h3>
|
||||
<p>
|
||||
NuttX supports only a low-level, two-part Quadrature Driver driver.
|
||||
NuttX supports a low-level, two-part Quadrature Encoder driver.
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
@ -3288,6 +3289,35 @@ extern void up_ledoff(int led);
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h3><a name="wdogdriver">6.3.15 Watchdog Timer Drivers</a></h3>
|
||||
<p>
|
||||
NuttX supports a low-level, two-part watchdog timer driver.
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
An "upper half", generic driver that provides the comman watchdog timer interface to application level code, and
|
||||
</li>
|
||||
<li>
|
||||
A "lower half", platform-specific driver that implements the low-level timer controls to implement the watchdog timer functionality.
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
Files supporting the watchdog timer can be found in the following locations:
|
||||
</p>
|
||||
<ul>
|
||||
<li><b>Interface Definition</b>.
|
||||
The header file for the NuttX watchdog timer driver reside at <code>include/nuttx/watchdog.h</code>.
|
||||
This header file includes both the application level interface to the watchdog timer driver as well as the interface between the "upper half" and "lower half" drivers.
|
||||
The watchdog timer driver uses a standard character driver framework.
|
||||
</li>
|
||||
<li><b>"Upper Half" Driver</b>.
|
||||
The generic, "upper half" watchdog timer driver resides at <code>drivers/watchdog.c</code>.
|
||||
</li>
|
||||
<li><b>"Lower Half" Drivers</b>.
|
||||
Platform-specific watchdog timer drivers reside in <code>arch/</code><i><architecture></i><code>/src/</code><i><chip></i> directory for the specific processor <i><architecture></i> and for the specific <i><chip></i> watchdog timer peripheral devices.
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h2><a name="pwrmgmt">6.4 Power Management</a></h2>
|
||||
|
||||
<h3><a name="pmoverview">6.4.1 Overview</a></h3>
|
||||
|
Loading…
Reference in New Issue
Block a user