Skip to content

Commit 7dc72b8

Browse files
tonybaloneyblurb-it[bot]
authored andcommitted
bpo-28367: Add additional baud rates for termios (GH-13142)
Co-authored-by: Andrey Smirnov <[email protected]>. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
1 parent 3a5de51 commit 7dc72b8

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Termios magic constants for the following baud rates:
2+
- B500000
3+
- B576000
4+
- B921600
5+
- B1000000
6+
- B1152000
7+
- B1500000
8+
- B2000000
9+
- B2500000
10+
- B3000000
11+
- B3500000
12+
- B4000000
13+
Patch by Andrey Smirnov

Modules/termios.c

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,39 @@ static struct constant {
613613
#ifdef B460800
614614
{"B460800", B460800},
615615
#endif
616+
#ifdef B500000
617+
{"B500000", B500000},
618+
#endif
619+
#ifdef B576000
620+
{ "B576000", B576000},
621+
#endif
622+
#ifdef B921600
623+
{ "B921600", B921600},
624+
#endif
625+
#ifdef B1000000
626+
{ "B1000000", B1000000},
627+
#endif
628+
#ifdef B1152000
629+
{ "B1152000", B1152000},
630+
#endif
631+
#ifdef B1500000
632+
{ "B1500000", B1500000},
633+
#endif
634+
#ifdef B2000000
635+
{ "B2000000", B2000000},
636+
#endif
637+
#ifdef B2500000
638+
{ "B2500000", B2500000},
639+
#endif
640+
#ifdef B3000000
641+
{ "B3000000", B3000000},
642+
#endif
643+
#ifdef B3500000
644+
{ "B3500000", B3500000},
645+
#endif
646+
#ifdef B4000000
647+
{ "B4000000", B4000000},
648+
#endif
616649
#ifdef CBAUD
617650
{"CBAUD", CBAUD},
618651
#endif

0 commit comments

Comments
 (0)