summaryrefslogtreecommitdiff
path: root/tool/setup-rs232
diff options
context:
space:
mode:
Diffstat (limited to 'tool/setup-rs232')
-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