diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-02-26 16:55:39 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-02-26 16:55:39 +0000 |
commit | aebc66f8e146b28148f5e5755f6b3252774441f8 (patch) | |
tree | 92a85e68ccfe7771cb3684247ac04c4877fbe4e8 /nuttx/configs/ne64badge/include | |
parent | 11cdbe3e35d80775ba9887a995a1e3c124c7a063 (diff) | |
download | px4-nuttx-aebc66f8e146b28148f5e5755f6b3252774441f8.tar.gz px4-nuttx-aebc66f8e146b28148f5e5755f6b3252774441f8.tar.bz2 px4-nuttx-aebc66f8e146b28148f5e5755f6b3252774441f8.zip |
Finish m9s12 GPIO support
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3318 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/ne64badge/include')
-rwxr-xr-x | nuttx/configs/ne64badge/include/board.h | 24 |
1 files changed, 16 insertions, 8 deletions
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 ************************************************************************************/ |