Pavel Chromy style fixes.

git-svn-id: svn://svn.berlios.de/openocd/trunk@344 b42882b7-edfa-0310-969c-e2dbd0fdcd60
__archive__
oharboe 2008-02-25 14:58:20 +00:00
parent 81184adfb0
commit a08d86e88d
3 changed files with 1147 additions and 1148 deletions

View File

@ -25,7 +25,6 @@
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@ -470,11 +469,11 @@ void usbprog_jtag_init(struct usbprog_jtag *usbprog_jtag)
void usbprog_jtag_write_and_read(struct usbprog_jtag *usbprog_jtag, char * buffer, int size)
{
char tmp[64]; // fastes packet size for usb controller
char tmp[64]; /* fastes packet size for usb controller */
int send_bits, bufindex = 0, fillindex = 0, i, loops;
char swap;
// 61 byte can be transfered (488 bit)
/* 61 byte can be transfered (488 bit) */
while (size > 0)
{
@ -492,8 +491,8 @@ void usbprog_jtag_write_and_read(struct usbprog_jtag *usbprog_jtag, char * buffe
size = 0;
}
tmp[0] = WRITE_AND_READ;
tmp[1] = (char)(send_bits >> 8); // high
tmp[2] = (char)(send_bits); // low
tmp[1] = (char)(send_bits >> 8); /* high */
tmp[2] = (char)(send_bits); /* low */
i = 0;
for (i = 0; i < loops; i++)
@ -525,11 +524,11 @@ void usbprog_jtag_write_and_read(struct usbprog_jtag *usbprog_jtag, char * buffe
void usbprog_jtag_read_tdo(struct usbprog_jtag *usbprog_jtag, char * buffer, int size)
{
char tmp[64]; // fastes packet size for usb controller
char tmp[64]; /* fastes packet size for usb controller */
int send_bits, fillindex = 0, i, loops;
char swap;
// 61 byte can be transfered (488 bit)
/* 61 byte can be transfered (488 bit) */
while (size > 0)
{
@ -547,8 +546,8 @@ void usbprog_jtag_read_tdo(struct usbprog_jtag *usbprog_jtag, char * buffer, int
size = 0;
}
tmp[0] = WRITE_AND_READ;
tmp[1] = (char)(send_bits >> 8); // high
tmp[2] = (char)(send_bits); // low
tmp[1] = (char)(send_bits >> 8); /* high */
tmp[2] = (char)(send_bits); /* low */
usb_bulk_write(usbprog_jtag->usb_handle, 3, tmp, 3, 1000);
@ -572,10 +571,10 @@ void usbprog_jtag_read_tdo(struct usbprog_jtag *usbprog_jtag, char * buffer, int
void usbprog_jtag_write_tdi(struct usbprog_jtag *usbprog_jtag, char * buffer, int size)
{
char tmp[64]; // fastes packet size for usb controller
char tmp[64]; /* fastes packet size for usb controller */
int send_bits, bufindex = 0, i, loops;
// 61 byte can be transfered (488 bit)
/* 61 byte can be transfered (488 bit) */
while (size > 0)
{
if (size > 488)
@ -593,8 +592,8 @@ void usbprog_jtag_write_tdi(struct usbprog_jtag *usbprog_jtag, char * buffer, in
size = 0;
}
tmp[0] = WRITE_TDI;
tmp[1] = (char)(send_bits >> 8); // high
tmp[2] = (char)(send_bits); // low
tmp[1] = (char)(send_bits >> 8); /* high */
tmp[2] = (char)(send_bits); /* low */
i = 0;
for (i = 0; i < loops; i++)