Centralize definitions associated with CONFIG_DEBUG_LEDS
This commit is contained in:
parent
a42651de4f
commit
2ddd57c674
36
Kconfig
36
Kconfig
@ -878,7 +878,7 @@ endif # DEBUG_PAGING
|
|||||||
comment "Driver Debug Options"
|
comment "Driver Debug Options"
|
||||||
|
|
||||||
config DEBUG_LCD
|
config DEBUG_LCD
|
||||||
bool "Low-level LCD Debug Output"
|
bool "Low-level LCD Debug Features"
|
||||||
default n
|
default n
|
||||||
depends on LCD
|
depends on LCD
|
||||||
---help---
|
---help---
|
||||||
@ -912,13 +912,39 @@ config DEBUG_LCD_INFO
|
|||||||
endif # DEBUG_LCD
|
endif # DEBUG_LCD
|
||||||
|
|
||||||
config DEBUG_LEDS
|
config DEBUG_LEDS
|
||||||
bool "Low-level LED Debug Output"
|
bool "Low-level LED Debug Features"
|
||||||
default n
|
default n
|
||||||
depends on ARCH_HAVE_LEDS
|
depends on ARCH_HAVE_LEDS
|
||||||
---help---
|
---help---
|
||||||
Enable low level debug from board-specific LED logic. Support for
|
Enable LED driver debug features.
|
||||||
this debug option is board-specific and may not be available for
|
|
||||||
some boards.
|
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
|
config DEBUG_INPUT
|
||||||
bool "Input Device Debug Features"
|
bool "Input Device Debug Features"
|
||||||
|
@ -95,26 +95,6 @@
|
|||||||
* at approximately 2Hz, then a fatal error has been detected and the system
|
* 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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -51,38 +51,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -87,35 +87,15 @@
|
|||||||
* LED_PANIC 4 ON OFF OFF (flashing 2Hz)
|
* 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 */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_LEDS
|
#ifdef CONFIG_DEBUG_LEDS_INFO
|
||||||
# define led_dumpgpio(m) lm_dumpgpio(LED_GPIO, m)
|
# define led_dumpgpio(m) lm_dumpgpio(LED_GPIO, m)
|
||||||
#else
|
#else
|
||||||
# define led_dumpgpio(m)
|
# define led_dumpgpio(m)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Data
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Functions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -58,18 +58,6 @@
|
|||||||
* Pre-processor Definitions
|
* 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 */
|
/* The following definitions map the encoded LED setting to GPIO settings */
|
||||||
|
|
||||||
#define CLOUDCTRL_LED1 (1 << 0)
|
#define CLOUDCTRL_LED1 (1 << 0)
|
||||||
|
@ -54,22 +54,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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 Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@ -80,10 +64,6 @@ static uint32_t g_ledcfg[BOARD_NLEDS] =
|
|||||||
GPIO_LED1, GPIO_LED2, GPIO_LED3, GPIO_LED4
|
GPIO_LED1, GPIO_LED2, GPIO_LED3, GPIO_LED4
|
||||||
};
|
};
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Functions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -46,30 +46,6 @@
|
|||||||
|
|
||||||
#include "demo9s12ne64.h"
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -62,22 +62,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -51,30 +51,6 @@
|
|||||||
#include "up_internal.h"
|
#include "up_internal.h"
|
||||||
#include "lpc31.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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -51,30 +51,6 @@
|
|||||||
#include "up_internal.h"
|
#include "up_internal.h"
|
||||||
#include "lpc31.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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -55,21 +55,9 @@
|
|||||||
* Pre-processor Definitions
|
* 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 */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_LEDS
|
#ifdef CONFIG_DEBUG_LEDS_INFO
|
||||||
# define led_dumpgpio(m) tiva_dumpgpio(LED_GPIO, m)
|
# define led_dumpgpio(m) tiva_dumpgpio(LED_GPIO, m)
|
||||||
#else
|
#else
|
||||||
# define led_dumpgpio(m)
|
# define led_dumpgpio(m)
|
||||||
@ -79,16 +67,12 @@
|
|||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
static uint8_t g_nest;
|
||||||
* Private Functions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static uint8_t g_nest;
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: board_autoled_initialize
|
* Name: board_autoled_initialize
|
||||||
*
|
*
|
||||||
|
@ -59,18 +59,6 @@
|
|||||||
* Pre-processor Definitions
|
* 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 */
|
/* The following definitions map the encoded LED setting to GPIO settings */
|
||||||
|
|
||||||
#define EFM32_LED0 (1 << 0)
|
#define EFM32_LED0 (1 << 0)
|
||||||
|
@ -55,22 +55,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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 Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -89,30 +89,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -66,22 +66,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -56,21 +56,9 @@
|
|||||||
* Pre-processor Definitions
|
* 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 */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_LEDS
|
#ifdef CONFIG_DEBUG_LEDS_INFO
|
||||||
# define led_dumpgpio(m) tiva_dumpgpio(LED_GPIO, m)
|
# define led_dumpgpio(m) tiva_dumpgpio(LED_GPIO, m)
|
||||||
#else
|
#else
|
||||||
# define led_dumpgpio(m)
|
# define led_dumpgpio(m)
|
||||||
@ -80,16 +68,12 @@
|
|||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
static uint8_t g_nest;
|
||||||
* Private Functions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static uint8_t g_nest;
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: board_autoled_initialize
|
* Name: board_autoled_initialize
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -57,18 +57,6 @@
|
|||||||
* Pre-processor Definitions
|
* 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.
|
/* The following definitions map the encoded LED setting to GPIO settings.
|
||||||
*
|
*
|
||||||
* OFFBITS ONBITS
|
* OFFBITS ONBITS
|
||||||
|
@ -53,22 +53,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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 Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@ -79,10 +63,6 @@ static uint32_t g_ledcfg[BOARD_NLEDS] =
|
|||||||
GPIO_LED1, GPIO_LED2, GPIO_LED3
|
GPIO_LED1, GPIO_LED2, GPIO_LED3
|
||||||
};
|
};
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Functions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -81,38 +81,14 @@
|
|||||||
* Pre-processor Definitions
|
* 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 */
|
/* 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)
|
# define led_dumpgpio(m) kl_dumpgpio(GPIO_LED_B, m)
|
||||||
#else
|
#else
|
||||||
# define led_dumpgpio(m)
|
# define led_dumpgpio(m)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Data
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Functions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -81,38 +81,14 @@
|
|||||||
* Pre-processor Definitions
|
* 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 */
|
/* 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)
|
# define led_dumpgpio(m) kl_dumpgpio(GPIO_LED_B, m)
|
||||||
#else
|
#else
|
||||||
# define led_dumpgpio(m)
|
# define led_dumpgpio(m)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Data
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Functions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -57,18 +57,6 @@
|
|||||||
* Pre-processor Definitions
|
* 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 */
|
/* The following definitions map the encoded LED setting to GPIO settings */
|
||||||
|
|
||||||
#define HYMINI_STM32_LED1 (1 << 0)
|
#define HYMINI_STM32_LED1 (1 << 0)
|
||||||
@ -90,48 +78,56 @@
|
|||||||
#define OFF_CLRBITS(v) (CLRBITS(OFF_BITS(v))
|
#define OFF_CLRBITS(v) (CLRBITS(OFF_BITS(v))
|
||||||
|
|
||||||
/* On: !LED1 + !LED2 Off: - */
|
/* On: !LED1 + !LED2 Off: - */
|
||||||
|
|
||||||
#define LED_STARTED_ON_SETBITS ((0) << ON_SETBITS_SHIFT)
|
#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_ON_CLRBITS ((HYMINI_STM32_LED1|HYMINI_STM32_LED2) << ON_CLRBITS_SHIFT)
|
||||||
#define LED_STARTED_OFF_SETBITS (0 << OFF_SETBITS_SHIFT)
|
#define LED_STARTED_OFF_SETBITS (0 << OFF_SETBITS_SHIFT)
|
||||||
#define LED_STARTED_OFF_CLRBITS (0 << OFF_CLRBITS_SHIFT)
|
#define LED_STARTED_OFF_CLRBITS (0 << OFF_CLRBITS_SHIFT)
|
||||||
|
|
||||||
/* On: LED1+!LED2 Off: N/A */
|
/* On: LED1+!LED2 Off: N/A */
|
||||||
|
|
||||||
#define LED_HEAPALLOCATE_ON_SETBITS ((HYMINI_STM32_LED1) << ON_SETBITS_SHIFT)
|
#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_ON_CLRBITS ((HYMINI_STM32_LED2) << ON_CLRBITS_SHIFT)
|
||||||
#define LED_HEAPALLOCATE_OFF_SETBITS (0)
|
#define LED_HEAPALLOCATE_OFF_SETBITS (0)
|
||||||
#define LED_HEAPALLOCATE_OFF_CLRBITS (0)
|
#define LED_HEAPALLOCATE_OFF_CLRBITS (0)
|
||||||
|
|
||||||
/* On: LED2+!LED1 Off: N/A */
|
/* On: LED2+!LED1 Off: N/A */
|
||||||
|
|
||||||
#define LED_IRQSENABLED_ON_SETBITS ((HYMINI_STM32_LED2) << ON_SETBITS_SHIFT)
|
#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_ON_CLRBITS ((HYMINI_STM32_LED1) << ON_CLRBITS_SHIFT)
|
||||||
#define LED_IRQSENABLED_OFF_SETBITS (0)
|
#define LED_IRQSENABLED_OFF_SETBITS (0)
|
||||||
#define LED_IRQSENABLED_OFF_CLRBITS (0)
|
#define LED_IRQSENABLED_OFF_CLRBITS (0)
|
||||||
|
|
||||||
/* On: LED1+!LED2 Off: N/A */
|
/* On: LED1+!LED2 Off: N/A */
|
||||||
|
|
||||||
#define LED_STACKCREATED_ON_SETBITS ((HYMINI_STM32_LED1) << ON_SETBITS_SHIFT)
|
#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_ON_CLRBITS ((HYMINI_STM32_LED2) << ON_CLRBITS_SHIFT)
|
||||||
#define LED_STACKCREATED_OFF_SETBITS (0)
|
#define LED_STACKCREATED_OFF_SETBITS (0)
|
||||||
#define LED_STACKCREATED_OFF_CLRBITS (0)
|
#define LED_STACKCREATED_OFF_CLRBITS (0)
|
||||||
|
|
||||||
/* On: !LED1 Off: LED1 */
|
/* On: !LED1 Off: LED1 */
|
||||||
|
|
||||||
#define LED_INIRQ_ON_SETBITS ((0) << ON_SETBITS_SHIFT)
|
#define LED_INIRQ_ON_SETBITS ((0) << ON_SETBITS_SHIFT)
|
||||||
#define LED_INIRQ_ON_CLRBITS ((HYMINI_STM32_LED1) << ON_CLRBITS_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_SETBITS ((HYMINI_STM32_LED1) << OFF_SETBITS_SHIFT)
|
||||||
#define LED_INIRQ_OFF_CLRBITS ((0) << OFF_CLRBITS_SHIFT)
|
#define LED_INIRQ_OFF_CLRBITS ((0) << OFF_CLRBITS_SHIFT)
|
||||||
|
|
||||||
/* On: LED2 Off: !LED2 */
|
/* On: LED2 Off: !LED2 */
|
||||||
|
|
||||||
#define LED_SIGNAL_ON_SETBITS ((HYMINI_STM32_LED2) << ON_SETBITS_SHIFT)
|
#define LED_SIGNAL_ON_SETBITS ((HYMINI_STM32_LED2) << ON_SETBITS_SHIFT)
|
||||||
#define LED_SIGNAL_ON_CLRBITS ((0) << ON_CLRBITS_SHIFT)
|
#define LED_SIGNAL_ON_CLRBITS ((0) << ON_CLRBITS_SHIFT)
|
||||||
#define LED_SIGNAL_OFF_SETBITS ((0) << OFF_SETBITS_SHIFT)
|
#define LED_SIGNAL_OFF_SETBITS ((0) << OFF_SETBITS_SHIFT)
|
||||||
#define LED_SIGNAL_OFF_CLRBITS ((HYMINI_STM32_LED2) << OFF_CLRBITS_SHIFT)
|
#define LED_SIGNAL_OFF_CLRBITS ((HYMINI_STM32_LED2) << OFF_CLRBITS_SHIFT)
|
||||||
|
|
||||||
/* On: LED1+LED2 Off: - */
|
/* On: LED1+LED2 Off: - */
|
||||||
|
|
||||||
#define LED_ASSERTION_ON_SETBITS ((HYMINI_STM32_LED2|HYMINI_STM32_LED2) << ON_SETBITS_SHIFT)
|
#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_ON_CLRBITS ((0) << ON_CLRBITS_SHIFT)
|
||||||
#define LED_ASSERTION_OFF_SETBITS ((0) << OFF_SETBITS_SHIFT)
|
#define LED_ASSERTION_OFF_SETBITS ((0) << OFF_SETBITS_SHIFT)
|
||||||
#define LED_ASSERTION_OFF_CLRBITS ((0) << OFF_CLRBITS_SHIFT)
|
#define LED_ASSERTION_OFF_CLRBITS ((0) << OFF_CLRBITS_SHIFT)
|
||||||
|
|
||||||
/* On: LED1 Off: LED2 */
|
/* On: LED1 Off: LED2 */
|
||||||
|
|
||||||
#define LED_PANIC_ON_SETBITS ((HYMINI_STM32_LED1) << ON_SETBITS_SHIFT)
|
#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_ON_CLRBITS ((HYMINI_STM32_LED2) << ON_CLRBITS_SHIFT)
|
||||||
#define LED_PANIC_OFF_SETBITS ((HYMINI_STM32_LED2) << OFF_SETBITS_SHIFT)
|
#define LED_PANIC_OFF_SETBITS ((HYMINI_STM32_LED2) << OFF_SETBITS_SHIFT)
|
||||||
|
@ -43,24 +43,6 @@
|
|||||||
|
|
||||||
#include <nuttx/board.h>
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -89,22 +89,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#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
|
* Name: board_autoled_initialize
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -60,25 +60,9 @@
|
|||||||
* Pre-processor Definitions
|
* 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 */
|
/* 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)
|
# define led_dumpgpio(m) lpc17_dumpgpio(LINCOLN60_LED2, m)
|
||||||
#else
|
#else
|
||||||
# define led_dumpgpio(m)
|
# define led_dumpgpio(m)
|
||||||
|
@ -55,21 +55,9 @@
|
|||||||
* Pre-processor Definitions
|
* 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 */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_LEDS
|
#ifdef CONFIG_DEBUG_LEDS_INFO
|
||||||
# define led_dumpgpio(m) tiva_dumpgpio(LED_GPIO, m)
|
# define led_dumpgpio(m) tiva_dumpgpio(LED_GPIO, m)
|
||||||
#else
|
#else
|
||||||
# define led_dumpgpio(m)
|
# define led_dumpgpio(m)
|
||||||
|
@ -55,17 +55,9 @@
|
|||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* CONFIG_DEBUG_LEDS enables debug output from this file */
|
#ifdef CONFIG_DEBUG_LEDS_INFO
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_LEDS
|
|
||||||
# define lederr llerr
|
|
||||||
# define ledinfo llinfo
|
|
||||||
# define ledinfo llinfo
|
|
||||||
# define led_dumpgpio(m) tiva_dumpgpio(LED_GPIO, m)
|
# define led_dumpgpio(m) tiva_dumpgpio(LED_GPIO, m)
|
||||||
#else
|
#else
|
||||||
# define lederr(x...)
|
|
||||||
# define ledinfo(x...)
|
|
||||||
# define ledinfo(x...)
|
|
||||||
# define led_dumpgpio(m)
|
# define led_dumpgpio(m)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -55,17 +55,9 @@
|
|||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* CONFIG_DEBUG_LEDS enables debug output from this file */
|
#ifdef CONFIG_DEBUG_LEDS_INFO
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_LEDS
|
|
||||||
# define lederr llerr
|
|
||||||
# define ledinfo llinfo
|
|
||||||
# define ledinfo llinfo
|
|
||||||
# define led_dumpgpio(m) tiva_dumpgpio(LED_GPIO, m)
|
# define led_dumpgpio(m) tiva_dumpgpio(LED_GPIO, m)
|
||||||
#else
|
#else
|
||||||
# define lederr(x...)
|
|
||||||
# define ledinfo(x...)
|
|
||||||
# define ledinfo(x...)
|
|
||||||
# define led_dumpgpio(m)
|
# define led_dumpgpio(m)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -97,34 +97,14 @@
|
|||||||
* LED_PANIC 4 ON OFF OFF (flashing 2Hz)
|
* 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 */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_LEDS
|
#ifdef CONFIG_DEBUG_LEDS_INFO
|
||||||
# define led_dumpgpio(m) tiva_dumpgpio(LED_GPIO, m)
|
# define led_dumpgpio(m) tiva_dumpgpio(LED_GPIO, m)
|
||||||
#else
|
#else
|
||||||
# define led_dumpgpio(m)
|
# define led_dumpgpio(m)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Data
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Functions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -54,9 +54,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Pre-processor Definitions
|
|
||||||
****************************************************************************/
|
|
||||||
/* LED definitions **********************************************************/
|
/* LED definitions **********************************************************/
|
||||||
/* The LPC4330-Xplorer has 2 user-controllable LEDs labeled D2 an D3 in the
|
/* 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.
|
* schematic and on but referred to has LED1 and LED2 here, respectively.
|
||||||
@ -89,30 +86,6 @@
|
|||||||
* void board_userled_all(uint8_t ledset);
|
* 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
|
* Private Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -66,30 +66,6 @@
|
|||||||
* LEDs are pulled high to a low output illuminates the LED.
|
* 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
|
* 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
|
* Private Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -77,30 +77,6 @@
|
|||||||
* void board_userled_all(uint8_t ledset);
|
* 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
|
* Private Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -54,34 +54,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#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
|
* Private Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -53,36 +53,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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
|
* Private Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -52,36 +52,12 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#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
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static bool g_ncstate;
|
static bool g_ncstate;
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Functions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -52,36 +52,12 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#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
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static bool g_ncstate;
|
static bool g_ncstate;
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Functions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -53,26 +53,6 @@
|
|||||||
#include "stm32.h"
|
#include "stm32.h"
|
||||||
#include "maple.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
|
* Private Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -60,25 +60,9 @@
|
|||||||
* Pre-processor Definitions
|
* 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 */
|
/* 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)
|
# define led_dumpgpio(m) lpc17_dumpgpio(MBED_LED3, m)
|
||||||
#else
|
#else
|
||||||
# define led_dumpgpio(m)
|
# define led_dumpgpio(m)
|
||||||
|
@ -91,22 +91,6 @@
|
|||||||
# define LED_NC 2
|
# define LED_NC 2
|
||||||
#endif
|
#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
|
* Private types
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -53,36 +53,12 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#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
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static bool g_ncoff;
|
static bool g_ncoff;
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Functions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -52,25 +52,9 @@
|
|||||||
* Pre-processor Definitions
|
* 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 */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#if defined(CONFIG_DEBUG_INFO) && defined(CONFIG_DEBUG_LEDS)
|
#ifdef CONFIG_DEBUG_LEDS_INFO
|
||||||
# define led_dumpgpio(m) m9s12_dumpgpio(m)
|
# define led_dumpgpio(m) m9s12_dumpgpio(m)
|
||||||
#else
|
#else
|
||||||
# define led_dumpgpio(m)
|
# define led_dumpgpio(m)
|
||||||
|
@ -54,18 +54,6 @@
|
|||||||
* Pre-processor Definitions
|
* 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]))
|
#define ArraySize(x) (sizeof((x)) / sizeof((x)[0]))
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -56,18 +56,6 @@
|
|||||||
* Pre-processor Definitions
|
* 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]))
|
#define ArraySize(x) (sizeof((x)) / sizeof((x)[0]))
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -53,34 +53,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -52,22 +52,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -54,30 +54,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -54,26 +54,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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
|
* Private Function Prototypes
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -54,30 +54,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -54,26 +54,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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
|
* Private Function Prototypes
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -76,38 +76,14 @@
|
|||||||
* Pre-processor Definitions
|
* 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 */
|
/* 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)
|
# define led_dumpgpio(m) nuc_dumpgpio(GPIO_LED, m)
|
||||||
#else
|
#else
|
||||||
# define led_dumpgpio(m)
|
# define led_dumpgpio(m)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Data
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Functions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -53,30 +53,6 @@
|
|||||||
|
|
||||||
#include "lpc_h3131.h"
|
#include "lpc_h3131.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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -58,25 +58,9 @@
|
|||||||
* Pre-processor Definitions
|
* 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 */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#if defined(CONFIG_DEBUG_INFO) && defined(CONFIG_DEBUG_LEDS)
|
#ifdef CONFIG_DEBUG_LEDS_INFO
|
||||||
# define led_dumpgpio(m) lpc17_dumpgpio(LPC1766STK_LED1, m)
|
# define led_dumpgpio(m) lpc17_dumpgpio(LPC1766STK_LED1, m)
|
||||||
#else
|
#else
|
||||||
# define led_dumpgpio(m)
|
# define led_dumpgpio(m)
|
||||||
|
@ -51,30 +51,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -48,22 +48,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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 Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -54,22 +54,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#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
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -53,22 +53,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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 Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -55,18 +55,6 @@
|
|||||||
* Pre-processor Definitions
|
* 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 */
|
/* The following definitions map the encoded LED setting to GPIO settings */
|
||||||
|
|
||||||
#define LED_STARTED_BITS (BOARD_LED1_BIT)
|
#define LED_STARTED_BITS (BOARD_LED1_BIT)
|
||||||
|
@ -48,22 +48,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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 Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -54,25 +54,9 @@
|
|||||||
* Pre-processor Definitions
|
* 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 */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#if defined(CONFIG_DEBUG_INFO) && defined(CONFIG_DEBUG_LEDS)
|
#ifdef CONFIG_DEBUG_LEDS_INFO
|
||||||
# define led_dumpgpio(m) stm32_dumpgpio(GPIO_LED_GREEN, m)
|
# define led_dumpgpio(m) stm32_dumpgpio(GPIO_LED_GREEN, m)
|
||||||
#else
|
#else
|
||||||
# define led_dumpgpio(m)
|
# define led_dumpgpio(m)
|
||||||
|
@ -134,25 +134,9 @@
|
|||||||
#define LED_IDLE_OFF_SETBITS ((OPEN1788_LED4) << OFF_SETBITS_SHIFT)
|
#define LED_IDLE_OFF_SETBITS ((OPEN1788_LED4) << OFF_SETBITS_SHIFT)
|
||||||
#define LED_IDLE_OFF_CLRBITS ((0) << OFF_CLRBITS_SHIFT)
|
#define LED_IDLE_OFF_CLRBITS ((0) << OFF_CLRBITS_SHIFT)
|
||||||
|
|
||||||
/* 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 */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#if defined(CONFIG_DEBUG_INFO) && defined(CONFIG_DEBUG_LEDS)
|
#ifdef CONFIG_DEBUG_LEDS_INFO
|
||||||
# define led_dumpgpio(m) lpc17_dumpgpio(???, m)
|
# define led_dumpgpio(m) lpc17_dumpgpio(???, m)
|
||||||
#else
|
#else
|
||||||
# define led_dumpgpio(m)
|
# define led_dumpgpio(m)
|
||||||
|
@ -60,25 +60,9 @@
|
|||||||
* Pre-processor Definitions
|
* 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 */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#if defined(CONFIG_DEBUG_INFO) && defined(CONFIG_DEBUG_LEDS)
|
#ifdef CONFIG_DEBUG_LEDS_INFO
|
||||||
# define led_dumpgpio(m) lpc17_dumpgpio(???, m)
|
# define led_dumpgpio(m) lpc17_dumpgpio(???, m)
|
||||||
#else
|
#else
|
||||||
# define led_dumpgpio(m)
|
# define led_dumpgpio(m)
|
||||||
|
@ -52,9 +52,6 @@
|
|||||||
|
|
||||||
#include "pcduino_a10.h"
|
#include "pcduino_a10.h"
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Pre-processor Definitions
|
|
||||||
****************************************************************************/
|
|
||||||
/* The pcDuino v1 has four green LEDs; three can be controlled from software.
|
/* 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
|
* Two are tied to ground and, hence, illuminated by driving the output pins
|
||||||
* to a high value:
|
* to a high value:
|
||||||
@ -90,26 +87,6 @@
|
|||||||
* application if CONFIG_ARCH_LEDS is not defined.
|
* 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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -95,22 +95,6 @@
|
|||||||
# define LED_NC 2
|
# define LED_NC 2
|
||||||
#endif
|
#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
|
* Private types
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -98,22 +98,6 @@
|
|||||||
# define LED_NC 2
|
# define LED_NC 2
|
||||||
#endif
|
#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
|
* Private types
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -91,22 +91,6 @@
|
|||||||
#define LED_ON 1
|
#define LED_ON 1
|
||||||
#define LED_NC 2
|
#define LED_NC 2
|
||||||
|
|
||||||
/* 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
|
* Private types
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -54,9 +54,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#ifndef CONFIG_ARCH_LEDS
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Pre-processor Definitions
|
|
||||||
****************************************************************************/
|
|
||||||
/* LED Configuration ********************************************************/
|
/* LED Configuration ********************************************************/
|
||||||
/* The PIC32MZ Ethernet Starter kit has 3 user LEDs labelled LED1-3 on the
|
/* The PIC32MZ Ethernet Starter kit has 3 user LEDs labelled LED1-3 on the
|
||||||
* board:
|
* board:
|
||||||
@ -71,22 +68,6 @@
|
|||||||
* LEDs through the functions provided in this file
|
* LEDs through the functions provided in this file
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* 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 Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -78,22 +78,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#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
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -58,18 +58,6 @@
|
|||||||
* Pre-processor Definitions
|
* 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 LED_OFF 0
|
#define LED_OFF 0
|
||||||
#define LED_ON 1
|
#define LED_ON 1
|
||||||
#define LED_NOCHANGE 2
|
#define LED_NOCHANGE 2
|
||||||
|
@ -98,18 +98,6 @@
|
|||||||
#define D4_ON (LED_ON << D4_SHIFT)
|
#define D4_ON (LED_ON << D4_SHIFT)
|
||||||
#define D4_NOCHANGE (LED_NOCHANGE << D4_SHIFT)
|
#define D4_NOCHANGE (LED_NOCHANGE << D4_SHIFT)
|
||||||
|
|
||||||
/* 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 Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -77,30 +77,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -62,22 +62,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -53,9 +53,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Pre-processor Definitions
|
|
||||||
****************************************************************************/
|
|
||||||
/* If CONFIG_ARCH_LEDs is defined, then NuttX will control the LED on
|
/* If CONFIG_ARCH_LEDs is defined, then NuttX will control the LED on
|
||||||
* board the SAM4S Xplained Pro. The following definitions describe how NuttX
|
* board the SAM4S Xplained Pro. The following definitions describe how NuttX
|
||||||
* controls the LEDs:
|
* controls the LEDs:
|
||||||
@ -74,26 +71,6 @@
|
|||||||
* LED_IDLE MCU is is sleep mode Not used
|
* LED_IDLE MCU is is sleep mode Not used
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* 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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -52,22 +52,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -52,9 +52,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Pre-processor Definitions
|
|
||||||
****************************************************************************/
|
|
||||||
/* If CONFIG_ARCH_LEDs is defined, then NuttX will control the two LEDs on
|
/* If CONFIG_ARCH_LEDs is defined, then NuttX will control the two LEDs on
|
||||||
* board the SAM4S Xplained. The following definitions describe how NuttX
|
* board the SAM4S Xplained. The following definitions describe how NuttX
|
||||||
* controls the LEDs:
|
* controls the LEDs:
|
||||||
@ -73,26 +70,6 @@
|
|||||||
* LED_IDLE MCU is is sleep mode Not used
|
* LED_IDLE MCU is is sleep mode Not used
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* 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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -51,22 +51,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -85,30 +85,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -61,22 +61,6 @@
|
|||||||
#include "sam_pio.h"
|
#include "sam_pio.h"
|
||||||
#include "sama5d2-xult.h"
|
#include "sama5d2-xult.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
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -87,30 +87,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -63,22 +63,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -87,30 +87,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -63,22 +63,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -92,30 +92,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -67,22 +67,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -77,30 +77,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -62,30 +62,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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 Functions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -77,30 +77,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -62,30 +62,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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 Functions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -77,30 +77,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -77,30 +77,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -62,30 +62,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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 Functions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -93,30 +93,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#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
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -57,18 +57,6 @@
|
|||||||
* Pre-processor Definitions
|
* 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 */
|
/* The following definitions map the encoded LED setting to GPIO settings */
|
||||||
|
|
||||||
#define SHENZHOU_LED1 (1 << 0)
|
#define SHENZHOU_LED1 (1 << 0)
|
||||||
|
@ -53,22 +53,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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 Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -59,18 +59,6 @@
|
|||||||
* Pre-processor Definitions
|
* 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 bit sets used to
|
/* The following definitions map the encoded LED setting to bit sets used to
|
||||||
* manipulate the LEDs. All terms are in true logic, the led polarity is dealt
|
* manipulate the LEDs. All terms are in true logic, the led polarity is dealt
|
||||||
* with in the phy_xxx operations
|
* with in the phy_xxx operations
|
||||||
|
@ -54,22 +54,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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 Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -57,18 +57,6 @@
|
|||||||
* Pre-processor Definitions
|
* 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 */
|
/* The following definitions map the encoded LED setting to GPIO settings */
|
||||||
|
|
||||||
#define STM3210E_LED1 (1 << 0)
|
#define STM3210E_LED1 (1 << 0)
|
||||||
|
@ -58,18 +58,6 @@
|
|||||||
* Pre-processor Definitions
|
* 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 */
|
/* The following definitions map the encoded LED setting to GPIO settings */
|
||||||
|
|
||||||
#define STM3210E_LED1 (1 << 0)
|
#define STM3210E_LED1 (1 << 0)
|
||||||
|
@ -53,22 +53,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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 Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -58,18 +58,6 @@
|
|||||||
* Pre-processor Definitions
|
* 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 */
|
/* The following definitions map the encoded LED setting to GPIO settings */
|
||||||
|
|
||||||
#define STM3210E_LED1 (1 << 0)
|
#define STM3210E_LED1 (1 << 0)
|
||||||
|
@ -53,22 +53,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#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 Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user