From aebc66f8e146b28148f5e5755f6b3252774441f8 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 26 Feb 2011 16:55:39 +0000 Subject: Finish m9s12 GPIO support git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3318 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/configs/ne64badge/include/board.h | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'nuttx/configs/ne64badge/include') diff --git a/nuttx/configs/ne64badge/include/board.h b/nuttx/configs/ne64badge/include/board.h index 81ee1af16..aea9358b1 100755 --- a/nuttx/configs/ne64badge/include/board.h +++ b/nuttx/configs/ne64badge/include/board.h @@ -79,17 +79,25 @@ /* The NE64 Badge board has 2 red LEDs that we will encode as: */ -#define LED_STARTED 1 /* LED1 */ -#define LED_HEAPALLOCATE 1 /* LED1 */ -#define LED_IRQSENABLED 1 /* LED1 */ -#define LED_STACKCREATED 1 /* LED1 */ -#define LED_INIRQ 2 /* LED1 + LED2 */ -#define LED_SIGNAL 2 /* LED1 + LED2 */ -#define LED_ASSERTION 2 /* LED1 + LED2 */ -#define LED_PANIC 7 /* LED2 + N/C */ + /* LED1 LED2 */ +#define LED_STARTED 0 /* OFF OFF = Still initializing */ +#define LED_HEAPALLOCATE 0 /* OFF OFF = Still initializing */ +#define LED_IRQSENABLED 0 /* OFF OFF = Still initializing */ +#define LED_STACKCREATED 1 /* ON OFF = Initialization complete */ +#define LED_INIRQ 2 /* NC ON = In an interrupt handler */ +#define LED_SIGNAL 2 /* NC ON = In a signal handler */ +#define LED_ASSERTION 2 /* NC ON = In an assertion */ +#define LED_PANIC 2 /* NC ON = Oops! We crashed. (flashing) */ /* Button definitions ***************************************************************/ +/* The NE64 badge has 2 switches, one labed SW1 and the other SW2 on the board (but + * referred to as button1 and button2 in some documentation) + */ + +#define BUTTON1 1 /* Bit 0: SW1 button is depressed */ +#define BUTTON2 2 /* Bit 1: SW2 button is depressed */ + /************************************************************************************ * Public Data ************************************************************************************/ -- cgit v1.2.3