svn commit: trunk/uClibc/libc: sysdeps/linux/common/bits termios

psm at uclibc.org psm at uclibc.org
Mon Feb 13 08:41:38 UTC 2006


Author: psm
Date: 2006-02-13 00:41:37 -0800 (Mon, 13 Feb 2006)
New Revision: 13936

Log:
Add back the 115200 limit

Modified:
   trunk/uClibc/libc/sysdeps/linux/common/bits/termios.h
   trunk/uClibc/libc/termios/cfsetspeed.c


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/common/bits/termios.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/bits/termios.h	2006-02-13 08:39:27 UTC (rev 13935)
+++ trunk/uClibc/libc/sysdeps/linux/common/bits/termios.h	2006-02-13 08:41:37 UTC (rev 13936)
@@ -156,6 +156,7 @@
 #endif
 #define  B57600   0010001
 #define  B115200  0010002
+#if 0 /* limited on uClibc, keep in sync w/ cfsetspeed.c */
 #define  B230400  0010003
 #define  B460800  0010004
 #define  B500000  0010005
@@ -170,6 +171,9 @@
 #define  B3500000 0010016
 #define  B4000000 0010017
 #define __MAX_BAUD B4000000
+#else
+#define __MAX_BAUD B115200
+#endif
 #ifdef __USE_MISC
 # define CIBAUD	  002003600000		/* input baud rate (not used) */
 # define CMSPAR   010000000000		/* mark or space (stick) parity */

Modified: trunk/uClibc/libc/termios/cfsetspeed.c
===================================================================
--- trunk/uClibc/libc/termios/cfsetspeed.c	2006-02-13 08:39:27 UTC (rev 13935)
+++ trunk/uClibc/libc/termios/cfsetspeed.c	2006-02-13 08:41:37 UTC (rev 13936)
@@ -91,6 +91,7 @@
 #ifdef B115200
     { 115200, B115200 },
 #endif
+#if 0 /* limited on uClibc, keep in sync w/ bits/termios.h */
 #ifdef B153600
     { 153600, B153600 },
 #endif
@@ -136,6 +137,7 @@
 #ifdef B4000000
     { 4000000, B4000000 },
 #endif
+#endif
   };
 
 




More information about the uClibc-cvs mailing list