mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
Centralize definitions associated with CONFIG_DEBUG_LEDS
This commit is contained in:
@@ -878,7 +878,7 @@ endif # DEBUG_PAGING
|
||||
comment "Driver Debug Options"
|
||||
|
||||
config DEBUG_LCD
|
||||
bool "Low-level LCD Debug Output"
|
||||
bool "Low-level LCD Debug Features"
|
||||
default n
|
||||
depends on LCD
|
||||
---help---
|
||||
@@ -912,13 +912,39 @@ config DEBUG_LCD_INFO
|
||||
endif # DEBUG_LCD
|
||||
|
||||
config DEBUG_LEDS
|
||||
bool "Low-level LED Debug Output"
|
||||
bool "Low-level LED Debug Features"
|
||||
default n
|
||||
depends on ARCH_HAVE_LEDS
|
||||
---help---
|
||||
Enable low level debug from board-specific LED logic. Support for
|
||||
this debug option is board-specific and may not be available for
|
||||
some boards.
|
||||
Enable LED driver debug features.
|
||||
|
||||
Support for this debug option is board-specific and may not
|
||||
be available for some boards.
|
||||
|
||||
if DEBUG_LEDS
|
||||
|
||||
config DEBUG_LEDS_ERROR
|
||||
bool "LED Driver Error Output"
|
||||
default n
|
||||
depends on DEBUG_ERROR
|
||||
---help---
|
||||
Enable LED driver error output to SYSLOG.
|
||||
|
||||
config DEBUG_LEDS_WARN
|
||||
bool "LED Driver Warnings Output"
|
||||
default n
|
||||
depends on DEBUG_WARN
|
||||
---help---
|
||||
Enable LED driver warning output to SYSLOG.
|
||||
|
||||
config DEBUG_LEDS_INFO
|
||||
bool "LED Driver Informational Output"
|
||||
default n
|
||||
depends on DEBUG_INFO
|
||||
---help---
|
||||
Enable LED driver informational output to SYSLOG.
|
||||
|
||||
endif # DEBUG_LEDS
|
||||
|
||||
config DEBUG_INPUT
|
||||
bool "Input Device Debug Features"
|
||||
|
||||
@@ -95,26 +95,6 @@
|
||||
* at approximately 2Hz, then a fatal error has been detected and the system
|
||||
*/
|
||||
|
||||
/* 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
|
||||
****************************************************************************/
|
||||
|
||||
@@ -51,38 +51,6 @@
|
||||
|
||||
#ifndef CONFIG_ARCH_LEDS
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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 Function Protototypes
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -87,35 +87,15 @@
|
||||
* LED_PANIC 4 ON OFF OFF (flashing 2Hz)
|
||||
*/
|
||||
|
||||
/* 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
|
||||
|
||||
/* Dump GPIO registers */
|
||||
|
||||
#ifdef CONFIG_DEBUG_LEDS
|
||||
#ifdef CONFIG_DEBUG_LEDS_INFO
|
||||
# define led_dumpgpio(m) lm_dumpgpio(LED_GPIO, m)
|
||||
#else
|
||||
# define led_dumpgpio(m)
|
||||
#endif
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -58,18 +58,6 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
|
||||
/* The following definitions map the encoded LED setting to GPIO settings */
|
||||
|
||||
#define CLOUDCTRL_LED1 (1 << 0)
|
||||
|
||||
@@ -54,22 +54,6 @@
|
||||
|
||||
#ifndef CONFIG_ARCH_LEDS
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
****************************************************************************/
|
||||
@@ -80,10 +64,6 @@ static uint32_t g_ledcfg[BOARD_NLEDS] =
|
||||
GPIO_LED1, GPIO_LED2, GPIO_LED3, GPIO_LED4
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -46,30 +46,6 @@
|
||||
|
||||
#include "demo9s12ne64.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
****************************************************************************/
|
||||
|
||||
@@ -62,22 +62,6 @@
|
||||
|
||||
#ifndef CONFIG_ARCH_LEDS
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -51,30 +51,6 @@
|
||||
#include "up_internal.h"
|
||||
#include "lpc31.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
****************************************************************************/
|
||||
|
||||
@@ -51,30 +51,6 @@
|
||||
#include "up_internal.h"
|
||||
#include "lpc31.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
****************************************************************************/
|
||||
|
||||
@@ -55,21 +55,9 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
|
||||
/* Dump GPIO registers */
|
||||
|
||||
#ifdef CONFIG_DEBUG_LEDS
|
||||
#ifdef CONFIG_DEBUG_LEDS_INFO
|
||||
# define led_dumpgpio(m) tiva_dumpgpio(LED_GPIO, m)
|
||||
#else
|
||||
# define led_dumpgpio(m)
|
||||
@@ -79,16 +67,12 @@
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
static uint8_t g_nest;
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
static uint8_t g_nest;
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_autoled_initialize
|
||||
*
|
||||
|
||||
@@ -59,18 +59,6 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
|
||||
/* The following definitions map the encoded LED setting to GPIO settings */
|
||||
|
||||
#define EFM32_LED0 (1 << 0)
|
||||
|
||||
@@ -55,22 +55,6 @@
|
||||
|
||||
#ifndef CONFIG_ARCH_LEDS
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
****************************************************************************/
|
||||
|
||||
@@ -89,30 +89,6 @@
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
****************************************************************************/
|
||||
|
||||
@@ -66,22 +66,6 @@
|
||||
|
||||
#ifndef CONFIG_ARCH_LEDS
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -56,21 +56,9 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
|
||||
/* Dump GPIO registers */
|
||||
|
||||
#ifdef CONFIG_DEBUG_LEDS
|
||||
#ifdef CONFIG_DEBUG_LEDS_INFO
|
||||
# define led_dumpgpio(m) tiva_dumpgpio(LED_GPIO, m)
|
||||
#else
|
||||
# define led_dumpgpio(m)
|
||||
@@ -80,16 +68,12 @@
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
static uint8_t g_nest;
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
static uint8_t g_nest;
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_autoled_initialize
|
||||
****************************************************************************/
|
||||
|
||||
@@ -57,18 +57,6 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
|
||||
/* The following definitions map the encoded LED setting to GPIO settings.
|
||||
*
|
||||
* OFFBITS ONBITS
|
||||
|
||||
@@ -53,22 +53,6 @@
|
||||
|
||||
#ifndef CONFIG_ARCH_LEDS
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
****************************************************************************/
|
||||
@@ -79,10 +63,6 @@ static uint32_t g_ledcfg[BOARD_NLEDS] =
|
||||
GPIO_LED1, GPIO_LED2, GPIO_LED3
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -81,38 +81,14 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define ledinfo llerr
|
||||
# else
|
||||
# define ledinfo(x...)
|
||||
# endif
|
||||
#else
|
||||
# define lederr(x...)
|
||||
# define ledinfo(x...)
|
||||
#endif
|
||||
|
||||
/* Dump GPIO registers */
|
||||
|
||||
#if defined(CONFIG_DEBUG_INFO) && defined(CONFIG_DEBUG_LEDS)
|
||||
#ifdef CONFIG_DEBUG_LEDS_INFO
|
||||
# define led_dumpgpio(m) kl_dumpgpio(GPIO_LED_B, m)
|
||||
#else
|
||||
# define led_dumpgpio(m)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -81,38 +81,14 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define ledinfo llerr
|
||||
# else
|
||||
# define ledinfo(x...)
|
||||
# endif
|
||||
#else
|
||||
# define lederr(x...)
|
||||
# define ledinfo(x...)
|
||||
#endif
|
||||
|
||||
/* Dump GPIO registers */
|
||||
|
||||
#if defined(CONFIG_DEBUG_INFO) && defined(CONFIG_DEBUG_LEDS)
|
||||
#ifdef CONFIG_DEBUG_LEDS_INFO
|
||||
# define led_dumpgpio(m) kl_dumpgpio(GPIO_LED_B, m)
|
||||
#else
|
||||
# define led_dumpgpio(m)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -57,18 +57,6 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
|
||||
/* The following definitions map the encoded LED setting to GPIO settings */
|
||||
|
||||
#define HYMINI_STM32_LED1 (1 << 0)
|
||||
@@ -90,48 +78,56 @@
|
||||
#define OFF_CLRBITS(v) (CLRBITS(OFF_BITS(v))
|
||||
|
||||
/* On: !LED1 + !LED2 Off: - */
|
||||
|
||||
#define LED_STARTED_ON_SETBITS ((0) << ON_SETBITS_SHIFT)
|
||||
#define LED_STARTED_ON_CLRBITS ((HYMINI_STM32_LED1|HYMINI_STM32_LED2) << ON_CLRBITS_SHIFT)
|
||||
#define LED_STARTED_OFF_SETBITS (0 << OFF_SETBITS_SHIFT)
|
||||
#define LED_STARTED_OFF_CLRBITS (0 << OFF_CLRBITS_SHIFT)
|
||||
|
||||
/* On: LED1+!LED2 Off: N/A */
|
||||
|
||||
#define LED_HEAPALLOCATE_ON_SETBITS ((HYMINI_STM32_LED1) << ON_SETBITS_SHIFT)
|
||||
#define LED_HEAPALLOCATE_ON_CLRBITS ((HYMINI_STM32_LED2) << ON_CLRBITS_SHIFT)
|
||||
#define LED_HEAPALLOCATE_OFF_SETBITS (0)
|
||||
#define LED_HEAPALLOCATE_OFF_CLRBITS (0)
|
||||
|
||||
/* On: LED2+!LED1 Off: N/A */
|
||||
|
||||
#define LED_IRQSENABLED_ON_SETBITS ((HYMINI_STM32_LED2) << ON_SETBITS_SHIFT)
|
||||
#define LED_IRQSENABLED_ON_CLRBITS ((HYMINI_STM32_LED1) << ON_CLRBITS_SHIFT)
|
||||
#define LED_IRQSENABLED_OFF_SETBITS (0)
|
||||
#define LED_IRQSENABLED_OFF_CLRBITS (0)
|
||||
|
||||
/* On: LED1+!LED2 Off: N/A */
|
||||
|
||||
#define LED_STACKCREATED_ON_SETBITS ((HYMINI_STM32_LED1) << ON_SETBITS_SHIFT)
|
||||
#define LED_STACKCREATED_ON_CLRBITS ((HYMINI_STM32_LED2) << ON_CLRBITS_SHIFT)
|
||||
#define LED_STACKCREATED_OFF_SETBITS (0)
|
||||
#define LED_STACKCREATED_OFF_CLRBITS (0)
|
||||
|
||||
/* On: !LED1 Off: LED1 */
|
||||
|
||||
#define LED_INIRQ_ON_SETBITS ((0) << ON_SETBITS_SHIFT)
|
||||
#define LED_INIRQ_ON_CLRBITS ((HYMINI_STM32_LED1) << ON_CLRBITS_SHIFT)
|
||||
#define LED_INIRQ_OFF_SETBITS ((HYMINI_STM32_LED1) << OFF_SETBITS_SHIFT)
|
||||
#define LED_INIRQ_OFF_CLRBITS ((0) << OFF_CLRBITS_SHIFT)
|
||||
|
||||
/* On: LED2 Off: !LED2 */
|
||||
|
||||
#define LED_SIGNAL_ON_SETBITS ((HYMINI_STM32_LED2) << ON_SETBITS_SHIFT)
|
||||
#define LED_SIGNAL_ON_CLRBITS ((0) << ON_CLRBITS_SHIFT)
|
||||
#define LED_SIGNAL_OFF_SETBITS ((0) << OFF_SETBITS_SHIFT)
|
||||
#define LED_SIGNAL_OFF_CLRBITS ((HYMINI_STM32_LED2) << OFF_CLRBITS_SHIFT)
|
||||
|
||||
/* On: LED1+LED2 Off: - */
|
||||
|
||||
#define LED_ASSERTION_ON_SETBITS ((HYMINI_STM32_LED2|HYMINI_STM32_LED2) << ON_SETBITS_SHIFT)
|
||||
#define LED_ASSERTION_ON_CLRBITS ((0) << ON_CLRBITS_SHIFT)
|
||||
#define LED_ASSERTION_OFF_SETBITS ((0) << OFF_SETBITS_SHIFT)
|
||||
#define LED_ASSERTION_OFF_CLRBITS ((0) << OFF_CLRBITS_SHIFT)
|
||||
|
||||
/* On: LED1 Off: LED2 */
|
||||
|
||||
#define LED_PANIC_ON_SETBITS ((HYMINI_STM32_LED1) << ON_SETBITS_SHIFT)
|
||||
#define LED_PANIC_ON_CLRBITS ((HYMINI_STM32_LED2) << ON_CLRBITS_SHIFT)
|
||||
#define LED_PANIC_OFF_SETBITS ((HYMINI_STM32_LED2) << OFF_SETBITS_SHIFT)
|
||||
|
||||
@@ -43,24 +43,6 @@
|
||||
|
||||
#include <nuttx/board.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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 ledwarn llwarn
|
||||
# define ledinfo llinfo
|
||||
#else
|
||||
# define lederr(x...)
|
||||
# define ledwarn(x...)
|
||||
# define ledinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -89,22 +89,6 @@
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_autoled_initialize
|
||||
****************************************************************************/
|
||||
|
||||
@@ -60,25 +60,9 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define ledinfo llerr
|
||||
# else
|
||||
# define ledinfo(x...)
|
||||
# endif
|
||||
#else
|
||||
# define lederr(x...)
|
||||
# define ledinfo(x...)
|
||||
#endif
|
||||
|
||||
/* Dump GPIO registers */
|
||||
|
||||
#if defined(CONFIG_DEBUG_INFO) && defined(CONFIG_DEBUG_LEDS)
|
||||
#ifdef CONFIG_DEBUG_LEDS_INFO
|
||||
# define led_dumpgpio(m) lpc17_dumpgpio(LINCOLN60_LED2, m)
|
||||
#else
|
||||
# define led_dumpgpio(m)
|
||||
|
||||
@@ -55,21 +55,9 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
|
||||
/* Dump GPIO registers */
|
||||
|
||||
#ifdef CONFIG_DEBUG_LEDS
|
||||
#ifdef CONFIG_DEBUG_LEDS_INFO
|
||||
# define led_dumpgpio(m) tiva_dumpgpio(LED_GPIO, m)
|
||||
#else
|
||||
# define led_dumpgpio(m)
|
||||
|
||||
@@ -55,17 +55,9 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* CONFIG_DEBUG_LEDS enables debug output from this file */
|
||||
|
||||
#ifdef CONFIG_DEBUG_LEDS
|
||||
# define lederr llerr
|
||||
# define ledinfo llinfo
|
||||
# define ledinfo llinfo
|
||||
#ifdef CONFIG_DEBUG_LEDS_INFO
|
||||
# define led_dumpgpio(m) tiva_dumpgpio(LED_GPIO, m)
|
||||
#else
|
||||
# define lederr(x...)
|
||||
# define ledinfo(x...)
|
||||
# define ledinfo(x...)
|
||||
# define led_dumpgpio(m)
|
||||
#endif
|
||||
|
||||
|
||||
@@ -55,17 +55,9 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* CONFIG_DEBUG_LEDS enables debug output from this file */
|
||||
|
||||
#ifdef CONFIG_DEBUG_LEDS
|
||||
# define lederr llerr
|
||||
# define ledinfo llinfo
|
||||
# define ledinfo llinfo
|
||||
#ifdef CONFIG_DEBUG_LEDS_INFO
|
||||
# define led_dumpgpio(m) tiva_dumpgpio(LED_GPIO, m)
|
||||
#else
|
||||
# define lederr(x...)
|
||||
# define ledinfo(x...)
|
||||
# define ledinfo(x...)
|
||||
# define led_dumpgpio(m)
|
||||
#endif
|
||||
|
||||
|
||||
@@ -97,34 +97,14 @@
|
||||
* LED_PANIC 4 ON OFF OFF (flashing 2Hz)
|
||||
*/
|
||||
|
||||
/* 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
|
||||
|
||||
/* Dump GPIO registers */
|
||||
|
||||
#ifdef CONFIG_DEBUG_LEDS
|
||||
#ifdef CONFIG_DEBUG_LEDS_INFO
|
||||
# define led_dumpgpio(m) tiva_dumpgpio(LED_GPIO, m)
|
||||
#else
|
||||
# define led_dumpgpio(m)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -54,9 +54,6 @@
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
/* LED definitions **********************************************************/
|
||||
/* The LPC4330-Xplorer has 2 user-controllable LEDs labeled D2 an D3 in the
|
||||
* schematic and on but referred to has LED1 and LED2 here, respectively.
|
||||
@@ -89,30 +86,6 @@
|
||||
* void board_userled_all(uint8_t ledset);
|
||||
*/
|
||||
|
||||
/* Debug definitions ********************************************************/
|
||||
/* 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
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define LED_VERBOSE 1
|
||||
# define ledinfo llerr
|
||||
# else
|
||||
# undef LED_VERBOSE
|
||||
# define ledinfo(x...)
|
||||
# endif
|
||||
#else
|
||||
# undef LED_VERBOSE
|
||||
# define lederr(x...)
|
||||
# define ledinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -66,30 +66,6 @@
|
||||
* LEDs are pulled high to a low output illuminates the LED.
|
||||
*/
|
||||
|
||||
/* Debug definitions ********************************************************/
|
||||
/* 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
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define LED_VERBOSE 1
|
||||
# define ledinfo llerr
|
||||
# else
|
||||
# undef LED_VERBOSE
|
||||
# define ledinfo(x...)
|
||||
# endif
|
||||
#else
|
||||
# undef LED_VERBOSE
|
||||
# define lederr(x...)
|
||||
# define ledinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -86,30 +86,6 @@
|
||||
* -------------------------- --------
|
||||
*/
|
||||
|
||||
/* Debug definitions ********************************************************/
|
||||
/* 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
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define LED_VERBOSE 1
|
||||
# define ledinfo llerr
|
||||
# else
|
||||
# undef LED_VERBOSE
|
||||
# define ledinfo(x...)
|
||||
# endif
|
||||
#else
|
||||
# undef LED_VERBOSE
|
||||
# define lederr(x...)
|
||||
# define ledinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -77,30 +77,6 @@
|
||||
* void board_userled_all(uint8_t ledset);
|
||||
*/
|
||||
|
||||
/* Debug definitions ********************************************************/
|
||||
/* 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
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define LED_VERBOSE 1
|
||||
# define ledinfo llerr
|
||||
# else
|
||||
# undef LED_VERBOSE
|
||||
# define ledinfo(x...)
|
||||
# endif
|
||||
#else
|
||||
# undef LED_VERBOSE
|
||||
# define lederr(x...)
|
||||
# define ledinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -54,34 +54,6 @@
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* Debug definitions ********************************************************/
|
||||
/* 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
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define LED_VERBOSE 1
|
||||
# define ledinfo llerr
|
||||
# else
|
||||
# undef LED_VERBOSE
|
||||
# define ledinfo(x...)
|
||||
# endif
|
||||
#else
|
||||
# undef LED_VERBOSE
|
||||
# define lederr(x...)
|
||||
# define ledinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -53,36 +53,6 @@
|
||||
|
||||
#ifndef CONFIG_ARCH_LEDS
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
/* LED definitions **********************************************************/
|
||||
|
||||
|
||||
/* Debug definitions ********************************************************/
|
||||
/* 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
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define LED_VERBOSE 1
|
||||
# define ledinfo llerr
|
||||
# else
|
||||
# undef LED_VERBOSE
|
||||
# define ledinfo(x...)
|
||||
# endif
|
||||
#else
|
||||
# undef LED_VERBOSE
|
||||
# define lederr(x...)
|
||||
# define ledinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -52,36 +52,12 @@
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define ledinfo llerr
|
||||
# else
|
||||
# define ledinfo(x...)
|
||||
# endif
|
||||
#else
|
||||
# define lederr(x...)
|
||||
# define ledinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
static bool g_ncstate;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -52,36 +52,12 @@
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define ledinfo llerr
|
||||
# else
|
||||
# define ledinfo(x...)
|
||||
# endif
|
||||
#else
|
||||
# define lederr(x...)
|
||||
# define ledinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
static bool g_ncstate;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -53,26 +53,6 @@
|
||||
#include "stm32.h"
|
||||
#include "maple.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
****************************************************************************/
|
||||
|
||||
@@ -60,25 +60,9 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define ledinfo llerr
|
||||
# else
|
||||
# define ledinfo(x...)
|
||||
# endif
|
||||
#else
|
||||
# define lederr(x...)
|
||||
# define ledinfo(x...)
|
||||
#endif
|
||||
|
||||
/* Dump GPIO registers */
|
||||
|
||||
#if defined(CONFIG_DEBUG_INFO) && defined(CONFIG_DEBUG_LEDS)
|
||||
#ifdef CONFIG_DEBUG_LEDS_INFO
|
||||
# define led_dumpgpio(m) lpc17_dumpgpio(MBED_LED3, m)
|
||||
#else
|
||||
# define led_dumpgpio(m)
|
||||
|
||||
@@ -91,22 +91,6 @@
|
||||
# define LED_NC 2
|
||||
#endif
|
||||
|
||||
/* Debug ********************************************************************/
|
||||
|
||||
#if defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_DEBUG_LEDS)
|
||||
# define lederr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define ledinfo llerr
|
||||
# else
|
||||
# define ledinfo(x...)
|
||||
# endif
|
||||
#else
|
||||
# undef CONFIG_DEBUG_LEDS
|
||||
# undef CONFIG_DEBUG_INFO
|
||||
# define lederr(x...)
|
||||
# define ledinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Private types
|
||||
****************************************************************************/
|
||||
|
||||
@@ -53,36 +53,12 @@
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define ledinfo llerr
|
||||
# else
|
||||
# define ledinfo(x...)
|
||||
# endif
|
||||
#else
|
||||
# define lederr(x...)
|
||||
# define ledinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
static bool g_ncoff;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -52,25 +52,9 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define ledinfo llerr
|
||||
# else
|
||||
# define ledinfo(x...)
|
||||
# endif
|
||||
#else
|
||||
# define lederr(x...)
|
||||
# define ledinfo(x...)
|
||||
#endif
|
||||
|
||||
/* Dump GPIO registers */
|
||||
|
||||
#if defined(CONFIG_DEBUG_INFO) && defined(CONFIG_DEBUG_LEDS)
|
||||
#ifdef CONFIG_DEBUG_LEDS_INFO
|
||||
# define led_dumpgpio(m) m9s12_dumpgpio(m)
|
||||
#else
|
||||
# define led_dumpgpio(m)
|
||||
|
||||
@@ -54,18 +54,6 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
|
||||
#define ArraySize(x) (sizeof((x)) / sizeof((x)[0]))
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -56,18 +56,6 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
|
||||
#define ArraySize(x) (sizeof((x)) / sizeof((x)[0]))
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -53,34 +53,6 @@
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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 Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -52,22 +52,6 @@
|
||||
|
||||
#ifndef CONFIG_ARCH_LEDS
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -54,30 +54,6 @@
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
****************************************************************************/
|
||||
|
||||
@@ -54,26 +54,6 @@
|
||||
|
||||
#ifndef CONFIG_ARCH_LEDS
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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 Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
@@ -54,30 +54,6 @@
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
****************************************************************************/
|
||||
|
||||
@@ -54,26 +54,6 @@
|
||||
|
||||
#ifndef CONFIG_ARCH_LEDS
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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 Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
@@ -76,38 +76,14 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* 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
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define ledinfo llerr
|
||||
# else
|
||||
# define ledinfo(x...)
|
||||
# endif
|
||||
#else
|
||||
# define lederr(x...)
|
||||
# define ledinfo(x...)
|
||||
#endif
|
||||
|
||||
/* Dump GPIO registers */
|
||||
|
||||
#if defined(CONFIG_DEBUG_INFO) && defined(CONFIG_DEBUG_LEDS)
|
||||
#ifdef CONFIG_DEBUG_LEDS_INFO
|
||||
# define led_dumpgpio(m) nuc_dumpgpio(GPIO_LED, m)
|
||||
#else
|
||||
# define led_dumpgpio(m)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user