Skip to content

Commit

Permalink
unix/modtermios: Add more baudrate options.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
LnnrtS authored and dpgeorge committed Jul 15, 2024
1 parent abbce26 commit 55e75c4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions ports/unix/modtermios.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

Expand Down

0 comments on commit 55e75c4

Please sign in to comment.