]> git.sur5r.net Git - openocd/commit
Relax polling check if not in JTAG mode
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>
Wed, 14 May 2014 20:14:10 +0000 (22:14 +0200)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sat, 28 Jun 2014 09:34:55 +0000 (09:34 +0000)
commit12e9f6292b391d475214704843504c5817bf783e
treeddbb551b8b728492d3e97c09ce379913151aa740
parentbaf998b9f8d17f4318b21336d5b57145fc4d44bc
Relax polling check if not in JTAG mode

Polling was disabled based on global variables jtag_trst and jtag_srst
which were never touched in non-JTAG mode. Modify the check and remove
the ugly workaround to avoid calls to a possibly uninitialized JTAG
subsystem.

Change-Id: I3b18c81e0fba7aaf35afe6f08c3fe8fa6f8443fd
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/2143
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
src/jtag/core.c
src/target/adi_v5_swd.c