add B921600
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
This commit is contained in:
parent
a4e4a65484
commit
e707a3000b
@ -51,6 +51,9 @@ static const struct speed_map speeds[] = {
|
|||||||
#ifdef B460800
|
#ifdef B460800
|
||||||
{B460800, 460800/256 + 0x8000U},
|
{B460800, 460800/256 + 0x8000U},
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef B921600
|
||||||
|
{B921600, 921600/256 + 0x8000U},
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
enum { NUM_SPEEDS = ARRAY_SIZE(speeds) };
|
enum { NUM_SPEEDS = ARRAY_SIZE(speeds) };
|
||||||
@ -93,7 +96,7 @@ int main(void)
|
|||||||
unsigned long v;
|
unsigned long v;
|
||||||
speed_t s;
|
speed_t s;
|
||||||
|
|
||||||
for (v = 0 ; v < 500000; v++) {
|
for (v = 0 ; v < 1000000; v++) {
|
||||||
s = tty_value_to_baud(v);
|
s = tty_value_to_baud(v);
|
||||||
if (s == (speed_t) -1) {
|
if (s == (speed_t) -1) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user