mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Centralize definitions associated with CONFIG_DEBUG_SPI
This commit is contained in:
@@ -54,22 +54,6 @@
|
||||
|
||||
#if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI3)
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
************************************************************************************/
|
||||
|
||||
/* Enables debug output from this file */
|
||||
|
||||
#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