summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-04 22:43:34 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-04 22:43:34 +0000
commit82a5f6ff3e77396fc80cde29a16b320544e0bc8f (patch)
treefed2dadb6829c35aa1ee61350a4cd4cd5c974f78
parentc0f9fbcca5a2729098bf9904a5f3c46dc6e7ee0f (diff)
downloadopenocd+libswd-82a5f6ff3e77396fc80cde29a16b320544e0bc8f.tar.gz
openocd+libswd-82a5f6ff3e77396fc80cde29a16b320544e0bc8f.tar.bz2
openocd+libswd-82a5f6ff3e77396fc80cde29a16b320544e0bc8f.tar.xz
openocd+libswd-82a5f6ff3e77396fc80cde29a16b320544e0bc8f.zip
Change hasKHz to use bool type.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2054 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r--src/jtag/jtag.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c
index f57dce58..f1dc6828 100644
--- a/src/jtag/jtag.c
+++ b/src/jtag/jtag.c
@@ -86,7 +86,7 @@ jtag_event_callback_t *jtag_event_callbacks;
/* speed in kHz*/
static int speed_khz = 0;
/* flag if the kHz speed was defined */
-static int hasKHz = 0;
+static bool hasKHz = false;
/* jtag interfaces (parport, FTDI-USB, TI-USB, ...)
*/
@@ -1650,7 +1650,7 @@ int jtag_interface_init(struct command_context_s *cmd_ctx)
if(hasKHz)
{
jtag_interface->khz(speed_khz, &jtag_speed);
- hasKHz = 0;
+ hasKHz = false;
}
if (jtag_interface->init() != ERROR_OK)
@@ -2139,7 +2139,7 @@ static int handle_jtag_khz_command(struct command_context_s *cmd_ctx, char *cmd,
retval=jtag->speed(cur_speed);
} else
{
- hasKHz = 1;
+ hasKHz = true;
}
} else if (argc==0)
{