From 354c060856725d9f042fd1579ff98e9c32def95c Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 13 Jun 2010 15:42:11 +0000 Subject: [PATCH] Add USB device driver git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2743 42af7a65-404d-4744-a932-0658087f49c3 --- configs/nucleus2g/src/up_leds.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/configs/nucleus2g/src/up_leds.c b/configs/nucleus2g/src/up_leds.c index 6ac41ff413..a3babda367 100755 --- a/configs/nucleus2g/src/up_leds.c +++ b/configs/nucleus2g/src/up_leds.c @@ -89,6 +89,24 @@ * Private Data ****************************************************************************/ +/* 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 + * +------- ------ ----------------------- + * LED_STARTED | OFF OFF OFF + * LED_HEAPALLOCATE | GREEN OFF OFF + * LED_IRQSENABLED | OFF GREEN OFF + * LED_STACKCREATED | GREEN GREEN OFF + * LED_INIRQ | NC NC ON + * LED_SIGNAL | NC RED NC + * LED_ASSERTION | RED NC NC + * LED_PANIC | RED RED NC (1Hz flashing) + */ + static const uint8_t g_led1on[8] = { LED_OFF, LED_GREEN, LED_OFF, LED_GREEN,