mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
Centralize definitions associated with CONFIG_DEBUG_SPI
This commit is contained in:
@@ -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
|
||||
****************************************************************************/
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user