aboutsummaryrefslogtreecommitdiffstats
path: root/sercp.c
diff options
context:
space:
mode:
authorPavel Vymetálek <pavel@vym.cz>2020-04-03 17:18:06 +0200
committerPavel Vymetálek <pavel@vym.cz>2020-04-03 17:18:06 +0200
commit3aae9607fcf3127a044d1e30fa2a8904f81f6b7b (patch)
tree7fd84123d66cb00d4568337e6a8f36bb7052a79e /sercp.c
parentda3ab5ca185ebdf80a84893b2033c62a0aed8fd2 (diff)
downloadsercp-pc-3aae9607fcf3127a044d1e30fa2a8904f81f6b7b.tar.gz
Serial port flags for BSD or __APPLE__
Diffstat (limited to 'sercp.c')
-rw-r--r--sercp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sercp.c b/sercp.c
index 858c8ea..234a3fb 100644
--- a/sercp.c
+++ b/sercp.c
@@ -707,7 +707,7 @@ int OpenUart() {
}
cfmakeraw(&newtio);
cfsetspeed(&newtio, baud_rate);
-#ifdef __APPLE__
+#if defined __APPLE__ || defined BSD
newtio.c_cflag = CS8 | CLOCAL | CREAD | CCTS_OFLOW | CRTS_IFLOW; // CSTOPB - two stop bits NOT
#else
newtio.c_cflag = CS8 | CLOCAL | CREAD | CRTSCTS; // CSTOPB - two stop bits NOT