summaryrefslogtreecommitdiff
path: root/nuttx/configs/sure-pic32mx/src/up_leds.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs/sure-pic32mx/src/up_leds.c')
-rw-r--r--nuttx/configs/sure-pic32mx/src/up_leds.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/nuttx/configs/sure-pic32mx/src/up_leds.c b/nuttx/configs/sure-pic32mx/src/up_leds.c
index a277ca008..d6c929163 100644
--- a/nuttx/configs/sure-pic32mx/src/up_leds.c
+++ b/nuttx/configs/sure-pic32mx/src/up_leds.c
@@ -92,22 +92,17 @@
#define LED_NC 2
/* Debug ********************************************************************/
-/* 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
+#if defined(CONFIG_DEBUG) && defined(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
+# undef CONFIG_DEBUG_LEDS
+# undef CONFIG_DEBUG_VERBOSE
# define leddbg(x...)
# define ledvdbg(x...)
#endif
@@ -153,7 +148,7 @@ static const g_ledoffvalues[LED_NVALUES] =
****************************************************************************/
/****************************************************************************
- * Name: up_ledinit
+ * Name: up_setleds
****************************************************************************/
void up_setleds(struct led_setting_s *setting)