summaryrefslogtreecommitdiff
path: root/nuttx/configs/ez80f910200zco/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-12-08 16:59:46 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-12-08 16:59:46 +0000
commit0658287df79b60dbb9584723bf8c431c929e4050 (patch)
tree52ee735313d0cb0e606fd2ad499bf37143798bf3 /nuttx/configs/ez80f910200zco/include
parent8f8dccfe507c5095b8910a6401a2b7e5dda7dae7 (diff)
downloadpx4-nuttx-0658287df79b60dbb9584723bf8c431c929e4050.tar.gz
px4-nuttx-0658287df79b60dbb9584723bf8c431c929e4050.tar.bz2
px4-nuttx-0658287df79b60dbb9584723bf8c431c929e4050.zip
Add LED support
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1434 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/ez80f910200zco/include')
-rw-r--r--nuttx/configs/ez80f910200zco/include/board.h33
1 files changed, 22 insertions, 11 deletions
diff --git a/nuttx/configs/ez80f910200zco/include/board.h b/nuttx/configs/ez80f910200zco/include/board.h
index 28d15541c..e43c337c1 100644
--- a/nuttx/configs/ez80f910200zco/include/board.h
+++ b/nuttx/configs/ez80f910200zco/include/board.h
@@ -43,18 +43,24 @@
/****************************************************************************
* Definitions
****************************************************************************/
-
-/* LED pattern definitions */
-#define LED_STARTED 0
-#define LED_HEAPALLOCATE 1
-#define LED_IRQSENABLED 2
-#define LED_STACKCREATED 3
-#define LED_IDLE 4
-#define LED_INIRQ 5
-#define LED_ASSERTION 6
-#define LED_SIGNAL 6
-#define LED_PANIC 7
+/* LED pattern definitions ON OFF */
+
+#define LED_STARTED 0 /* '0' N/A */
+#define LED_HEAPALLOCATE 1 /* 'H' N/A */
+#define LED_IRQSENABLED 2 /* 'E' N/A */
+#define LED_STACKCREATED 3 /* 'C' N/A */
+#define LED_IDLE 4 /* 'R' N/A */
+#define LED_INIRQ 5 /* 'I' (previous) */
+#define LED_ASSERTION 6 /* 'A' (previous) */
+#define LED_SIGNAL 7 /* 'S' (previous) */
+#define LED_PANIC 8 /* '*' (previous) */
+
+/* Button definitions */
+
+#define BUTTON_PB0 0x01 /* PB0: SW1 Bit 0 of GPIO Port B */
+#define BUTTON_PB1 0x02 /* PB1: SW2 Bit 1 of GPIO Port B */
+#define BUTTON_PB2 0x04 /* PB2: SW3 Bit 2 of GPIO Port B */
/****************************************************************************
* Public Functions
@@ -68,6 +74,11 @@ extern "C" {
#define EXTERN extern
#endif
+#ifdef CONFIG_ARCH_BUTTONS
+EXTERN void up_buttoninit(void);
+EXTERN ubyte up_buttons(void);
+#endif
+
#undef EXTERN
#if defined(__cplusplus)
}