diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-02 06:21:49 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-02 06:21:49 +0000 |
commit | e733ac36bf52283ff70fa352447fd85d41580e49 (patch) | |
tree | b636c3a2ba78f46d7a61572b2eb3e743d3599c83 /src/jtag/jtag.c | |
parent | 6ef5a622af24a3644c1ebd5cf690bd5c38e6d8a3 (diff) | |
download | riscv-openocd-e733ac36bf52283ff70fa352447fd85d41580e49.zip riscv-openocd-e733ac36bf52283ff70fa352447fd85d41580e49.tar.gz riscv-openocd-e733ac36bf52283ff70fa352447fd85d41580e49.tar.bz2 |
More JTAG interface driver cleanup:
- Make interface_jtag_execute_queue call new helper function.
- Add default_interface_jtag_execute_queue to wrap jtag interface access.
This patch may look useless on its own, but it helps to isolate the core
JTAG variables from the interface_jtag_* routines, so the later can be
moved into jtag_driver.c in a pending patch.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1993 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag/jtag.c')
-rw-r--r-- | src/jtag/jtag.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c index d55888c..cc7082d 100644 --- a/src/jtag/jtag.c +++ b/src/jtag/jtag.c @@ -1570,7 +1570,7 @@ int interface_jtag_execute_queue(void) return ERROR_FAIL; } - retval = jtag->execute_queue(); + retval = default_interface_jtag_execute_queue(); if (retval == ERROR_OK) { @@ -1592,6 +1592,11 @@ int interface_jtag_execute_queue(void) } #endif +int default_interface_jtag_execute_queue(void) +{ + return jtag->execute_queue(); +} + void jtag_execute_queue_noclear(void) { /* each flush can take as much as 1-2ms on high bandwidth low latency interfaces. |