summaryrefslogtreecommitdiff
path: root/src/jtag/rlink
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:42:54 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:42:54 +0000
commit84df52f9ea78e2d71bde648a16b69d80404c6421 (patch)
tree93c683e2ec71d33978585da29c4bcaa73fd37222 /src/jtag/rlink
parent3813fda44adcea486b7308423a699f63d79273ee (diff)
downloadopenocd_libswd-84df52f9ea78e2d71bde648a16b69d80404c6421.tar.gz
openocd_libswd-84df52f9ea78e2d71bde648a16b69d80404c6421.tar.bz2
openocd_libswd-84df52f9ea78e2d71bde648a16b69d80404c6421.tar.xz
openocd_libswd-84df52f9ea78e2d71bde648a16b69d80404c6421.zip
- Fixes '=' whitespace
- Replace ')\(=\)\(\w\)' with ') \1 \2'. - Replace '\(\w\)\(=\)(' with '\1 \2 ('. - Replace '\(\w\)\(=\)\(\w\)' with '\1 \2 \3'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2372 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag/rlink')
-rw-r--r--src/jtag/rlink/rlink.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/jtag/rlink/rlink.c b/src/jtag/rlink/rlink.c
index 11381d68..2f14e86f 100644
--- a/src/jtag/rlink/rlink.c
+++ b/src/jtag/rlink/rlink.c
@@ -915,7 +915,7 @@ void rlink_end_state(tap_state_t state)
static
void rlink_state_move(void) {
- int i=0, tms=0;
+ int i = 0, tms = 0;
uint8_t tms_scan = tap_get_tms_path(tap_get_state(), tap_get_end_state());
int tms_count = tap_get_tms_path_len(tap_get_state(), tap_get_end_state());
@@ -1131,7 +1131,7 @@ rlink_scan(
#if 0
- printf("scan_size = %d, type=0x%x\n", scan_size, type);
+ printf("scan_size = %d, type = 0x%x\n", scan_size, type);
{
int i;
@@ -1620,8 +1620,8 @@ int rlink_init(void)
struct usb_bus *busses;
struct usb_bus *bus;
int i, j, retries;
- int found=0;
- int success=0;
+ int found = 0;
+ int success = 0;
uint8_t reply_buffer[USB_EP1IN_SIZE];
usb_init();
@@ -1654,7 +1654,7 @@ int rlink_init(void)
break;
}
- pHDev=usb_open(dev);
+ pHDev = usb_open(dev);
if ( !pHDev )
LOG_ERROR ("Failed to open device.\n");
else
@@ -1692,7 +1692,7 @@ int rlink_init(void)
break;
}
else
- success=1;
+ success = 1;
}
}
} while (0);