From: Alexander Stein <alexander.st...@systec-electronic.com>

This allows stty (and maybe other users) to use serial baudrates up
to 4MBit/s.

Signed-off-by: Alexander Stein <alexander.st...@systec-electronic.com>
---
 libbb/speed_table.c | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/libbb/speed_table.c b/libbb/speed_table.c
index 174d531..635096c 100644
--- a/libbb/speed_table.c
+++ b/libbb/speed_table.c
@@ -59,6 +59,30 @@ static const struct speed_map speeds[] = {
 #ifdef B921600
        {B921600, 921600/256 + 0x8000U},
 #endif
+#ifdef B1000000
+       {B1000000, 1000000/256 + 0x8000U},
+#endif
+#ifdef B1152000
+       {B1152000, 1152000/256 + 0x8000U},
+#endif
+#ifdef B1500000
+       {B1500000, 1500000/256 + 0x8000U},
+#endif
+#ifdef B2000000
+       {B2000000, 2000000/256 + 0x8000U},
+#endif
+#ifdef B2500000
+       {B2500000, 2500000/256 + 0x8000U},
+#endif
+#ifdef B3000000
+       {B3000000, 3000000/256 + 0x8000U},
+#endif
+#ifdef B3500000
+       {B3500000, 3500000/256 + 0x8000U},
+#endif
+#ifdef B4000000
+       {B4000000, 4000000/256 + 0x8000U},
+#endif
 };
 
 enum { NUM_SPEEDS = ARRAY_SIZE(speeds) };
-- 
2.0.4

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to