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:
parent
827c4a784d
commit
d3713af096
@ -488,7 +488,7 @@ public:
|
|||||||
* 110, 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 56000,
|
* 110, 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 56000,
|
||||||
* 57600, 115200
|
* 57600, 115200
|
||||||
* Some other baudrates that are supported by some comports:
|
* 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.
|
* \param baudrate An integer that sets the baud rate for the serial port.
|
||||||
*
|
*
|
||||||
|
|||||||
@ -269,6 +269,9 @@ Serial::SerialImpl::reconfigurePort ()
|
|||||||
#ifdef B460800
|
#ifdef B460800
|
||||||
case 460800: baud = B460800; break;
|
case 460800: baud = B460800; break;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef B500000
|
||||||
|
case 500000: baud = B500000; break;
|
||||||
|
#endif
|
||||||
#ifdef B576000
|
#ifdef B576000
|
||||||
case 576000: baud = B576000; break;
|
case 576000: baud = B576000; break;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user