From 0de5b5256485a90afef940df3a164b75bef61c53 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 3 Jul 2010 04:58:51 +0000 Subject: [PATCH] Fix missing PCONP bit definition to enable GPIO git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2768 42af7a65-404d-4744-a932-0658087f49c3 --- configs/nucleus2g/src/up_leds.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/configs/nucleus2g/src/up_leds.c b/configs/nucleus2g/src/up_leds.c index cac3f89f62..fbc5a30afa 100755 --- a/configs/nucleus2g/src/up_leds.c +++ b/configs/nucleus2g/src/up_leds.c @@ -340,7 +340,11 @@ void up_ledon(int led) #ifdef LED_VERBOSE if (led != LED_INIRQ) { - led_dumpgpio("up_ledon() Exit"); + ledvdbg("led: %d LED1: %d LED2: %d HB: %d\n", + led, g_led1on[led], g_led2on[led], g_ledhbon[led]); + ledvdbg("LED1: {(%d,%d), (%d,%d)} LED2: {(%d,%d), (%d,%d)}\n", + g_prevled1a, g_currled1a, g_prevled1b, g_currled1b, + g_prevled2a, g_currled2a, g_prevled2b, g_currled2b); } #endif } @@ -358,7 +362,11 @@ void up_ledoff(int led) #ifdef LED_VERBOSE if (led != LED_INIRQ) { - led_dumpgpio("up_ledoff() Exit"); + ledvdbg("led: %d LED1: %d LED2: %d HB: %d\n", + led, g_led1off[led], g_led2off[led], g_ledhboff[led]); + ledvdbg("LED1: {(%d,%d), (%d,%d)} LED2: {(%d,%d), (%d,%d)}\n", + g_prevled1a, g_currled1a, g_prevled1b, g_currled1b, + g_prevled2a, g_currled2a, g_prevled2b, g_currled2b); } #endif }