summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-09 04:39:54 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-09 04:39:54 +0000
commit8e081cf401efc9235ccd1ca4c7665b5f5dddc1cd (patch)
treedcf252aa2bd77480b0998869ad0d615dd16841c1 /src
parentaed24a59468bfa5a9a603d324eda132eb7e72fa4 (diff)
downloadopenocd_libswd-8e081cf401efc9235ccd1ca4c7665b5f5dddc1cd.tar.gz
openocd_libswd-8e081cf401efc9235ccd1ca4c7665b5f5dddc1cd.tar.bz2
openocd_libswd-8e081cf401efc9235ccd1ca4c7665b5f5dddc1cd.tar.xz
openocd_libswd-8e081cf401efc9235ccd1ca4c7665b5f5dddc1cd.zip
Remove accidental duplicate of hasKHz; fixes pre-init speed setup.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2151 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/jtag/core.c2
-rw-r--r--src/jtag/tcl.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/jtag/core.c b/src/jtag/core.c
index eee20119..1bcf7dc1 100644
--- a/src/jtag/core.c
+++ b/src/jtag/core.c
@@ -93,7 +93,7 @@ jtag_event_callback_t *jtag_event_callbacks;
/* speed in kHz*/
static int speed_khz = 0;
/* flag if the kHz speed was defined */
-static bool hasKHz = false;
+bool hasKHz = false;
struct jtag_interface_s *jtag = NULL;
diff --git a/src/jtag/tcl.c b/src/jtag/tcl.c
index c3344b83..04f45bd8 100644
--- a/src/jtag/tcl.c
+++ b/src/jtag/tcl.c
@@ -39,8 +39,7 @@
#include <strings.h>
#endif
-/* flag if the kHz speed was defined */
-static bool hasKHz = false;
+extern bool hasKHz;
/* jtag interfaces (parport, FTDI-USB, TI-USB, ...)
*/