set cable frequency to real FT2232 frequency

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

@ -1,5 +1,8 @@
2008-12-22 Arnim Laeuger <arniml@users.sourceforge.net>
* src/tap/cable/ft2232.c:
set cable frequency to real FT2232 frequency
* src/tap/usbconn/libftdi.c, src/tap/usbconn/libftd2xx.c,
include/usbconn/libftdx.h, src/tap/cable/ft2232.c:
increased MPSSE buffer size from 4k to 64k

@ -203,8 +203,6 @@ ft2232_set_frequency( cable_t *cable, uint32_t new_frequency )
if (!new_frequency || new_frequency > FT2232_MAX_TCK_FREQ)
new_frequency = FT2232_MAX_TCK_FREQ;
cable->frequency = new_frequency;
/* update ft2232 frequency if cable setting changed */
if (new_frequency != params->mpsse_frequency)
{
@ -230,6 +228,7 @@ ft2232_set_frequency( cable_t *cable, uint32_t new_frequency )
cx_xfer( cmd_root, &imm_cmd, cable, COMPLETELY );
params->mpsse_frequency = FT2232_MAX_TCK_FREQ / (div + 1);
cable->frequency = params->mpsse_frequency;
}
}

Loading…
Cancel
Save