mirror of
https://github.com/apache/nuttx.git
synced 2026-10-04 04:38:10 +00:00
Centralize definitions associated with CONFIG_DEBUG_SPI
This commit is contained in:
parent
0e180c3ad8
commit
ba03134bed
104 changed files with 335 additions and 1835 deletions
|
|
@ -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
|
||||
************************************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue