summaryrefslogtreecommitdiff
path: root/shared/trace.h
diff options
context:
space:
mode:
authorKarl Palsson <karlp@tweak.net.au>2015-10-16 21:56:42 +0000
committerKarl Palsson <karlp@tweak.net.au>2015-10-17 02:15:58 +0000
commit8d538b3935842204c7a545184df302958fc2015d (patch)
tree94feaf5cb9d44ba2cfb2ada45e2cd9e9cdcaf7ee /shared/trace.h
parent0bcc5d5efd70ed4564c141a7f38f78f52ea088a0 (diff)
downloadolsndot-8d538b3935842204c7a545184df302958fc2015d.tar.gz
olsndot-8d538b3935842204c7a545184df302958fc2015d.tar.bz2
olsndot-8d538b3935842204c7a545184df302958fc2015d.zip
stub adc on/off test code.
Needs a pot on PA0, should get the temperature input working as well.
Diffstat (limited to 'shared/trace.h')
-rw-r--r--shared/trace.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/shared/trace.h b/shared/trace.h
new file mode 100644
index 0000000..b18cc11
--- /dev/null
+++ b/shared/trace.h
@@ -0,0 +1,30 @@
+/*
+ * trace support
+ * Karl Palsson <karlp@tweak.net.au>
+ */
+
+#ifndef TRACE_H
+#define TRACE_H
+
+#include <stdint.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void trace_send_blocking8(int stimulus_port, char c);
+void trace_send8(int stimulus_port, char c);
+
+void trace_send_blocking16(int stimulus_port, uint16_t val);
+void trace_send16(int stimulus_port, uint16_t val);
+
+void trace_send_blocking32(int stimulus_port, uint32_t val);
+void trace_send32(int stimulus_port, uint32_t val);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* TRACE_H */
+