drivers/SFDP should compile without mbed-trace

The library "drivers" is a core one available to bare metal.
It should not depend on mbed-trace which is an optional library.
pull/13430/head
Lingkai Dong 2020-09-02 15:50:13 +01:00
parent 71eecfc7c8
commit 183ca7729c
1 changed files with 6 additions and 0 deletions

View File

@ -26,8 +26,14 @@
#if (DEVICE_SPI || DEVICE_QSPI)
#if MBED_CONF_MBED_TRACE_ENABLE
#include "mbed-trace/mbed_trace.h"
#define TRACE_GROUP "SFDP"
#else // MBED_CONF_MBED_TRACE_ENABLE
#define tr_info(...)
#define tr_error(...)
#define tr_debug(...)
#endif // MBED_CONF_MBED_TRACE_ENABLE
namespace {