summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-08-19 16:41:59 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-08-19 16:41:59 +0000
commit6af4a2268996bf774b33fa97b9b1803d02d62a0e (patch)
treeecf3e96a1ed7c0ac564fe3bebb3c552e6434f8db
parentd34e01f51d799ee32d108c31cd9b753d7e6590f3 (diff)
downloadopenocd+libswd-6af4a2268996bf774b33fa97b9b1803d02d62a0e.tar.gz
openocd+libswd-6af4a2268996bf774b33fa97b9b1803d02d62a0e.tar.bz2
openocd+libswd-6af4a2268996bf774b33fa97b9b1803d02d62a0e.tar.xz
openocd+libswd-6af4a2268996bf774b33fa97b9b1803d02d62a0e.zip
better polling debug_level 3 handling
git-svn-id: svn://svn.berlios.de/openocd/trunk@943 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r--src/target/xscale.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/target/xscale.c b/src/target/xscale.c
index 7c364b3f..e9ec0cee 100644
--- a/src/target/xscale.c
+++ b/src/target/xscale.c
@@ -518,8 +518,11 @@ int xscale_read_tx(target_t *target, int consume)
}
if (debug_level>=3)
{
- LOG_DEBUG("waiting 10ms");
- usleep(10*1000); /* avoid flooding the logs */
+ LOG_DEBUG("waiting 100ms");
+ alive_sleep(100); /* avoid flooding the logs */
+ } else
+ {
+ keep_alive();
}
}
done:
@@ -602,8 +605,11 @@ int xscale_write_rx(target_t *target)
goto done;
if (debug_level>=3)
{
- LOG_DEBUG("waiting 10ms");
- usleep(10*1000); /* avoid flooding the logs */
+ LOG_DEBUG("waiting 100ms");
+ alive_sleep(100); /* avoid flooding the logs */
+ } else
+ {
+ keep_alive();
}
}
done: