Fixes pin_limit error in avrftdic.

-Error was a result of a mixup between 2232C/D and 2232H


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1099 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Hannes Weisbach 2012-08-13 19:03:41 +00:00
parent bcd3ba87f3
commit cee2c0cd39
2 changed files with 18 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2012-08-13 Hannes Weisbach <hannes_weisbach@gmx.net>
* avrftdi.c: fixes pin_limit for different FTDI devices (there was a mixup
between 2232C and 2232H)
2012-07-29 Hannes Weisbach <hannes_weisbach@gmx.net>
* avrftdi.c: bugfixes (synchronisation) and maintenance (paged programming,

View File

@ -764,15 +764,24 @@ static int avrftdi_open(PROGRAMMER * pgm, char *port)
/* set pin limit depending on chip type */
switch(pdata->ftdic->type) {
#if 0
//TODO: issue an error - no MPSSE. hint the user to syncbb?
case TYPE_AM:
case TYPE_BM:
case TYPE_R:
#endif
case TYPE_2232C:
pdata->pin_limit = 15;
break;
case TYPE_2232H:
pdata->pin_limit = 11;
break;
case TYPE_2232H:
case TYPE_232H:
pdata->pin_limit = 15;
break;
case TYPE_4232H:
default:
pdata->pin_limit = 7;
break;
default:
//TODO: error/unsupported device
}
/* add SCK, MOSI and RESET as output pins - MISO needs no configuration */