summaryrefslogtreecommitdiff
path: root/shared/trace.h
diff options
context:
space:
mode:
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 */
+