diff options
Diffstat (limited to 'nuttx/configs/ne64badge')
-rw-r--r-- | nuttx/configs/ne64badge/src/up_leds.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/nuttx/configs/ne64badge/src/up_leds.c b/nuttx/configs/ne64badge/src/up_leds.c index 73991f570..d4aab0d3b 100644 --- a/nuttx/configs/ne64badge/src/up_leds.c +++ b/nuttx/configs/ne64badge/src/up_leds.c @@ -2,7 +2,7 @@ * configs/ne64badge/src/up_leds.c * arch/arm/src/board/up_leds.c * - * Copyright (C) 2011 Gregory Nutt. All rights reserved. + * Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -52,29 +52,25 @@ * Pre-processor Definitions ****************************************************************************/ -/* Enables debug output from this file (needs CONFIG_DEBUG with - * CONFIG_DEBUG_VERBOSE too) +/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG + * with CONFIG_DEBUG_VERBOSE too) */ -#undef LED_DEBUG /* Define to enable debug */ -#undef LED_VERBOSE /* Define to enable verbose debug */ - -#ifdef LED_DEBUG +#ifdef CONFIG_DEBUG_LEDS # define leddbg lldbg -# ifdef LED_VERBOSE +# ifdef CONFIG_DEBUG_VERBOSE # define ledvdbg lldbg # else # define ledvdbg(x...) # endif #else -# undef LED_VERBOSE # define leddbg(x...) # define ledvdbg(x...) #endif /* Dump GPIO registers */ -#ifdef LED_VERBOSE +#if defined(CONFIG_DEBUG_VERBOSE) && defined(CONFIG_DEBUG_LEDS) # define led_dumpgpio(m) m9s12_dumpgpio(m) #else # define led_dumpgpio(m) |