diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-07-03 04:58:51 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-07-03 04:58:51 +0000 |
commit | 8ab71c83728e6fec58f4dbc9dbdf11aef1622d06 (patch) | |
tree | fe71a06067bba907b83010ea7abbf49bb8f2ad0e /nuttx/configs/nucleus2g/src/up_leds.c | |
parent | d7e965833f00661022a5c19bc9c338a5681e15ad (diff) | |
download | px4-nuttx-8ab71c83728e6fec58f4dbc9dbdf11aef1622d06.tar.gz px4-nuttx-8ab71c83728e6fec58f4dbc9dbdf11aef1622d06.tar.bz2 px4-nuttx-8ab71c83728e6fec58f4dbc9dbdf11aef1622d06.zip |
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
Diffstat (limited to 'nuttx/configs/nucleus2g/src/up_leds.c')
-rwxr-xr-x | nuttx/configs/nucleus2g/src/up_leds.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/nuttx/configs/nucleus2g/src/up_leds.c b/nuttx/configs/nucleus2g/src/up_leds.c index cac3f89f6..fbc5a30af 100755 --- a/nuttx/configs/nucleus2g/src/up_leds.c +++ b/nuttx/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 } |