FreeCalypso > hg > freecalypso-tools
comparison libserial-newlnx/baudtab.c @ 651:6bb41b4d39ed
fc-xram number of records per batch made baudrate-dependent
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 02 Mar 2020 03:39:46 +0000 |
parents | ab8410d06ca7 |
children |
comparison
equal
deleted
inserted
replaced
650:bf840c984113 | 651:6bb41b4d39ed |
---|---|
10 #include <asm/termbits.h> | 10 #include <asm/termbits.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, 0}, | 15 {"115200", B115200, 0, 0, 100}, |
16 {"57600", B57600, 0, 1}, | 16 {"57600", B57600, 0, 1, 100}, |
17 {"38400", B38400, 0, 2}, | 17 {"38400", B38400, 0, 2, 100}, |
18 {"19200", B19200, 0, 4}, | 18 {"19200", B19200, 0, 4, 50}, |
19 /* Non-standard high baud rates */ | 19 /* Non-standard high baud rates */ |
20 {"812500", BOTHER, 812500, -1}, | 20 {"812500", BOTHER, 812500, -1, 1000}, |
21 {"406250", BOTHER, 406250, -1}, | 21 {"406250", BOTHER, 406250, -1, 500}, |
22 {"203125", BOTHER, 203125, -1}, | 22 {"203125", BOTHER, 203125, -1, 250}, |
23 /* table search terminator */ | 23 /* table search terminator */ |
24 {NULL, B0, 0, -1}, | 24 {NULL, B0, 0, -1, 0}, |
25 }; | 25 }; |
26 | 26 |
27 struct baudrate * | 27 struct baudrate * |
28 find_baudrate_by_name(srch_name) | 28 find_baudrate_by_name(srch_name) |
29 char *srch_name; | 29 char *srch_name; |