Add the forgotten -B option (JTAG bit clock) to the getopt() option
string. Actually evaluate that number as microseconds then, as the documentation used to state already. While being there, re-sort the -s option into alphabetical order. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@527 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
2cdc5c1f4f
commit
37fb76687a
|
@ -1,3 +1,8 @@
|
||||||
|
2005-09-21 Joerg Wunsch <j@uriah.heep.sax.de>
|
||||||
|
|
||||||
|
* main.c: Add the forgotten -B option to the option string in
|
||||||
|
getopt(); sort the -s option into order.
|
||||||
|
|
||||||
2005/09/21 Brian S. Dean <bsd@bsdhome.com>
|
2005/09/21 Brian S. Dean <bsd@bsdhome.com>
|
||||||
|
|
||||||
* avr.c:
|
* avr.c:
|
||||||
|
|
4
main.c
4
main.c
|
@ -835,7 +835,7 @@ int main(int argc, char * argv [])
|
||||||
/*
|
/*
|
||||||
* process command line arguments
|
* process command line arguments
|
||||||
*/
|
*/
|
||||||
while ((ch = getopt(argc,argv,"?b:c:C:DeE:Fnp:P:qtU:suvVyY:")) != -1) {
|
while ((ch = getopt(argc,argv,"?b:B:c:C:DeE:Fnp:P:qstU:uvVyY:")) != -1) {
|
||||||
|
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
case 'b': /* override default programmer baud rate */
|
case 'b': /* override default programmer baud rate */
|
||||||
|
@ -1163,7 +1163,7 @@ int main(int argc, char * argv [])
|
||||||
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;
|
pgm->bitclock = bitclock * 1e-6;
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = pgm->open(pgm, port);
|
rc = pgm->open(pgm, port);
|
||||||
|
|
Loading…
Reference in New Issue