FreeCalypso > hg > freecalypso-tools
comparison libserial-orig/baudtab.c @ 654:39b39b546824
libserial-orig: same xram_records baudtab addition as in libserial-newlnx
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Mon, 02 Mar 2020 23:24:43 +0000 |
| parents | cb1ba53a1106 |
| children |
comparison
equal
deleted
inserted
replaced
| 653:2d5d1ca58b2a | 654:39b39b546824 |
|---|---|
| 10 #include <termios.h> | 10 #include <termios.h> |
| 11 #include "baudrate.h" | 11 #include "baudrate.h" |
| 12 | 12 |
| 13 struct baudrate baud_rate_table[] = { | 13 struct baudrate baud_rate_table[] = { |
| 14 /* the first listed rate will be our default */ | 14 /* the first listed rate will be our default */ |
| 15 {"115200", B115200, 0}, | 15 {"115200", B115200, 0, 100}, |
| 16 {"57600", B57600, 1}, | 16 {"57600", B57600, 1, 100}, |
| 17 {"38400", B38400, 2}, | 17 {"38400", B38400, 2, 100}, |
| 18 {"19200", B19200, 4}, | 18 {"19200", B19200, 4, 50}, |
| 19 /* | 19 /* |
| 20 * Non-standard high baud rates remapped by CP2102 EEPROM programming | 20 * Non-standard high baud rates remapped by CP2102 EEPROM programming |
| 21 * or by a hacky patch to the ftdi_sio Linux kernel driver to work | 21 * or by a hacky patch to the ftdi_sio Linux kernel driver to work |
| 22 * with FTDI adapters. | 22 * with FTDI adapters. |
| 23 */ | 23 */ |
| 24 {"812500", B921600, -1}, | 24 {"812500", B921600, -1, 1000}, |
| 25 {"406250", B460800, -1}, | 25 {"406250", B460800, -1, 500}, |
| 26 {"203125", B230400, -1}, | 26 {"203125", B230400, -1, 250}, |
| 27 /* table search terminator */ | 27 /* table search terminator */ |
| 28 {NULL, B0, -1}, | 28 {NULL, B0, -1}, |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 struct baudrate * | 31 struct baudrate * |
