mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-10 23:08:07 +00:00
fpgautils: add support for 57.6 kBd serial
This commit is contained in:
parent
458fbeb5b4
commit
e8fb2bc1ba
@ -211,6 +211,10 @@ serial_open(const char*devpath, unsigned long baud, signed short timeout, bool p
|
|||||||
switch (baud) {
|
switch (baud) {
|
||||||
case 0:
|
case 0:
|
||||||
break;
|
break;
|
||||||
|
case 57600:
|
||||||
|
cfsetispeed( &my_termios, B57600 );
|
||||||
|
cfsetospeed( &my_termios, B57600 );
|
||||||
|
break;
|
||||||
case 115200:
|
case 115200:
|
||||||
cfsetispeed( &my_termios, B115200 );
|
cfsetispeed( &my_termios, B115200 );
|
||||||
cfsetospeed( &my_termios, B115200 );
|
cfsetospeed( &my_termios, B115200 );
|
||||||
|
Loading…
Reference in New Issue
Block a user