avrftdi_tpi.c: Remove set_pin() to set MOSI high
This is not necessary any more, because the "frame" ends in logic 1, so the pin is high anyway and the MPSSE keeps the pin value as long as it is idle. Setting the pin low would cause the TPI physical layer in the AVR part to detect a collision. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1159 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
779538b9af
commit
a2ab9c6039
|
@ -4,6 +4,7 @@
|
|||
avrftdi_log.
|
||||
* avrftdi_tpi.c: Do all I/O in terms of pgm->cmd_tpi()-calls instead of
|
||||
avrftdi_tpi_[read,write]_byte().
|
||||
Remove unnecessary set_pin call to set MOSI high, speeds up I/O.
|
||||
|
||||
2013-05-02 Hannes Weisbach <hannes_weisbach@gmx.net>
|
||||
|
||||
|
|
|
@ -181,9 +181,6 @@ avrftdi_tpi_read_byte(PROGRAMMER * pgm, unsigned char * byte)
|
|||
|
||||
unsigned char buffer[4];
|
||||
|
||||
/* set it high, so the TPI won't detect we're driving the line */
|
||||
to_pdata(pgm)->set_pin(pgm, PIN_AVR_MOSI, ON);
|
||||
|
||||
buffer[0] = MPSSE_DO_READ | MPSSE_LSB;
|
||||
buffer[1] = (bytes-1) & 0xff;
|
||||
buffer[2] = ((bytes-1) >> 8) & 0xff;
|
||||
|
@ -223,7 +220,6 @@ avrftdi_tpi_program_enable(PROGRAMMER * pgm, AVRPART * p)
|
|||
{
|
||||
int retry;
|
||||
int err;
|
||||
int i;
|
||||
unsigned char cmd[2];
|
||||
unsigned char response;
|
||||
|
||||
|
|
Loading…
Reference in New Issue