aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKévin Redon <kredon@sysmocom.de>2018-06-25 15:49:28 +0200
committerKévin Redon <kredon@sysmocom.de>2018-07-01 18:33:28 +0200
commit5dce338c6b123f2c328ed6c6f992966a0b84cfcd (patch)
treef994c9f063b0b1cb5b9ec92a2bcb5a5a78af79ca
parentad6e7eff005070e046ef1682948f6c08aeddf24f (diff)
SIMtrace: enable interrupt on edge dection for SIM_RST pin to reset the sniffer ISO state
-rw-r--r--firmware/libboard/simtrace/include/board.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/libboard/simtrace/include/board.h b/firmware/libboard/simtrace/include/board.h
index c5f4dc4..891ab33 100644
--- a/firmware/libboard/simtrace/include/board.h
+++ b/firmware/libboard/simtrace/include/board.h
@@ -67,7 +67,7 @@
/* Connect all lines (VPP, CLK, RST, and I/O) between card and phone */
#define PINS_BUS_SNIFF PIN_SC_SW_SNIFF, PIN_IO_SW_SNIFF
/* Card RST reset signal input (use as input since the phone will drive it) */
-#define PIN_SIM_RST_SNIFF {PIO_PA7, PIOA, ID_PIOA, PIO_INPUT, PIO_DEFAULT}
+#define PIN_SIM_RST_SNIFF {PIO_PA7, PIOA, ID_PIOA, PIO_INPUT, PIO_DEGLITCH | PIO_IT_EDGE}
/* Pins used to sniff phone-card communication */
#define PINS_SIM_SNIFF PIN_SIM_IO, PIN_SIM_CLK, PIN_SIM_RST_SNIFF
/* Disable power converter 4.5-6V to 3.3V (active high) */