Skip to content

Commit 55e75c4

Browse files
LnnrtSdpgeorge
authored andcommitted
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 <[email protected]>
1 parent abbce26 commit 55e75c4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

ports/unix/modtermios.c

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,27 @@ static const mp_rom_map_elem_t mp_module_termios_globals_table[] = {
141141
#ifdef B115200
142142
C(B115200),
143143
#endif
144+
#ifdef B230400
145+
C(B230400),
146+
#endif
147+
#ifdef B460800
148+
C(B460800),
149+
#endif
150+
#ifdef B500000
151+
C(B500000),
152+
#endif
153+
#ifdef B576000
154+
C(B576000),
155+
#endif
156+
#ifdef B921600
157+
C(B921600),
158+
#endif
159+
#ifdef B1000000
160+
C(B1000000),
161+
#endif
162+
#ifdef B1152000
163+
C(B1152000)
164+
#endif
144165
#undef C
145166
};
146167

0 commit comments

Comments
 (0)