* avr910.c, avrpart.c, avrpart.h, doc/TODO: Look up devicecode and report device.

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@399 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
hinni
2004-01-12 22:48:50 +00:00
parent 1fe6d367ce
commit 93f2a54036
5 changed files with 23 additions and 4 deletions

View File

@@ -418,6 +418,19 @@ AVRPART * locate_part(LISTID parts, char * partdesc)
return NULL;
}
AVRPART * locate_part_by_avr910_devcode(LISTID parts, int devcode)
{
LNODEID ln1;
AVRPART * p = NULL;
for (ln1=lfirst(parts); ln1; ln1=lnext(ln1)) {
p = ldata(ln1);
if (p->avr910_devcode == devcode)
return p;
}
return NULL;
}
void list_parts(FILE * f, char * prefix, LISTID parts)
{