diff options
author | Jakob Odersky <jodersky@gmail.com> | 2013-07-11 16:44:18 +0200 |
---|---|---|
committer | Jakob Odersky <jodersky@gmail.com> | 2013-07-11 16:44:18 +0200 |
commit | 29dc8ef1746a35ad386f3e7681dcbf1bf36087e8 (patch) | |
tree | 75d4af3f1be6a2a01d85f9a8b6d41a950489faad | |
parent | 1b6b235e6fc31481b6f672e423e6779b0db14329 (diff) | |
download | akka-serial-29dc8ef1746a35ad386f3e7681dcbf1bf36087e8.tar.gz akka-serial-29dc8ef1746a35ad386f3e7681dcbf1bf36087e8.tar.bz2 akka-serial-29dc8ef1746a35ad386f3e7681dcbf1bf36087e8.zip |
change termio initialization to makeraw()-like settings
-rw-r--r-- | flow-binaries/linux/amd64/libflow.so.2.1 | bin | 0 -> 17830 bytes | |||
-rw-r--r-- | flow-native/unix/src/flow.c | 9 | ||||
-rw-r--r-- | project/Build.scala | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/flow-binaries/linux/amd64/libflow.so.2.1 b/flow-binaries/linux/amd64/libflow.so.2.1 Binary files differnew file mode 100644 index 0000000..509e468 --- /dev/null +++ b/flow-binaries/linux/amd64/libflow.so.2.1 diff --git a/flow-native/unix/src/flow.c b/flow-native/unix/src/flow.c index 07e1c9f..1c127b2 100644 --- a/flow-native/unix/src/flow.c +++ b/flow-native/unix/src/flow.c @@ -84,10 +84,11 @@ int serial_open( /* configure new port settings */ struct termios newtio; - newtio.c_cflag = 0; - newtio.c_oflag = 0; - newtio.c_iflag = 0; - newtio.c_lflag = 0; + /* following calls correspond to makeraw() */ + newtio.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON); + newtio.c_oflag &= ~OPOST; + newtio.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN); + newtio.c_cflag &= ~(CSIZE | PARENB); /* set speed */ speed_t bd; diff --git a/project/Build.scala b/project/Build.scala index c4b301f..b7e0da1 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -106,7 +106,7 @@ val binaries: Seq[(File, File)] = getLatestBinaries(binDir, BinaryMajorVersion) //--- native unix-like settings ---------------------------------------- - val UnixBinaryMinorVersion = 0 + val UnixBinaryMinorVersion = 1 lazy val unixNativeSettings: Seq[Setting[_]] = commonNativeSettings ++ Seq( flags in Native := Seq("-fPIC", "-O2") |