summaryrefslogtreecommitdiff
path: root/src/jtag/presto.c
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:45:47 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:45:47 +0000
commit6d1d58a1fc3dfd60e9cac89460b5a6e438d11efa (patch)
tree9f1465d0768f8fde40053f539296f895d7e4e0ac /src/jtag/presto.c
parentfb1a9b2cb2f844a17d26dfeb3d26849364d93e26 (diff)
downloadopenocd+libswd-6d1d58a1fc3dfd60e9cac89460b5a6e438d11efa.tar.gz
openocd+libswd-6d1d58a1fc3dfd60e9cac89460b5a6e438d11efa.tar.bz2
openocd+libswd-6d1d58a1fc3dfd60e9cac89460b5a6e438d11efa.tar.xz
openocd+libswd-6d1d58a1fc3dfd60e9cac89460b5a6e438d11efa.zip
- Fixes '[<>]' whitespace
- Replace ')\([<>]\)(' with ') \1 ('. - 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@2375 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag/presto.c')
-rw-r--r--src/jtag/presto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jtag/presto.c b/src/jtag/presto.c
index fceae34a..9aca9097 100644
--- a/src/jtag/presto.c
+++ b/src/jtag/presto.c
@@ -553,7 +553,7 @@ static int presto_getbyte(void)
if (presto_flush() != ERROR_OK)
return -1;
- if (presto->buff_in_pos<presto->buff_in_len)
+ if (presto->buff_in_pos < presto->buff_in_len)
return presto->buff_in[presto->buff_in_pos++];
return -1;
@@ -625,14 +625,14 @@ static int presto_bitq_out(int tms, int tdi, int tdo_req)
}
/* delay with TCK low */
- for (i = presto->jtag_speed; i>1; i--)
+ for (i = presto->jtag_speed; i > 1; i--)
presto_sendbyte(cmd);
cmd |= 0x04;
presto_sendbyte(cmd | (tdo_req ? 0x10 : 0));
/* delay with TCK high */
- for (i = presto->jtag_speed; i>1; i--)
+ for (i = presto->jtag_speed; i > 1; i--)
presto_sendbyte(cmd);
presto->jtag_tck = 1;