summaryrefslogtreecommitdiff
path: root/nuttx/configs/nucleus2g/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-06-13 00:57:56 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-06-13 00:57:56 +0000
commit4223c35adc0674a935a028b603cbe42c54b1a244 (patch)
tree3dfb3397547c1349cb4b0f0fc33a7157a4d96918 /nuttx/configs/nucleus2g/include
parent1b606017812ef2671ddcbb0b1d633905c1461434 (diff)
downloadpx4-nuttx-4223c35adc0674a935a028b603cbe42c54b1a244.tar.gz
px4-nuttx-4223c35adc0674a935a028b603cbe42c54b1a244.tar.bz2
px4-nuttx-4223c35adc0674a935a028b603cbe42c54b1a244.zip
Add control for Nucleus2g GPIOs
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2742 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/nucleus2g/include')
-rwxr-xr-xnuttx/configs/nucleus2g/include/board.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/nuttx/configs/nucleus2g/include/board.h b/nuttx/configs/nucleus2g/include/board.h
index edbc1bacc..f5a6c3f6a 100755
--- a/nuttx/configs/nucleus2g/include/board.h
+++ b/nuttx/configs/nucleus2g/include/board.h
@@ -122,16 +122,22 @@
#define BOARD_FLASHCFG_VALUE 0x0000303a
/* LED definitions ******************************************************************/
-
-#define LED_STARTED 0
-#define LED_HEAPALLOCATE 1
-#define LED_IRQSENABLED 2
-#define LED_STACKCREATED 3
-
-#define LED_INIRQ 4
-#define LED_SIGNAL 5
-#define LED_ASSERTION 6
-#define LED_PANIC 7
+/* The Nucleus2G has 3 LEDs... two on the Babel CAN board and a "heartbeat" LED."
+ * The LEDs on the Babel CAN board are capabl of OFF/GREEN/RED/AMBER status.
+ * In normal usage, the two LEDs on the Babel CAN board would show CAN status, but if
+ * CONFIG_ARCH_LEDS is defined, these LEDs will be controlled as follows for NuttX
+ * debug functionality (where NC means "No Change").
+ *
+ /* LED1 LED2 HEARTBEAT */
+#define LED_STARTED 0 /* OFF OFF OFF */
+#define LED_HEAPALLOCATE 1 /* GREEN OFF OFF */
+#define LED_IRQSENABLED 2 /* OFF GREEN OFF */
+#define LED_STACKCREATED 3 /* GREEN GREEN OFF */
+
+#define LED_INIRQ 4 /* NC NC ON */
+#define LED_SIGNAL 5 /* NC RED NC */
+#define LED_ASSERTION 6 /* RED NC NC */
+#define LED_PANIC 7 /* RED RED NC (1Hz flashing) */
/* Alternate pin selections *********************************************************/