aboutsummaryrefslogtreecommitdiff
path: root/test_fw/include/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'test_fw/include/log.h')
-rw-r--r--test_fw/include/log.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/test_fw/include/log.h b/test_fw/include/log.h
new file mode 100644
index 0000000..18efa7a
--- /dev/null
+++ b/test_fw/include/log.h
@@ -0,0 +1,12 @@
+#pragma once
+
+#define USE_RTT 1
+
+#define LOGGER Serial
+
+#if USE_RTT
+#include <RTTStream.h>
+
+extern RTTStream rtt;
+#define LOGGER rtt
+#endif