chiark
/
gitweb
/
~ijackson
/
trains.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06bea47
)
cv programming works
author
ian
<ian>
Wed, 12 Jan 2005 01:05:58 +0000
(
01:05
+0000)
committer
ian
<ian>
Wed, 12 Jan 2005 01:05:58 +0000
(
01:05
+0000)
hostside/program-cv
[new file with mode: 0755]
patch
|
blob
diff --git a/hostside/program-cv
b/hostside/program-cv
new file mode 100755
(executable)
index 0000000..
cd6be20
--- /dev/null
+++ b/
hostside/program-cv
@@ -0,0
+1,10
@@
+#!/bin/sh
+# usage:
+# ./program-cv DECODER-ADDR CV VALUE -s/dev/ttyS0
+# where DECODER-ADDR, CV, VALUE are all decimal unless
+# prefixed by 0x or 0.
+set -e
+addr="$1"; shift
+cv="$1"; shift
+value="$1"; shift
+./hostside "$@" -i1000 -w10000 cvwrite "$addr" "$cv" "$value"