aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/src/openpcd.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/openpcd.h
parent506b033dd2ca8e4625f50f1dbafd2ce171fe03b8 (diff)
Initial version of a SAM7 USART based ISO7816-3 T=0 sniffer
Diffstat (limited to 'firmware/src/openpcd.h')
-rw-r--r--firmware/src/openpcd.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/firmware/src/openpcd.h b/firmware/src/openpcd.h
index a65cd0e..3bc890e 100644
--- a/firmware/src/openpcd.h
+++ b/firmware/src/openpcd.h
@@ -10,11 +10,13 @@
#define USB_VENDOR_ID OPENPCD_VENDOR_ID
-#ifdef OLIMEX
+#if defined(OLIMEX) || defined(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 OPENPCD_PIO_UDP_PUPv4 AT91C_PIO_PA16
+#define PIO_BOOTLDR AT91C_PIO_PA19 /* B1 used as bootloader switch */
+#define USB_PRODUCT_ID SIMTRACE_PRODUCT_ID
#else
#if defined(PCD)
#define OPENPCD_PIO_UDP_CNX AT91C_PIO_PA15
@@ -166,6 +168,7 @@
#define OPENPCD_IRQ_PRIO_SPI AT91C_AIC_PRIOR_HIGHEST
#define OPENPCD_IRQ_PRIO_SSC (AT91C_AIC_PRIOR_HIGHEST-1)
#define OPENPCD_IRQ_PRIO_SYS (AT91C_AIC_PRIOR_HIGHEST-2)
+#define OPENPCD_IRQ_PRIO_USART (AT91C_AIC_PRIOR_HIGHEST-3)
#define OPENPCD_IRQ_PRIO_TC_FDT (AT91C_AIC_PRIOR_LOWEST+3)
#define OPENPCD_IRQ_PRIO_UDP (AT91C_AIC_PRIOR_LOWEST+2)
#define OPENPCD_IRQ_PRIO_PIT (AT91C_AIC_PRIOR_LOWEST+1)