Submitted by Gerard:

patch #6828: Using arbitrary BAUD rates
* ser_posix.c (serial_baud_lookup): Allow non-standard baud
rates.
* ser_win32.c (serial_baud_lookup): (Dito.)



git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@890 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch 2010-01-08 10:39:18 +00:00
parent 59c68bac8b
commit ee6146f808
3 changed files with 26 additions and 6 deletions

View File

@ -1,3 +1,11 @@
2010-01-08 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
Submitted by Gerard:
patch #6828: Using arbitrary BAUD rates
* ser_posix.c (serial_baud_lookup): Allow non-standard baud
rates.
* ser_win32.c (serial_baud_lookup): (Dito.)
2010-01-07 Joerg Wunsch <j.gnu@uriah.heep.sax.de> 2010-01-07 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
Submitted by Eric Trein: Submitted by Eric Trein:

View File

@ -81,9 +81,15 @@ static speed_t serial_baud_lookup(long baud)
map++; map++;
} }
fprintf(stderr, "%s: serial_baud_lookup(): unknown baud rate: %ld\n", /*
* If a non-standard BAUD rate is used, issue
* a warning (if we are verbose) and return the raw rate
*/
if (verbose > 0)
fprintf(stderr, "%s: serial_baud_lookup(): Using non-standard baud rate: %ld",
progname, baud); progname, baud);
exit(1);
return baud;
} }
static int ser_setspeed(union filedescriptor *fd, long baud) static int ser_setspeed(union filedescriptor *fd, long baud)

View File

@ -67,9 +67,15 @@ static DWORD serial_baud_lookup(long baud)
map++; map++;
} }
fprintf(stderr, "%s: serial_baud_lookup(): unknown baud rate: %ld", /*
* If a non-standard BAUD rate is used, issue
* a warning (if we are verbose) and return the raw rate
*/
if (verbose > 0)
fprintf(stderr, "%s: serial_baud_lookup(): Using non-standard baud rate: %ld",
progname, baud); progname, baud);
exit(1);
return baud;
} }