Centralize definitions associated with CONFIG_DEBUG_LEDS

This commit is contained in:
Gregory Nutt
2016-06-15 14:12:19 -06:00
parent a42651de4f
commit 2ddd57c674
132 changed files with 157 additions and 2456 deletions
-23
View File
@@ -52,9 +52,6 @@
#include "pcduino_a10.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* The pcDuino v1 has four green LEDs; three can be controlled from software.
* Two are tied to ground and, hence, illuminated by driving the output pins
* to a high value:
@@ -90,26 +87,6 @@
* application if CONFIG_ARCH_LEDS is not defined.
*/
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG_FEATURES
* with CONFIG_DEBUG_INFO too)
*/
#ifdef CONFIG_DEBUG_LEDS
# define lederr llerr
# define ledinfo llinfo
#else
# define lederr(x...)
# define ledinfo(x...)
#endif
/****************************************************************************
* Private Data
****************************************************************************/
/****************************************************************************
* Private Functions
****************************************************************************/
/****************************************************************************
* Public Functions
****************************************************************************/