limit maximum number of bytes queued, equivalent for

Bug 2456024 - FTD2XX fails with certain SVF file


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1413 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Arnim Läuger 16 years ago
parent a46b820717
commit 970d8577c8

@ -1,5 +1,9 @@
2008-12-22 Arnim Laeuger <arniml@users.sourceforge.net>
* src/tap/cable/usbblaster.c:
limit maximum number of bytes queued, equivalent for
Bug 2456024 - FTD2XX fails with certain SVF file
* src/tap/cable/ft2232.c:
set cable frequency to real FT2232 frequency

@ -159,6 +159,16 @@ usbblaster_clock_schedule( cable_t *cable, int tms, int tdi, int n )
int chunkbytes = (m >> 3);
if(chunkbytes > 63) chunkbytes = 63;
if (cx_cmd_space( cmd_root, FTDX_MAXSEND ) < chunkbytes+1)
{
/* no space left for next clocking command
transfer queued commands to device and read receive data
to internal buffer */
cx_xfer( cmd_root, NULL, cable, COMPLETELY );
cx_cmd_queue( cmd_root, 0 );
}
cx_cmd_push( cmd_root, (1<<SHMODE)|(0<<READ)|chunkbytes );
for (i=0; i<chunkbytes; i++)

Loading…
Cancel
Save