Skip to content

bpo-28367: Add additional baud rates for termios #13142

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Misc/NEWS.d/next/Library/2019-05-06-22-38-47.bpo-28367.2AKen5.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Termios magic constants for the following baud rates:
- B500000
- B576000
- B921600
- B1000000
- B1152000
- B1500000
- B2000000
- B2500000
- B3000000
- B3500000
- B4000000
Patch by Andrey Smirnov
33 changes: 33 additions & 0 deletions Modules/termios.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,39 @@ static struct constant {
#ifdef B460800
{"B460800", B460800},
#endif
#ifdef B500000
{"B500000", B500000},
#endif
#ifdef B576000
{ "B576000", B576000},
#endif
#ifdef B921600
{ "B921600", B921600},
#endif
#ifdef B1000000
{ "B1000000", B1000000},
#endif
#ifdef B1152000
{ "B1152000", B1152000},
#endif
#ifdef B1500000
{ "B1500000", B1500000},
#endif
#ifdef B2000000
{ "B2000000", B2000000},
#endif
#ifdef B2500000
{ "B2500000", B2500000},
#endif
#ifdef B3000000
{ "B3000000", B3000000},
#endif
#ifdef B3500000
{ "B3500000", B3500000},
#endif
#ifdef B4000000
{ "B4000000", B4000000},
#endif
#ifdef CBAUD
{"CBAUD", CBAUD},
#endif
Expand Down