1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-22 03:34:53 +08:00

Support 500kbps serial ports. (#167)

This commit is contained in:
Mike Purvis 2018-01-09 10:22:43 -05:00 committed by William Woodall
parent 827c4a784d
commit d3713af096
2 changed files with 4 additions and 1 deletions

View File

@ -488,7 +488,7 @@ public:
* 110, 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 56000,
* 57600, 115200
* Some other baudrates that are supported by some comports:
* 128000, 153600, 230400, 256000, 460800, 921600
* 128000, 153600, 230400, 256000, 460800, 500000, 921600
*
* \param baudrate An integer that sets the baud rate for the serial port.
*

View File

@ -269,6 +269,9 @@ Serial::SerialImpl::reconfigurePort ()
#ifdef B460800
case 460800: baud = B460800; break;
#endif
#ifdef B500000
case 500000: baud = B500000; break;
#endif
#ifdef B576000
case 576000: baud = B576000; break;
#endif