Skip to content

Commit 183ca77

Browse files
committed
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.
1 parent 71eecfc commit 183ca77

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/source/SFDP.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,14 @@
2626

2727
#if (DEVICE_SPI || DEVICE_QSPI)
2828

29+
#if MBED_CONF_MBED_TRACE_ENABLE
2930
#include "mbed-trace/mbed_trace.h"
3031
#define TRACE_GROUP "SFDP"
32+
#else // MBED_CONF_MBED_TRACE_ENABLE
33+
#define tr_info(...)
34+
#define tr_error(...)
35+
#define tr_debug(...)
36+
#endif // MBED_CONF_MBED_TRACE_ENABLE
3137

3238
namespace {
3339

0 commit comments

Comments
 (0)