aboutsummaryrefslogtreecommitdiffstats
path: root/src/pru/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pru/internal.h')
-rw-r--r--src/pru/internal.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/pru/internal.h b/src/pru/internal.h
new file mode 100644
index 00000000..b279f3d0
--- /dev/null
+++ b/src/pru/internal.h
@@ -0,0 +1,18 @@
+#ifndef __PRU_INTERNAL_H
+#define __PRU_INTERNAL_H
+// Local definitions for PRU code
+
+#define IEP_IRQ 0
+#define GOT_ARM_IRQ 1
+#define WAKE_ARM_IRQ 2
+
+#define IEP_EVENT 7
+#define GOT_ARM_EVENT 17
+#define WAKE_ARM_EVENT 16
+
+#define R31_IRQ_OFFSET 30
+
+// console.c
+void console_init(void);
+
+#endif // internal.h