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>
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user