Centralize definitions associated with CONFIG_DEBUG_LCD

This commit is contained in:
Gregory Nutt
2016-06-15 11:40:33 -06:00
parent ba03134bed
commit 24c51ec1ff
53 changed files with 130 additions and 959 deletions
-25
View File
@@ -52,19 +52,6 @@
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* Configuration ************************************************************/
/* Define CONFIG_DEBUG_LCD to enable detailed LCD debug output. Verbose
* debug must also be enabled.
*/
#ifndef CONFIG_DEBUG_FEATURES
# undef CONFIG_DEBUG_INFO
# undef CONFIG_DEBUG_LCD
#endif
#ifndef CONFIG_DEBUG_INFO
# undef CONFIG_DEBUG_LCD
#endif
/* Indices, counts, helper macros ******************************************/
@@ -89,18 +76,6 @@
#define IS_CODE(a) (((a) >= CODE_MIN) && ((a) <= CODE_MAX))
#define CODE_RETURN(a) (enum slcdcode_e)((a) - 'A')
/* Debug ********************************************************************/
#ifdef CONFIG_DEBUG_LCD
# define lcderr err
# define lcdwarn warn
# define lcdinfo info
#else
# define lcderr(x...)
# define lcdwarn(x...)
# define lcdinfo(x...)
#endif
/****************************************************************************
* Private Functions
****************************************************************************/