From e1ed50e8e67f101dfe7e7bc7ac75a9396b13a627 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/avrdude@1029 81a1dc3b-b13d-400b-aceb-764788c761c2 --- ChangeLog | 6 ++++++ ser_posix.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 462665a2..846e10c3 100644 --- a/ChangeLog +++ b/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/ser_posix.c b/ser_posix.c index 210bff20..3ddf3dd6 100644 --- a/ser_posix.c +++ b/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. */ };