mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Fix NuTiny-SDK-NUC120 LEDs
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5679 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -58,13 +58,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -59,13 +59,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* configs/demo9s12ne64/src/up_leds.c
|
* configs/demo9s12ne64/src/up_leds.c
|
||||||
* arch/arm/src/board/up_leds.c
|
* arch/arm/src/board/up_leds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2009, 2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -50,13 +50,11 @@
|
|||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* configs/ea3131/src/up_leds.c
|
* configs/ea3131/src/up_leds.c
|
||||||
* arch/arm/src/board/up_leds.c
|
* arch/arm/src/board/up_leds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2009-2010, 2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -55,13 +55,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
@@ -69,8 +67,6 @@
|
|||||||
# define ledvdbg(x...)
|
# define ledvdbg(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The following definitions map the encoded LED setting to GPIO settings */
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* configs/ea3152/src/up_leds.c
|
* configs/ea3152/src/up_leds.c
|
||||||
* arch/arm/src/board/up_leds.c
|
* arch/arm/src/board/up_leds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -55,13 +55,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
@@ -69,8 +67,6 @@
|
|||||||
# define ledvdbg(x...)
|
# define ledvdbg(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The following definitions map the encoded LED setting to GPIO settings */
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* configs/eagle100/src/up_leds.c
|
* configs/eagle100/src/up_leds.c
|
||||||
* arch/arm/src/board/up_leds.c
|
* arch/arm/src/board/up_leds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2009-2010, 2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -55,13 +55,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
@@ -71,7 +69,7 @@
|
|||||||
|
|
||||||
/* Dump GPIO registers */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
# 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)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* configs/lm3s6965-ek/src/up_leds.c
|
* configs/lm3s6965-ek/src/up_leds.c
|
||||||
* arch/arm/src/board/up_leds.c
|
* arch/arm/src/board/up_leds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
|
||||||
* Authors: Gregory Nutt <gnutt@nuttx.org>
|
* Authors: Gregory Nutt <gnutt@nuttx.org>
|
||||||
* Jose Pablo Rojas V. <jrojas@nx-engineering.com>
|
* Jose Pablo Rojas V. <jrojas@nx-engineering.com>
|
||||||
*
|
*
|
||||||
@@ -56,13 +56,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
@@ -72,7 +70,7 @@
|
|||||||
|
|
||||||
/* Dump GPIO registers */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
# 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)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* configs/fire-stm32v2/src/up_autoleds.c
|
* configs/fire-stm32v2/src/up_autoleds.c
|
||||||
* arch/arm/src/board/up_autoleds.c
|
* arch/arm/src/board/up_autoleds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -57,13 +57,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* configs/fire-stm32v2/src/up_userleds.c
|
* configs/fire-stm32v2/src/up_userleds.c
|
||||||
* arch/arm/src/board/up_userleds.c
|
* arch/arm/src/board/up_userleds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -58,13 +58,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* configs/hymini-stm32v/src/up_leds.c
|
* configs/hymini-stm32v/src/up_leds.c
|
||||||
* arch/arm/src/board/up_leds.c
|
* arch/arm/src/board/up_leds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2009, 2011, 2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
* Laurent Latil <laurent@latil.nom.fr>
|
* Laurent Latil <laurent@latil.nom.fr>
|
||||||
*
|
*
|
||||||
@@ -57,13 +57,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* configs/kwikstik-k40/src/up_leds.c
|
* configs/kwikstik-k40/src/up_leds.c
|
||||||
* arch/arm/src/board/up_leds.c
|
* arch/arm/src/board/up_leds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -46,13 +46,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -60,29 +60,25 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
#undef LED_VERBOSE /* Define to enable verbose debug */
|
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# ifdef LED_VERBOSE
|
# ifdef CONFIG_DEBUG_VERBOSE
|
||||||
# define ledvdbg lldbg
|
# define ledvdbg lldbg
|
||||||
# else
|
# else
|
||||||
# define ledvdbg(x...)
|
# define ledvdbg(x...)
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# undef LED_VERBOSE
|
|
||||||
# define leddbg(x...)
|
# define leddbg(x...)
|
||||||
# define ledvdbg(x...)
|
# define ledvdbg(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Dump GPIO registers */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#ifdef LED_VERBOSE
|
#if defined(CONFIG_DEBUG_VERBOSE) && defined(CONFIG_DEBUG_LEDS)
|
||||||
# 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)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* configs/lm3s6432-s2e/src/up_leds.c
|
* configs/lm3s6432-s2e/src/up_leds.c
|
||||||
* arch/arm/src/board/up_leds.c
|
* arch/arm/src/board/up_leds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2010, 2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -55,13 +55,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
@@ -71,7 +69,7 @@
|
|||||||
|
|
||||||
/* Dump GPIO registers */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
# 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)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* configs/lm3s6965-ek/src/up_leds.c
|
* configs/lm3s6965-ek/src/up_leds.c
|
||||||
* arch/arm/src/board/up_leds.c
|
* arch/arm/src/board/up_leds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2010, 2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -55,13 +55,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
@@ -71,7 +69,7 @@
|
|||||||
|
|
||||||
/* Dump GPIO registers */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
# 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)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* configs/lm3s8962-ek/src/up_leds.c
|
* configs/lm3s8962-ek/src/up_leds.c
|
||||||
* arch/arm/src/board/up_leds.c
|
* arch/arm/src/board/up_leds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2010, 2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -55,13 +55,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
@@ -71,7 +69,7 @@
|
|||||||
|
|
||||||
/* Dump GPIO registers */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
# 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)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* configs/lpc4330-xplorer/src/up_autoleds.c
|
* configs/lpc4330-xplorer/src/up_autoleds.c
|
||||||
* arch/arm/src/board/up_autoleds.c
|
* arch/arm/src/board/up_autoleds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -90,11 +90,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* Debug definitions ********************************************************/
|
/* Debug definitions ********************************************************/
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_LED
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# ifdef CONFIG_DEBUG_VERBOSE
|
# ifdef CONFIG_DEBUG_VERBOSE
|
||||||
# define LED_VERBOSE 1
|
# define LED_VERBOSE 1
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* configs/lpc4330-xplorer/src/up_userleds.c
|
* configs/lpc4330-xplorer/src/up_userleds.c
|
||||||
* arch/arm/src/board/up_userleds.c
|
* arch/arm/src/board/up_userleds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -68,11 +68,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* Debug definitions ********************************************************/
|
/* Debug definitions ********************************************************/
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_LED
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# ifdef CONFIG_DEBUG_VERBOSE
|
# ifdef CONFIG_DEBUG_VERBOSE
|
||||||
# define LED_VERBOSE 1
|
# define LED_VERBOSE 1
|
||||||
|
|||||||
@@ -55,22 +55,18 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
#undef LED_VERBOSE /* Define to enable verbose debug */
|
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# ifdef LED_VERBOSE
|
# ifdef CONFIG_DEBUG_VERBOSE
|
||||||
# define ledvdbg lldbg
|
# define ledvdbg lldbg
|
||||||
# else
|
# else
|
||||||
# define ledvdbg(x...)
|
# define ledvdbg(x...)
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# undef LED_VERBOSE
|
|
||||||
# define leddbg(x...)
|
# define leddbg(x...)
|
||||||
# define ledvdbg(x...)
|
# define ledvdbg(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -60,29 +60,25 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
#undef LED_VERBOSE /* Define to enable verbose debug */
|
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# ifdef LED_VERBOSE
|
# ifdef CONFIG_DEBUG_VERBOSE
|
||||||
# define ledvdbg lldbg
|
# define ledvdbg lldbg
|
||||||
# else
|
# else
|
||||||
# define ledvdbg(x...)
|
# define ledvdbg(x...)
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# undef LED_VERBOSE
|
|
||||||
# define leddbg(x...)
|
# define leddbg(x...)
|
||||||
# define ledvdbg(x...)
|
# define ledvdbg(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Dump GPIO registers */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#ifdef LED_VERBOSE
|
#if defined(CONFIG_DEBUG_VERBOSE) && defined(CONFIG_DEBUG_LEDS)
|
||||||
# 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)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* configs/ne64badge/src/up_leds.c
|
* configs/ne64badge/src/up_leds.c
|
||||||
* arch/arm/src/board/up_leds.c
|
* arch/arm/src/board/up_leds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -52,29 +52,25 @@
|
|||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
#undef LED_VERBOSE /* Define to enable verbose debug */
|
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# ifdef LED_VERBOSE
|
# ifdef CONFIG_DEBUG_VERBOSE
|
||||||
# define ledvdbg lldbg
|
# define ledvdbg lldbg
|
||||||
# else
|
# else
|
||||||
# define ledvdbg(x...)
|
# define ledvdbg(x...)
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# undef LED_VERBOSE
|
|
||||||
# define leddbg(x...)
|
# define leddbg(x...)
|
||||||
# define ledvdbg(x...)
|
# define ledvdbg(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Dump GPIO registers */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#ifdef LED_VERBOSE
|
#if defined(CONFIG_DEBUG_VERBOSE) && defined(CONFIG_DEBUG_LEDS)
|
||||||
# define led_dumpgpio(m) m9s12_dumpgpio(m)
|
# define led_dumpgpio(m) m9s12_dumpgpio(m)
|
||||||
#else
|
#else
|
||||||
# define led_dumpgpio(m)
|
# define led_dumpgpio(m)
|
||||||
|
|||||||
@@ -60,29 +60,25 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
#undef LED_VERBOSE /* Define to enable verbose debug */
|
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# ifdef LED_VERBOSE
|
# ifdef CONFIG_DEBUG_VERBOSE
|
||||||
# define ledvdbg lldbg
|
# define ledvdbg lldbg
|
||||||
# else
|
# else
|
||||||
# define ledvdbg(x...)
|
# define ledvdbg(x...)
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# undef LED_VERBOSE
|
|
||||||
# define leddbg(x...)
|
# define leddbg(x...)
|
||||||
# define ledvdbg(x...)
|
# define ledvdbg(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Dump GPIO registers */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#ifdef LED_VERBOSE
|
#if defined(CONFIG_DEBUG_VERBOSE) && defined(CONFIG_DEBUG_LEDS)
|
||||||
# define led_dumpgpio(m) lpc17_dumpgpio(NUCLEUS2G_LED1_A, m)
|
# define led_dumpgpio(m) lpc17_dumpgpio(NUCLEUS2G_LED1_A, m)
|
||||||
#else
|
#else
|
||||||
# define led_dumpgpio(m)
|
# define led_dumpgpio(m)
|
||||||
|
|||||||
@@ -76,20 +76,30 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# ifdef CONFIG_DEBUG_VERBOSE
|
||||||
|
# define ledvdbg lldbg
|
||||||
|
# else
|
||||||
|
# define ledvdbg(x...)
|
||||||
|
# endif
|
||||||
#else
|
#else
|
||||||
# define leddbg(x...)
|
# define leddbg(x...)
|
||||||
# define ledvdbg(x...)
|
# define ledvdbg(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
|
#if defined(CONFIG_DEBUG_VERBOSE) && defined(CONFIG_DEBUG_LEDS)
|
||||||
|
# define led_dumpgpio(m) nuc_dumpgpio(GPIO_LED, m)
|
||||||
|
#else
|
||||||
|
# define led_dumpgpio(m)
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@@ -112,7 +122,9 @@
|
|||||||
|
|
||||||
void nuc_ledinit(void)
|
void nuc_ledinit(void)
|
||||||
{
|
{
|
||||||
|
led_dumpgpio("Before configuration");
|
||||||
nuc_configgpio(GPIO_LED);
|
nuc_configgpio(GPIO_LED);
|
||||||
|
led_dumpgpio("After configuration");
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* configs/olimex-lpc1766stk/src/up_leds.c
|
* configs/olimex-lpc1766stk/src/up_leds.c
|
||||||
* arch/arm/src/board/up_leds.c
|
* arch/arm/src/board/up_leds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010-2011 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2010-2011, 2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -58,30 +58,26 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
#undef LED_VERBOSE /* Define to enable verbose debug */
|
# define leddbg lldbg
|
||||||
|
# ifdef CONFIG_DEBUG_VERBOSE
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
|
||||||
# ifdef LED_VERBOSE
|
|
||||||
# define ledvdbg lldbg
|
# define ledvdbg lldbg
|
||||||
# else
|
# else
|
||||||
# define ledvdbg(x...)
|
# define ledvdbg(x...)
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# undef LED_VERBOSE
|
|
||||||
# define leddbg(x...)
|
# define leddbg(x...)
|
||||||
# define ledvdbg(x...)
|
# define ledvdbg(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Dump GPIO registers */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#ifdef LED_VERBOSE
|
#if defined(CONFIG_DEBUG_VERBOSE) && defined(CONFIG_DEBUG_LEDS)
|
||||||
# define led_dumpgpio(m) lpc17_dumpgpio(???, m)
|
# define led_dumpgpio(m) lpc17_dumpgpio(LPC1766STK_LED1, m)
|
||||||
#else
|
#else
|
||||||
# define led_dumpgpio(m)
|
# define led_dumpgpio(m)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -134,29 +134,25 @@
|
|||||||
#define LED_IDLE_OFF_SETBITS ((0) << OFF_SETBITS_SHIFT)
|
#define LED_IDLE_OFF_SETBITS ((0) << OFF_SETBITS_SHIFT)
|
||||||
#define LED_IDLE_OFF_CLRBITS ((OPEN1788_LED4) << OFF_CLRBITS_SHIFT)
|
#define LED_IDLE_OFF_CLRBITS ((OPEN1788_LED4) << OFF_CLRBITS_SHIFT)
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
#undef LED_VERBOSE /* Define to enable verbose debug */
|
# define leddbg lldbg
|
||||||
|
# ifdef CONFIG_DEBUG_VERBOSE
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
|
||||||
# ifdef LED_VERBOSE
|
|
||||||
# define ledvdbg lldbg
|
# define ledvdbg lldbg
|
||||||
# else
|
# else
|
||||||
# define ledvdbg(x...)
|
# define ledvdbg(x...)
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# undef LED_VERBOSE
|
|
||||||
# define leddbg(x...)
|
# define leddbg(x...)
|
||||||
# define ledvdbg(x...)
|
# define ledvdbg(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Dump GPIO registers */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#ifdef LED_VERBOSE
|
#if defined(CONFIG_DEBUG_VERBOSE) && defined(CONFIG_DEBUG_LEDS)
|
||||||
# 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,20 +60,30 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
# define leddbg lldbg
|
||||||
#ifdef LED_DEBUG
|
# ifdef CONFIG_DEBUG_VERBOSE
|
||||||
# define leddbg lldbg
|
# define ledvdbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# else
|
||||||
|
# define ledvdbg(x...)
|
||||||
|
# endif
|
||||||
#else
|
#else
|
||||||
# define leddbg(x...)
|
# define leddbg(x...)
|
||||||
# define ledvdbg(x...)
|
# define ledvdbg(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
|
#if defined(CONFIG_DEBUG_VERBOSE) && defined(CONFIG_DEBUG_LEDS)
|
||||||
|
# define led_dumpgpio(m) lpc17_dumpgpio(???, m)
|
||||||
|
#else
|
||||||
|
# define led_dumpgpio(m)
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/************************************************************************
|
/************************************************************************
|
||||||
* up_leds.c
|
* up_leds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2007, 2009, 2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -57,7 +57,7 @@ static uint8_t g_ledstate;
|
|||||||
* Private Functions
|
* Private Functions
|
||||||
************************************************************************/
|
************************************************************************/
|
||||||
|
|
||||||
#if defined(CONFIG_LED_DEBUG) && defined(CONFIG_ARCH_LEDS)
|
#if defined(CONFIG_DEBUG_LEDS) && defined(CONFIG_ARCH_LEDS)
|
||||||
static void _up_puthex(uint8_t hex) __naked
|
static void _up_puthex(uint8_t hex) __naked
|
||||||
{
|
{
|
||||||
hex; /* To avoid unreferenced argument warning */
|
hex; /* To avoid unreferenced argument warning */
|
||||||
|
|||||||
@@ -58,13 +58,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* configs/shenzhou/src/up_autoleds.c
|
* configs/shenzhou/src/up_autoleds.c
|
||||||
* arch/arm/src/board/up_autoleds.c
|
* arch/arm/src/board/up_autoleds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -57,13 +57,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* configs/shenzhou/src/up_userleds.c
|
* configs/shenzhou/src/up_userleds.c
|
||||||
* arch/arm/src/board/up_userleds.c
|
* arch/arm/src/board/up_userleds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -58,13 +58,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* configs/stm3210e_eval/src/up_leds.c
|
* configs/stm3210e_eval/src/up_leds.c
|
||||||
* arch/arm/src/board/up_leds.c
|
* arch/arm/src/board/up_leds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2009-2012 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2009-2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -57,13 +57,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -58,13 +58,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* configs/stm3220g_eval/src/up_leds.c
|
* configs/stm3220g_eval/src/up_leds.c
|
||||||
* arch/arm/src/board/up_leds.c
|
* arch/arm/src/board/up_leds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -58,13 +58,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* configs/stm3240g_eval/src/up_autoleds.c
|
* configs/stm3240g_eval/src/up_autoleds.c
|
||||||
* arch/arm/src/board/up_autoleds.c
|
* arch/arm/src/board/up_autoleds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -58,13 +58,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* configs/stm3240g_eval/src/up_userleds.c
|
* configs/stm3240g_eval/src/up_userleds.c
|
||||||
* arch/arm/src/board/up_userleds.c
|
* arch/arm/src/board/up_userleds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -58,13 +58,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* configs/stm32f100rc_generic/src/up_leds.c
|
* configs/stm32f100rc_generic/src/up_leds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
* Freddie Chopin <freddie_chopin@op.pl>
|
* Freddie Chopin <freddie_chopin@op.pl>
|
||||||
*
|
*
|
||||||
@@ -57,13 +57,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -56,13 +56,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -56,13 +56,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* configs/stm32f4discovery/src/up_autoleds.c
|
* configs/stm32f4discovery/src/up_autoleds.c
|
||||||
* arch/arm/src/board/up_autoleds.c
|
* arch/arm/src/board/up_autoleds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2011-2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -58,13 +58,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -59,13 +59,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* configs/teensy/src/up_leds.c
|
* configs/teensy/src/up_leds.c
|
||||||
* arch/arm/src/board/up_leds.c
|
* arch/arm/src/board/up_leds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -56,22 +56,18 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
#undef LED_VERBOSE /* Define to enable verbose debug */
|
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# ifdef LED_VERBOSE
|
# ifdef CONFIG_DEBUG_VERBOSE
|
||||||
# define ledvdbg lldbg
|
# define ledvdbg lldbg
|
||||||
# else
|
# else
|
||||||
# define ledvdbg(x...)
|
# define ledvdbg(x...)
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# undef LED_VERBOSE
|
|
||||||
# define leddbg(x...)
|
# define leddbg(x...)
|
||||||
# define ledvdbg(x...)
|
# define ledvdbg(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* configs/twr-k60n512/src/up_leds.c
|
* configs/twr-k60n512/src/up_leds.c
|
||||||
* arch/arm/src/board/up_leds.c
|
* arch/arm/src/board/up_leds.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -118,13 +118,11 @@
|
|||||||
#define LED_PANIC_OFF_SETBITS ((0) << OFF_SETBITS_SHIFT)
|
#define LED_PANIC_OFF_SETBITS ((0) << OFF_SETBITS_SHIFT)
|
||||||
#define LED_PANIC_OFF_CLRBITS ((K60_LED4) << OFF_CLRBITS_SHIFT)
|
#define LED_PANIC_OFF_CLRBITS ((K60_LED4) << OFF_CLRBITS_SHIFT)
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -53,18 +53,15 @@
|
|||||||
|
|
||||||
#include "vsn.h"
|
#include "vsn.h"
|
||||||
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Enables debug output from this file (needs CONFIG_DEBUG with
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* CONFIG_DEBUG_VERBOSE too)
|
* with CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef LED_DEBUG /* Define to enable debug */
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# define ledvdbg llvdbg
|
# define ledvdbg llvdbg
|
||||||
#else
|
#else
|
||||||
@@ -72,14 +69,12 @@
|
|||||||
# define ledvdbg(x...)
|
# define ledvdbg(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
irqstate_t irqidle_mask;
|
irqstate_t irqidle_mask;
|
||||||
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
@@ -584,5 +584,11 @@ Where <subdir> is one of the following:
|
|||||||
CONFIG_HOST_LINUX=y : Builds under Windows (or Cygwin)
|
CONFIG_HOST_LINUX=y : Builds under Windows (or Cygwin)
|
||||||
CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT=y : NuttX buildroot toolchain
|
CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT=y : NuttX buildroot toolchain
|
||||||
|
|
||||||
3. You will need to build the NXFLAT toolchain as described above in
|
3. TCP/IP (only) networking is enabled with this configuration:
|
||||||
|
|
||||||
|
CONFIG_EXAMPLES_THTTPD_NOMAC=y : Will use MAC 00:e0:de:ad:be:ef
|
||||||
|
CONFIG_EXAMPLES_THTTPD_DRIPADDR=0xac100002 : Gateway 172.16.00.02
|
||||||
|
CONFIG_EXAMPLES_THTTPD_NETMASK=0xffffff00 : Netmask 255.255.255.0
|
||||||
|
|
||||||
|
4. You will need to build the NXFLAT toolchain as described above in
|
||||||
order to use this example.
|
order to use this example.
|
||||||
|
|||||||
@@ -60,11 +60,11 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* CONFIG_DEBUG_LED enables debug output from this file (needs CONFIG_DEBUG
|
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
|
||||||
* and pherhaps CONFIG_DEBUG_VERBOSE too)
|
* and pherhaps CONFIG_DEBUG_VERBOSE too)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_LED
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
# define leddbg lldbg
|
# define leddbg lldbg
|
||||||
# ifdef CONFIG_DEBUG_VERBOSE
|
# ifdef CONFIG_DEBUG_VERBOSE
|
||||||
# define ledvdbg lldbg
|
# define ledvdbg lldbg
|
||||||
|
|||||||
@@ -548,7 +548,7 @@ CONFIG_LIB_SENDFILE_BUFSIZE=512
|
|||||||
# CONFIG_EXAMPLES_TELNETD is not set
|
# CONFIG_EXAMPLES_TELNETD is not set
|
||||||
CONFIG_EXAMPLES_THTTPD=y
|
CONFIG_EXAMPLES_THTTPD=y
|
||||||
CONFIG_EXAMPLES_THTTPD_NOMAC=y
|
CONFIG_EXAMPLES_THTTPD_NOMAC=y
|
||||||
CONFIG_EXAMPLES_THTTPD_DRIPADDR=0xa0000001
|
CONFIG_EXAMPLES_THTTPD_DRIPADDR=0xac100002
|
||||||
CONFIG_EXAMPLES_THTTPD_NETMASK=0xffffff00
|
CONFIG_EXAMPLES_THTTPD_NETMASK=0xffffff00
|
||||||
# CONFIG_EXAMPLES_TIFF is not set
|
# CONFIG_EXAMPLES_TIFF is not set
|
||||||
# CONFIG_EXAMPLES_TOUCHSCREEN is not set
|
# CONFIG_EXAMPLES_TOUCHSCREEN is not set
|
||||||
|
|||||||
Reference in New Issue
Block a user