diff options
| author | Lennart <Lennart@binarylabs.dev> | 2024-07-08 14:30:01 +0200 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2024-07-15 11:27:23 +1000 |
| commit | 55e75c4ad4131e72a452e6190473098e8a0521c2 (patch) | |
| tree | e4b9e05422c950303a6a91c4464c87cbe3c0d29a /ports/unix/modtermios.c | |
| parent | abbce268afb351d623c2073a4e4ae62a9e71889a (diff) | |
unix/modtermios: Add more baudrate options.
This adds some more baudrate option as they are available in the termios.h
header - up to a point that seems reasonable in an embedded context.
Signed-off-by: Lennart Schierling <Lennart@binarylabs.dev>
Diffstat (limited to 'ports/unix/modtermios.c')
| -rw-r--r-- | ports/unix/modtermios.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ports/unix/modtermios.c b/ports/unix/modtermios.c index b1ad9a450..d7b94038a 100644 --- a/ports/unix/modtermios.c +++ b/ports/unix/modtermios.c @@ -141,6 +141,27 @@ static const mp_rom_map_elem_t mp_module_termios_globals_table[] = { #ifdef B115200 C(B115200), #endif + #ifdef B230400 + C(B230400), + #endif + #ifdef B460800 + C(B460800), + #endif + #ifdef B500000 + C(B500000), + #endif + #ifdef B576000 + C(B576000), + #endif + #ifdef B921600 + C(B921600), + #endif + #ifdef B1000000 + C(B1000000), + #endif + #ifdef B1152000 + C(B1152000) + #endif #undef C }; |
