summaryrefslogtreecommitdiff
path: root/firmware/src/picc/opicc_reg.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/src/picc/opicc_reg.h')
-rw-r--r--firmware/src/picc/opicc_reg.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/firmware/src/picc/opicc_reg.h b/firmware/src/picc/opicc_reg.h
new file mode 100644
index 0000000..e77d157
--- /dev/null
+++ b/firmware/src/picc/opicc_reg.h
@@ -0,0 +1,18 @@
+#ifndef _OPCD_REG_H
+#define _OPCD_REG_H
+
+#include <openpicc.h>
+#include <sys/types.h>
+
+#ifdef DEBUG
+u_int16_t opicc_reg_read(enum opicc_reg reg);
+void opicc_reg_write(enum opicc_reg reg, u_int16_t val);
+#else
+u_int16_t opicc_regs[_OPICC_NUM_REGS];
+#define opicc_reg_read(x) (opicc_regs[x])
+#define opicc_reg_Write(x, y) (opicc_regs[x] = y)
+#endif
+
+void opicc_usbapi_init(void);
+
+#endif
personal git repositories of Harald Welte. Your mileage may vary