summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorJulian Blake Kongslie2022-04-22 23:06:09 -0700
committerJulian Blake Kongslie2022-04-22 23:06:09 -0700
commit4c712088c0a11b8b962d4b866e7972eebf8eb33e (patch)
tree92e0d51e1a88e01ac48ce37e4099350b933bdbcb /tool
parentOversample RS232 RX uart. (diff)
downloadmultipdp8-4c712088c0a11b8b962d4b866e7972eebf8eb33e.tar.xz
Add a quick and dirty script to set expected RS232 terminal settings.
Diffstat (limited to 'tool')
-rwxr-xr-xtool/setup-rs23223
1 files changed, 23 insertions, 0 deletions
diff --git a/tool/setup-rs232 b/tool/setup-rs232
new file mode 100755
index 0000000..689d838
--- /dev/null
+++ b/tool/setup-rs232
@@ -0,0 +1,23 @@
1#!/bin/bash
2
3set -eux
4
5stty -F /dev/ttyUSB0 \
6 115200 \
7 -drain \
8 -clocal \
9 cread \
10 -crtscts \
11 cs8 \
12 cstopb \
13 -hup \
14 parenb \
15 -parodd \
16 -igncr \
17 inpck \
18 -istrip \
19 -ixany \
20 -ixoff \
21 -ixon \
22 -echo \
23 -icanon