Centralize definitions associated with CONFIG_DEBUG_SPI

This commit is contained in:
Gregory Nutt
2016-06-15 10:41:13 -06:00
parent 0e180c3ad8
commit ba03134bed
104 changed files with 335 additions and 1835 deletions
-20
View File
@@ -101,26 +101,6 @@
#define SPI_DUMMY 0xff
/* Debug ********************************************************************/
/* Check if (non-standard) SPI debug is enabled */
#ifndef CONFIG_DEBUG_FEATURES
# undef CONFIG_DEBUG_INFO
# undef CONFIG_DEBUG_SPI
#endif
#ifdef CONFIG_DEBUG_SPI
# define spierr err
# ifdef CONFIG_DEBUG_INFO
# define spiinfo err
# else
# define spiinfo(x...)
# endif
#else
# define spierr(x...)
# define spiinfo(x...)
#endif
/****************************************************************************
* Private Functions
****************************************************************************/
-25
View File
@@ -78,31 +78,6 @@
* information.
*/
/* Debug ********************************************************************/
/* Check if SPI debut is enabled (non-standard.. no support in
* include/debug.h
*/
#ifndef CONFIG_DEBUG_FEATURES
# undef CONFIG_DEBUG_INFO
# undef CONFIG_DEBUG_SPI
#endif
#ifdef CONFIG_DEBUG_SPI
# define spierr llerr
# ifdef CONFIG_DEBUG_INFO
# define spiinfo llinfo
# else
# define spiinfo(x...)
# endif
#else
# define spierr(x...)
# define spiinfo(x...)
#endif
/****************************************************************************
* Private Types
****************************************************************************/
/****************************************************************************
* Private Function Prototypes