diff --git a/Documentation/NuttxPortingGuide.html b/Documentation/NuttxPortingGuide.html index 692c365805..1934e9bb6f 100644 --- a/Documentation/NuttxPortingGuide.html +++ b/Documentation/NuttxPortingGuide.html @@ -12,7 +12,7 @@

NuttX RTOS Porting Guide

-

Last Updated: April 19, 2009

+

Last Updated: May 9, 2009

@@ -92,10 +92,16 @@ 4.2 APIs Exported by NuttX to Architecture-Specific Logic + 4.3 LED Support + 5.0 NuttX File System
Appendix A: NuttX Configuration Settings
@@ -1423,6 +1429,142 @@ The system can be re-made subsequently by just typing make. the appropriate, registered handling logic.

+

4.3 LED Support

+ +

+ A board architecture may or may not have LEDs. + If the board does have LEDs, then most architectures provide similar LED support that is enabled when CONFIG_ARCH_LEDS + is selected in the NuttX configuration file. + This LED support is part of architecture-specific logic and is not managed by the core NuttX logic. + However, the support provided by each architecture is sufficiently similar that it can be documented here. +

+ +

4.3.1 Header Files

+ +

+ LED-related definitions are provided in two header files: +

+

+ +

4.3.2 LED Definitions

+ +

+ The implementation of LED support is very specific to a board architecture. + Some boards have several LEDS, others have only one or two. + Some have none. + Others LED matrices and show alphnumeric data, etc. + The NuttX logic does not refer to specific LEDS, rather, it refers to an event to be shown on the LEDS + in whatever manner is appropriate for the board; + the way that this event is presented depends upon the hardware available on the board. +

+

+ The model used by NuttX is that the board can show 8 events defined as follows in <board-name>/include/board.h: +

+ +

+ The specific value assigned to each pre-processor variable can be whatever makes the implementation easiest for the board logic. + The meaning associated with each definition is as follows: +

+ + +

4.3.3 Common LED interfaces

+ +

+ The <arch-name>/src/common/up_internal.h probably has definitions + like: +

+ +

+ Where: +

+

+