mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-28 15:05:27 +00:00
Make the pin definitions configurable based on entries in a config
file. This makes supporting other programmers much easier. Rename AVRprog.pdf to avrprog.pdf. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@67 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
4
term.c
4
term.c
@@ -355,7 +355,7 @@ int cmd_write ( int fd, struct avrpart * p, int argc, char * argv[] )
|
||||
}
|
||||
}
|
||||
|
||||
LED_OFF(fd, PIN_LED_ERR);
|
||||
LED_OFF(fd, pinno[PIN_LED_ERR]);
|
||||
for (werror=0, i=0; i<len; i++) {
|
||||
rc = avr_write_byte(fd, p, memtype, addr+i, buf[i]);
|
||||
if (rc) {
|
||||
@@ -364,7 +364,7 @@ int cmd_write ( int fd, struct avrpart * p, int argc, char * argv[] )
|
||||
werror = 1;
|
||||
}
|
||||
if (werror) {
|
||||
LED_ON(fd, PIN_LED_ERR);
|
||||
LED_ON(fd, pinno[PIN_LED_ERR]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user