summaryrefslogtreecommitdiff
path: root/firmware/src/simtrace.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-11-14 23:04:16 +0100
committerHarald Welte <laforge@gnumonks.org>2010-11-14 23:04:16 +0100
commit50b1aff6f6f2a3a127f6121c5dedd8c2fa5a1c4d (patch)
tree22aff7eab132784ab11736c63ccf1c6156ed809c /firmware/src/simtrace.h
parent506b033dd2ca8e4625f50f1dbafd2ce171fe03b8 (diff)
Initial version of a SAM7 USART based ISO7816-3 T=0 sniffer
Diffstat (limited to 'firmware/src/simtrace.h')
-rw-r--r--firmware/src/simtrace.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/firmware/src/simtrace.h b/firmware/src/simtrace.h
new file mode 100644
index 0000000..5a27c31
--- /dev/null
+++ b/firmware/src/simtrace.h
@@ -0,0 +1,18 @@
+
+#define USB_VENDOR_ID OPENPCD_VENDOR_ID
+
+#ifdef SIMTRACE
+#define OPENPCD_PIO_LED2 AT91C_PIO_PA17
+#define OPENPCD_PIO_LED1 AT91C_PIO_PA18
+#define OPENPCD_PIO_UDP_CNX AT91C_PIO_PA24
+#define OPENPCD_PIO_UDP_PUP AT91C_PIO_PA16
+#define USB_PRODUCT_ID SIMTRACE_PRODUCT_ID
+#else
+#error "unknown PCB"
+#endif
+
+#define SIMTRACE_PIO_CLK AT91C_PA2_SCK0
+#define SIMTRACE_PIO_IO AT91C_PA6_TXD0
+#define SIMTRACE_PIO_nRST AT91C_PIO_PA7
+
+
personal git repositories of Harald Welte. Your mileage may vary