From 55e75c4ad4131e72a452e6190473098e8a0521c2 Mon Sep 17 00:00:00 2001 From: Lennart Date: Mon, 8 Jul 2024 14:30:01 +0200 Subject: [PATCH] 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 --- ports/unix/modtermios.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/ports/unix/modtermios.c b/ports/unix/modtermios.c index b1ad9a450e..d7b94038aa 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 };