summaryrefslogtreecommitdiff
path: root/decoders/jtag/jtag.py
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-05-10 09:38:54 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2012-05-10 09:38:54 +0200
commit1cc590f73673ce209ae41d6aa42ffa9a60649415 (patch)
treedcccdc69d140f66bc122abe9f7b68f2fc5d8a759 /decoders/jtag/jtag.py
parentdd93276bf6b7537b65cab270f66666bf23fbc585 (diff)
downloadlibsigrokdecode-1cc590f73673ce209ae41d6aa42ffa9a60649415.tar.gz
libsigrokdecode-1cc590f73673ce209ae41d6aa42ffa9a60649415.zip
srd: JTAG: Enavble and get/use optional probes.
Diffstat (limited to 'decoders/jtag/jtag.py')
-rw-r--r--decoders/jtag/jtag.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/decoders/jtag/jtag.py b/decoders/jtag/jtag.py
index d2568ab..baeb764 100644
--- a/decoders/jtag/jtag.py
+++ b/decoders/jtag/jtag.py
@@ -38,8 +38,9 @@ class Decoder(srd.Decoder):
{'id': 'tms', 'name': 'TMS', 'desc': 'Test mode select'},
]
optional_probes = [
- # {'id': 'trst', 'name': 'TRST#', 'desc': 'Test reset'},
- # {'id': 'srst', 'name': 'SRST#', 'desc': 'System reset'},
+ {'id': 'trst', 'name': 'TRST#', 'desc': 'Test reset'},
+ {'id': 'srst', 'name': 'SRST#', 'desc': 'System reset'},
+ {'id': 'rtck', 'name': 'RTCK', 'desc': 'Return clock signal'},
]
options = {}
annotations = [
@@ -158,8 +159,8 @@ class Decoder(srd.Decoder):
self.oldpins = pins
# Get individual pin values into local variables.
- # TODO: Handle optional pins (TRST, SRST).
- (tdi, tdo, tck, tms) = pins
+ # Unused probes will have a value of > 1.
+ (tdi, tdo, tck, tms, trst, srst, rtck) = pins
# We only care about TCK edges (either rising or falling).
if (self.oldtck == tck):