1
0
mirror of https://github.com/UzixLS/picocom.git synced 2025-07-19 07:21:18 +03:00

Enabled support for higher baudrates up to 921600. Support is

compiled-in conditionally on the HIGH_BAUD macro.

Thanks to Pavel Vymetalek
This commit is contained in:
Nick Patavalis
2010-05-28 01:12:12 +00:00
parent b208d8df0f
commit 8a48fc24aa
3 changed files with 20 additions and 1 deletions

8
term.c
View File

@ -627,9 +627,17 @@ term_set_baudrate (int fd, int baudrate)
case 115200:
spd = B115200;
break;
#ifdef HIGH_BAUD
case 230400:
spd = B230400;
break;
case 460800:
spd = B460800;
break;
case 921600:
spd = B921600;
break;
#endif
default:
term_errno = TERM_EBAUD;
rval = -1;