Contributed by Klaus Leidinger <klaus@mikrocontroller-projekte.de>:
* main.c: Realign verbose messages. * avrpart.c: (Ditto.) * avr910.c: Print the device code selected in verbose mode. * butterfly.c: (Ditto.) git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@772 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
2ce7151a23
commit
cc8b75040f
|
@ -1,3 +1,11 @@
|
||||||
|
2008-06-07 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
||||||
|
|
||||||
|
Contributed by Klaus Leidinger <klaus@mikrocontroller-projekte.de>:
|
||||||
|
* main.c: Realign verbose messages.
|
||||||
|
* avrpart.c: (Ditto.)
|
||||||
|
* avr910.c: Print the device code selected in verbose mode.
|
||||||
|
* butterfly.c: (Ditto.)
|
||||||
|
|
||||||
2008-06-07 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
2008-06-07 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
||||||
|
|
||||||
Contributed by Klaus Leidinger <klaus@mikrocontroller-projekte.de>:
|
Contributed by Klaus Leidinger <klaus@mikrocontroller-projekte.de>:
|
||||||
|
|
5
avr910.c
5
avr910.c
|
@ -268,6 +268,11 @@ static int avr910_initialize(PROGRAMMER * pgm, AVRPART * p)
|
||||||
avr910_send(pgm, buf, 2);
|
avr910_send(pgm, buf, 2);
|
||||||
avr910_vfy_cmd_sent(pgm, "select device");
|
avr910_vfy_cmd_sent(pgm, "select device");
|
||||||
|
|
||||||
|
if (verbose)
|
||||||
|
fprintf(stderr,
|
||||||
|
"%s: avr910_devcode selected: 0x%02x\n",
|
||||||
|
progname, (unsigned)buf[1]);
|
||||||
|
|
||||||
avr910_enter_prog_mode(pgm);
|
avr910_enter_prog_mode(pgm);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -321,6 +321,11 @@ static int butterfly_initialize(PROGRAMMER * pgm, AVRPART * p)
|
||||||
butterfly_send(pgm, buf, 2);
|
butterfly_send(pgm, buf, 2);
|
||||||
butterfly_vfy_cmd_sent(pgm, "select device");
|
butterfly_vfy_cmd_sent(pgm, "select device");
|
||||||
|
|
||||||
|
if (verbose)
|
||||||
|
fprintf(stderr,
|
||||||
|
"%s: devcode selected: 0x%02x\n",
|
||||||
|
progname, (unsigned)buf[1]);
|
||||||
|
|
||||||
butterfly_enter_prog_mode(pgm);
|
butterfly_enter_prog_mode(pgm);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
10
main.c
10
main.c
|
@ -743,6 +743,12 @@ int main(int argc, char * argv [])
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
fprintf(stderr, "%sUsing Port : %s\n", progbuf, port);
|
fprintf(stderr, "%sUsing Port : %s\n", progbuf, port);
|
||||||
fprintf(stderr, "%sUsing Programmer : %s\n", progbuf, programmer);
|
fprintf(stderr, "%sUsing Programmer : %s\n", progbuf, programmer);
|
||||||
|
if ((strcmp(pgm->type, "avr910") == 0)) {
|
||||||
|
fprintf(stderr, "%savr910_devcode (avrdude.conf) : ", progbuf);
|
||||||
|
if(p->avr910_devcode)fprintf(stderr, "0x%x\n", p->avr910_devcode);
|
||||||
|
else fprintf(stderr, "none\n");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (baudrate != 0) {
|
if (baudrate != 0) {
|
||||||
|
@ -754,7 +760,7 @@ int main(int argc, char * argv [])
|
||||||
|
|
||||||
if (bitclock != 0.0) {
|
if (bitclock != 0.0) {
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
fprintf(stderr, "%sSetting bit clk period: %.1f\n", progbuf, bitclock);
|
fprintf(stderr, "%sSetting bit clk period : %.1f\n", progbuf, bitclock);
|
||||||
}
|
}
|
||||||
|
|
||||||
pgm->bitclock = bitclock * 1e-6;
|
pgm->bitclock = bitclock * 1e-6;
|
||||||
|
@ -762,7 +768,7 @@ int main(int argc, char * argv [])
|
||||||
|
|
||||||
if (ispdelay != 0) {
|
if (ispdelay != 0) {
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
fprintf(stderr, "%sSetting isp clock delay: %3i\n", progbuf, ispdelay);
|
fprintf(stderr, "%sSetting isp clock delay : %3i\n", progbuf, ispdelay);
|
||||||
}
|
}
|
||||||
pgm->ispdelay = ispdelay;
|
pgm->ispdelay = ispdelay;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue