From d0aa877eb0c02192558d86a84adcfd89f7d5e155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnim=20L=C3=A4uger?= Date: Mon, 11 May 2009 21:37:43 +0000 Subject: [PATCH] invert abort condition for break timeout git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1587 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 5 +++++ jtag/src/bus/ejtag_dma.c | 2 +- urjtag/ChangeLog | 5 +++++ urjtag/src/bus/ejtag_dma.c | 2 +- 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index 3e069a65..1dd3258b 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,3 +1,8 @@ +2009-05-11 Arnim Laeuger + + * src/bus/ejtag_dma.c (ejtag_dma_bus_init): invert abort condition for break + timeout + 2009-05-07 Arnim Laeuger * src/tap/cable/wiggler2.c: [ 2782581 ] TRST, TMS and TDI incorrectly marked diff --git a/jtag/src/bus/ejtag_dma.c b/jtag/src/bus/ejtag_dma.c index 4d7c95d7..98897997 100644 --- a/jtag/src/bus/ejtag_dma.c +++ b/jtag/src/bus/ejtag_dma.c @@ -423,7 +423,7 @@ int ejtag_dma_bus_init( bus_t *bus ) chain_shift_data_registers( CHAIN, 1 ); timeout--; if (!timeout) break; - } while ( ejctrl->out->data[BrkSt] == 1 ); + } while ( ejctrl->out->data[BrkSt] == 0 ); if (timeout == 0) { diff --git a/urjtag/ChangeLog b/urjtag/ChangeLog index 75e00ee0..508d6840 100644 --- a/urjtag/ChangeLog +++ b/urjtag/ChangeLog @@ -1,3 +1,8 @@ +2009-05-11 Arnim Laeuger + + * src/bus/ejtag_dma.c (ejtag_dma_bus_init): invert abort condition for break + timeout + 2009-05-10 Arnim Laeuger * doc/UrJTAG.txt: hint for non-standard flash commands diff --git a/urjtag/src/bus/ejtag_dma.c b/urjtag/src/bus/ejtag_dma.c index 5063e366..38de382a 100644 --- a/urjtag/src/bus/ejtag_dma.c +++ b/urjtag/src/bus/ejtag_dma.c @@ -481,7 +481,7 @@ ejtag_dma_bus_init (urj_bus_t *bus) if (!timeout) break; } - while (ejctrl->out->data[BrkSt] == 1); + while (ejctrl->out->data[BrkSt] == 0); if (timeout == 0) {