summaryrefslogtreecommitdiff
path: root/firmware/src/simtrace.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-06-17 09:55:18 +0200
committerHarald Welte <laforge@gnumonks.org>2011-06-17 09:55:18 +0200
commitebaba1be96a6970705eb805dc3afc1d54f489ac8 (patch)
tree66b4006838f5e6ee63a39550f44c88ebe34d0bf4 /firmware/src/simtrace.h
parentcda126a7ef6fbb54a18a4786c15117800a13f7b3 (diff)
simtrace: introduce mode sniffer / mitm switching
Diffstat (limited to 'firmware/src/simtrace.h')
-rw-r--r--firmware/src/simtrace.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/firmware/src/simtrace.h b/firmware/src/simtrace.h
index d7faa96..6b8f753 100644
--- a/firmware/src/simtrace.h
+++ b/firmware/src/simtrace.h
@@ -13,19 +13,25 @@
/* 7816 UART for SIM-card side */
#define SIMTRACE_PIO_CLK AT91C_PA2_SCK0
+#define SIMTRACE_PIO_CLK_T AT91C_PA4_TCLK0
#define SIMTRACE_PIO_IO AT91C_PA6_TXD0
+#define SIMTRACE_PIO_IO_T AT91C_PA1_TIOB0
#define SIMTRACE_PIO_nRST AT91C_PIO_PA7
#define SIMTRACE_PIO_SW_SIM AT91C_PIO_PA8
/* 7816 UART for phone side */
#define SIMTRACE_PIO_nRST_PH AT91C_PIO_PA24
-#define SIMTRACE_PIO_CLK_PH AT91C_PIO_PA23
-#define SIMTRACE_PIO_IO_PH AT91C_PIO_PA22
+#define SIMTRACE_PIO_CLK_PH AT91C_PA23_SCK1
+#define SIMTRACE_PIO_CLK_PH_T AT91C_PA28_TCLK1
+#define SIMTRACE_PIO_IO_PH_TX AT91C_PA22_TXD1
+#define SIMTRACE_PIO_IO_PH_RX AT91C_PA21_RXD1
/* bus switch for SIM card connection */
#define SIMTRACE_PIO_SC_SW AT91C_PIO_PA20
#define SIMTRACE_PIO_IO_SW AT91C_PIO_PA19
+#define SIMTRACE_PIO_VCC_SIM AT91C_PIO_PA5
+
/* SPI flash */
#define PIO_SPIF_nWP AT91C_PIO_PA15
#define PIO_SPIF_SCK AT91C_PIO_PA14
personal git repositories of Harald Welte. Your mileage may vary