diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-24 23:23:49 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-24 23:23:49 +0000 |
commit | c93c3e4c38b095e65cfc374f1cfee094e141f0fb (patch) | |
tree | af39c91a06c1e25974256502a83ae8a00c23da4d /nuttx/configs/z16f2800100zcog/include | |
parent | b146fd97783dd3b0784d2af61dedc541a53b1140 (diff) | |
download | px4-nuttx-c93c3e4c38b095e65cfc374f1cfee094e141f0fb.tar.gz px4-nuttx-c93c3e4c38b095e65cfc374f1cfee094e141f0fb.tar.bz2 px4-nuttx-c93c3e4c38b095e65cfc374f1cfee094e141f0fb.zip |
Add z16f LED logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@563 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/z16f2800100zcog/include')
-rw-r--r-- | nuttx/configs/z16f2800100zcog/include/board.h | 35 |
1 files changed, 27 insertions, 8 deletions
diff --git a/nuttx/configs/z16f2800100zcog/include/board.h b/nuttx/configs/z16f2800100zcog/include/board.h index c1be6e741..492106abb 100644 --- a/nuttx/configs/z16f2800100zcog/include/board.h +++ b/nuttx/configs/z16f2800100zcog/include/board.h @@ -1,4 +1,4 @@ -/************************************************************ +/**************************************************************************** * board/board.h * * Copyright (C) 2008 Gregory Nutt. All rights reserved. @@ -31,22 +31,41 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ****************************************************************************/ #ifndef __ARCH_BOARD_BOARD_H #define __ARCH_BOARD_BOARD_H -/************************************************************ +/**************************************************************************** * Included Files - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Definitions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/* LED pattern definitions + * + * The z16f2800100zcog board has four LEDs: + * + * - Green LED D1 which illuminates in the presence of Vcc + * - Red LED D2 connected to chip port PA0_T0IN + * - Yellow LED D3 connected to chip port PA1_T0OUT + * - Green LED D4 connected to chip port PA2_DE0 + */ + +#define LED_STARTED 0 +#define LED_HEAPALLOCATE 1 +#define LED_IRQSENABLED 2 +#define LED_IDLE 3 +#define LED_INIRQ 4 +#define LED_ASSERTION 5 +#define LED_PANIC 6 + +/**************************************************************************** * Public Functions - ************************************************************/ + ****************************************************************************/ + #undef EXTERN #if defined(__cplusplus) #define EXTERN extern "C" |