mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
Centralize definitions associated with CONFIG_DEBUG_SPI
This commit is contained in:
@@ -53,22 +53,6 @@
|
||||
|
||||
#if defined(CONFIG_KINETIS_SPI1) || defined(CONFIG_KINETIS_SPI2)
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
************************************************************************************/
|
||||
|
||||
/* Enables debug output from this file (needs CONFIG_DEBUG_FEATURES too) */
|
||||
|
||||
#ifdef CONFIG_DEBUG_SPI
|
||||
# define spierr llerr
|
||||
# define spiwarn llwarn
|
||||
# define spiinfo llinfo
|
||||
#else
|
||||
# define spierr(x...)
|
||||
# define spiwarn(x...)
|
||||
# define spiinfo(x...)
|
||||
#endif
|
||||
|
||||
/************************************************************************************
|
||||
* Public Functions
|
||||
************************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user