summaryrefslogtreecommitdiff
path: root/src/jtag/arm-jtag-ew.c
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-04 00:56:41 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-04 00:56:41 +0000
commit4123f082630caddead1590eac6193f736440c4cb (patch)
treef7c19c446f7e36df1d0423c311c3871236491792 /src/jtag/arm-jtag-ew.c
parent99fbbdc9c48da616d06986670f9518c0f42cb00e (diff)
downloadopenocd+libswd-4123f082630caddead1590eac6193f736440c4cb.tar.gz
openocd+libswd-4123f082630caddead1590eac6193f736440c4cb.tar.bz2
openocd+libswd-4123f082630caddead1590eac6193f736440c4cb.tar.xz
openocd+libswd-4123f082630caddead1590eac6193f736440c4cb.zip
David Brownell <david-b@pacbell.net>:
Remove pernicious whitespace from src/jtag/*c files; mostly the end-of-line flavor for now, although there's more. git-svn-id: svn://svn.berlios.de/openocd/trunk@2036 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag/arm-jtag-ew.c')
-rw-r--r--src/jtag/arm-jtag-ew.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/jtag/arm-jtag-ew.c b/src/jtag/arm-jtag-ew.c
index ebe60d97..98fd0d62 100644
--- a/src/jtag/arm-jtag-ew.c
+++ b/src/jtag/arm-jtag-ew.c
@@ -1,4 +1,4 @@
-// vim:ts=4 sw=4:
+// vim:ts=4 sw=4:
/***************************************************************************
* Copyright (C) 2009 by Dimitar Dimitrov <dinuxbg@gmail.com> *
@@ -222,14 +222,14 @@ static int armjtagew_speed(int speed)
usb_out_buffer[0] = CMD_GET_TCK_FREQUENCY;
result = armjtagew_usb_message(armjtagew_jtag_handle, 1, 4);
speed_real = (int)buf_get_u32(usb_in_buffer,0,32);
- if(result < 0)
+ if(result < 0)
{
LOG_ERROR("ARM-JTAG-EW getting speed failed (%d)", result);
return ERROR_JTAG_DEVICE_ERROR;
- }
+ }
else
{
- LOG_INFO("Requested speed %dkHz, emulator reported %dkHz.", speed, speed_real);
+ LOG_INFO("Requested speed %dkHz, emulator reported %dkHz.", speed, speed_real);
}
return ERROR_OK;
@@ -334,7 +334,7 @@ static void armjtagew_path_move(int num_states, tap_state_t *path)
for (i = 0; i < num_states; i++)
{
/*
- * TODO: The ARM-JTAG-EW hardware delays TDI with 3 TCK cycles when in RTCK mode.
+ * TODO: The ARM-JTAG-EW hardware delays TDI with 3 TCK cycles when in RTCK mode.
* Either handle that here, or update the documentation with examples
* how to fix that in the configuration files.
*/
@@ -504,7 +504,7 @@ static int armjtagew_get_version_info(void)
usb_out_buffer[0] = CMD_GET_VERSION;
result = armjtagew_usb_message(armjtagew_jtag_handle, 1, 4+15+256);
- if (result != 0)
+ if (result != 0)
{
LOG_ERROR("ARM-JTAG-EW command CMD_GET_VERSION failed (%d)\n", result);
return ERROR_JTAG_DEVICE_ERROR;
@@ -791,7 +791,7 @@ static int armjtagew_usb_message(armjtagew_jtag_t *armjtagew_jtag, int out_lengt
if (result == out_length)
{
result = armjtagew_usb_read(armjtagew_jtag, in_length);
- if (result != in_length)
+ if (result != in_length)
{
LOG_ERROR("usb_bulk_read failed (requested=%d, result=%d)", in_length, result);
return -1;