From f7c2ed3eba42b8882ebc347fb9d4c958fa6c03dd Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Fri, 30 Dec 2011 16:38:58 +0000 Subject: [PATCH] * ser_posix.c (baud_lookup_table): Conditionalize the inclusion of non-standard baud rates (only baud rates up to B38400 are standardized by the Single UNIX Specification). git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@1029 81a1dc3b-b13d-400b-aceb-764788c761c2 --- avrdude/ChangeLog | 6 ++++++ avrdude/ser_posix.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/avrdude/ChangeLog b/avrdude/ChangeLog index 462665a2..846e10c3 100644 --- a/avrdude/ChangeLog +++ b/avrdude/ChangeLog @@ -1,3 +1,9 @@ +2011-12-30 Joerg Wunsch + + * ser_posix.c (baud_lookup_table): Conditionalize the inclusion of + non-standard baud rates (only baud rates up to B38400 are + standardized by the Single UNIX Specification). + 2011-12-29 Rene Liebscher bug #34302: Feature request : device configuration with parent classes diff --git a/avrdude/ser_posix.c b/avrdude/ser_posix.c index 210bff20..3ddf3dd6 100644 --- a/avrdude/ser_posix.c +++ b/avrdude/ser_posix.c @@ -62,9 +62,15 @@ static struct baud_mapping baud_lookup_table [] = { { 9600, B9600 }, { 19200, B19200 }, { 38400, B38400 }, +#ifdef B57600 { 57600, B57600 }, +#endif +#ifdef B115200 { 115200, B115200 }, +#endif +#ifdef B230400 { 230400, B230400 }, +#endif { 0, 0 } /* Terminator. */ };