From 0658287df79b60dbb9584723bf8c431c929e4050 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 8 Dec 2008 16:59:46 +0000 Subject: Add LED support git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1434 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/configs/ez80f910200zco/include/board.h | 33 ++++++++++++++++++---------- 1 file changed, 22 insertions(+), 11 deletions(-) (limited to 'nuttx/configs/ez80f910200zco/include') 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) } -- cgit v1.2.3