Commit 1e51e373d84a1b1138e8187eeb374931cc57d805

Con Kolivas 2012-07-29T03:48:19

Merge pull request #275 from zefir-k/master Add support for 57.6 kBd serial communication (required for Cairnsmore1 FPGA board)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/fpgautils.c b/fpgautils.c
index 07b3fe3..5f48874 100644
--- a/fpgautils.c
+++ b/fpgautils.c
@@ -211,6 +211,10 @@ serial_open(const char*devpath, unsigned long baud, signed short timeout, bool p
 	switch (baud) {
 	case 0:
 		break;
+	case 57600:
+		cfsetispeed( &my_termios, B57600 );
+		cfsetospeed( &my_termios, B57600 );
+		break;
 	case 115200:
 		cfsetispeed( &my_termios, B115200 );
 		cfsetospeed( &my_termios, B115200 );