Skip to content

Commit 7ff5652

Browse files
committed
patch #9327: ft245r.c: add TPI support (patches 1-4)
Submitted by David Mosberger-Tang With newer versions of the Linux kernel (e.g., Ubuntu's linux-image-4.4.0-75-generic), the default for the latency timer is set to a high value. Since this driver needs quick turnaround times, set it explicitly to the minium. This improves TPI programming speed by almost a factor of 10. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1484 81a1dc3b-b13d-400b-aceb-764788c761c2
1 parent 6de6c0f commit 7ff5652

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2021-11-24 Joerg Wunsch <[email protected]>
2+
3+
Submitted by David Mosberger-Tang:
4+
patch #9327: ft245r.c: add TPI support (patches 1-4)
5+
* ft245r.c (ft245r_open): add call to
6+
ftdi_set_latency_timer() to improve timing
7+
18
2021-11-24 Joerg Wunsch <[email protected]>
29

310
Submitted by David Mosberger-Tang:

ft245r.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,13 @@ static int ft245r_open(PROGRAMMER * pgm, char * port) {
836836
ft245r_out = SET_BITS_0(ft245r_out,pgm,PIN_LED_VFY,0);
837837

838838

839+
rv = ftdi_set_latency_timer(handle, 1);
840+
if (rv) {
841+
avrdude_message(MSG_INFO, "%s: unable to set latency timer to 1 (%s)\n",
842+
progname, ftdi_get_error_string(handle));
843+
goto cleanup;
844+
}
845+
839846
rv = ftdi_set_bitmode(handle, ft245r_ddr, BITMODE_SYNCBB); // set Synchronous BitBang
840847
if (rv) {
841848
avrdude_message(MSG_INFO, "%s: Synchronous BitBangMode is not supported (%s)\n",

0 commit comments

Comments
 (0)