mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-28 15:05:27 +00:00
Seperate programmer operations out into a driver-like interface so
that programmers other than the direct parallel port connection can be supported. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@159 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
23
config.c
23
config.c
@@ -274,29 +274,6 @@ void pyytext(void)
|
||||
}
|
||||
|
||||
|
||||
PROGRAMMER * new_programmer(void)
|
||||
{
|
||||
PROGRAMMER * p;
|
||||
int i;
|
||||
|
||||
p = (PROGRAMMER *)malloc(sizeof(PROGRAMMER));
|
||||
if (p == NULL) {
|
||||
fprintf(stderr, "new_programmer(): out of memory\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
memset(p, 0, sizeof(*p));
|
||||
|
||||
p->id = lcreat(NULL, 0);
|
||||
p->desc[0] = 0;
|
||||
|
||||
for (i=0; i<N_PINS; i++)
|
||||
p->pinno[i] = 0;
|
||||
|
||||
return p;
|
||||
}
|
||||
|
||||
|
||||
char * dup_string(char * str)
|
||||
{
|
||||
char * s;
|
||||
|
Reference in New Issue
Block a user