mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
Centralize definitions associated with CONFIG_DEBUG_LEDS
This commit is contained in:
@@ -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
|
||||
****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user