diff options
-rw-r--r-- | src/tty.c | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -174,6 +174,18 @@ speed_t_to_baud (speed_t s) case B230400: return 230400; #endif +#ifdef B1152000 + case B1152000: + return 1152000; +#endif +#ifdef B1500000 + case B1500000: + return 1500000; +#endif +#ifdef B4000000 + case B4000000: + return 4000000; +#endif } return -1; @@ -260,6 +272,18 @@ baud_to_speed_t (int baud) case 230400: return B230400; #endif +#ifdef B1152000 + case 1152000: + return B1152000; +#endif +#ifdef B1500000 + case 1500000: + return B1500000; +#endif +#ifdef B4000000 + case 4000000: + return B4000000; +#endif } return -1; } |