FreeCalypso > hg > freecalypso-tools
changeset 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 | 2d5d1ca58b2a |
children | a880f48d6ac0 |
files | libserial-orig/baudrate.h libserial-orig/baudtab.c |
diffstat | 2 files changed, 8 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/libserial-orig/baudrate.h Mon Mar 02 21:28:34 2020 +0000 +++ b/libserial-orig/baudrate.h Mon Mar 02 23:24:43 2020 +0000 @@ -4,4 +4,5 @@ char *name; int termios_code; int bootrom_code; + int xram_records; };
--- a/libserial-orig/baudtab.c Mon Mar 02 21:28:34 2020 +0000 +++ b/libserial-orig/baudtab.c Mon Mar 02 23:24:43 2020 +0000 @@ -12,18 +12,18 @@ struct baudrate baud_rate_table[] = { /* the first listed rate will be our default */ - {"115200", B115200, 0}, - {"57600", B57600, 1}, - {"38400", B38400, 2}, - {"19200", B19200, 4}, + {"115200", B115200, 0, 100}, + {"57600", B57600, 1, 100}, + {"38400", B38400, 2, 100}, + {"19200", B19200, 4, 50}, /* * Non-standard high baud rates remapped by CP2102 EEPROM programming * or by a hacky patch to the ftdi_sio Linux kernel driver to work * with FTDI adapters. */ - {"812500", B921600, -1}, - {"406250", B460800, -1}, - {"203125", B230400, -1}, + {"812500", B921600, -1, 1000}, + {"406250", B460800, -1, 500}, + {"203125", B230400, -1, 250}, /* table search terminator */ {NULL, B0, -1}, };