aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/libboard
diff options
context:
space:
mode:
authorKévin Redon <kredon@sysmocom.de>2018-06-25 15:49:28 +0200
committerKing Kévin <kingkevin@cuvoodoo.info>2018-07-04 14:29:28 +0200
commit7be52ec1cefa26c62013293e36f2c9f65f0eac4b (patch)
treeb29f7f55c6ea4685933a51eeb18d718f5d0222fe /firmware/libboard
parenta2b367633c4ea2cc766c58063f2b894ee5c92369 (diff)
SIMtrace: enable interrupt on edge dection for SIM_RST pin to reset the sniffer ISO state
Diffstat (limited to 'firmware/libboard')
-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) */