Cosmetics

This commit is contained in:
Bertrand Songis
2019-10-03 12:19:31 +02:00
parent a7ec12f878
commit a5d0419c3c
6 changed files with 29 additions and 19 deletions
+2 -10
View File
@@ -30,16 +30,12 @@
#include "serial.h"
#endif
#if defined(__cplusplus)
extern "C" {
#endif
uint8_t auxSerialTracesEnabled();
#if defined(SIMU)
typedef void (*traceCallbackFunc)(const char * text);
EXTERN_C(typedef void (*traceCallbackFunc)(const char * text));
extern traceCallbackFunc traceCallback;
void debugPrintf(const char * format, ...);
EXTERN_C(void debugPrintf(const char * format, ...));
#elif defined(SEMIHOSTING)
#include <stdio.h>
#define debugPrintf(...) printf(__VA_ARGS__)
@@ -51,10 +47,6 @@ uint8_t auxSerialTracesEnabled();
#define debugPrintf(...)
#endif
#if defined(__cplusplus)
}
#endif
#define TRACE_NOCRLF(...) debugPrintf(__VA_ARGS__)
#define TRACE(f_, ...) debugPrintf((f_ "\r\n"), ##__VA_ARGS__)
#define DUMP(data, size) dump(data, size)