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@527 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch 2005-09-21 15:02:02 +00:00
parent 736905dcdb
commit f366d16c75
2 changed files with 7 additions and 2 deletions

View File

@ -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:

View File

@ -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);