From: Michal Sojka Date: Sat, 2 Nov 2019 22:24:46 +0000 (+0100) Subject: Support baudrates up to 4 Mbps X-Git-Tag: 20191105~2 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/sojka/sterm.git/commitdiff_plain/df62ab77f582080d8ea648da5827b32d8d9e34a9?hp=ddf42859cfc37370b7b9493df1dee902f0741c23 Support baudrates up to 4 Mbps These are supported by glibc since 1999. If other C libraries have problem with those, we should add ifdefs. Thanks to ohemming@gmail.com for letting me know that his Rock64 needs 1.5 Mbps baudrate. --- diff --git a/sterm.c b/sterm.c index 040c22f..e0406bb 100644 --- a/sterm.c +++ b/sterm.c @@ -250,6 +250,18 @@ int main(int argc, char *argv[]) S(57600); S(115200); S(230400); + S(460800); + S(500000); + S(576000); + S(921600); + S(1000000); + S(1152000); + S(1500000); + S(2000000); + S(2500000); + S(3000000); + S(3500000); + S(4000000); #undef S default: fprintf(stderr, "Unknown baud rate %d\n", s);