Benjamin Hepp / Mbed 2 deprecated AIT_UWB_Tracker

Dependencies:   DW1000 ait_link BufferedSerial mbed

Revision:
0:6d63b6992cbf
Child:
1:c070ca30da80
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/settings.h	Fri Feb 05 13:48:52 2016 +0000
@@ -0,0 +1,35 @@
+#pragma once
+
+// Global settings
+
+//#undef _DEBUG
+#define _DEBUG 1
+#define PRINT_ERRORS 1
+#define SLAVE_REPLY_WITH_STATS 0
+#define BUILD_ANCHOR 0
+
+#if _DEBUG
+    #ifndef _DEBUG_PC_DEFINED
+        #define _DEBUG_PC_DEFINED
+        #include "PC.h"
+        static PC _pc_debug(USBTX, USBRX, 115200);
+    #endif
+    #define DEBUG_PRINTF(x_) _pc_debug.printf((x_));
+    #define DEBUG_PRINTF_VA(x_, ...) _pc_debug.printf((x_), __VA_ARGS__);
+#else
+    #define DEBUG_PRINTF(x_)
+    #define DEBUG_PRINTF_VA(x_, ...)
+#endif
+
+#if PRINT_ERRORS
+    #ifndef _ERROR_PC_DEFINED
+        #define _ERROR_PC_DEFINED
+        #include "PC.h"
+        static PC _pc_error(USBTX, USBRX, 115200);
+    #endif
+    #define ERROR_PRINTF(x_) _pc_error.printf((x_));
+    #define ERROR_PRINTF_VA(x_, ...) _pc_error.printf((x_), __VA_ARGS__);
+#else
+    #define ERROR_PRINTF(x_)
+    #define ERROR_PRINTF_VA(x_, ...)
+#endif