]> jspc29.x-matter.uni-frankfurt.de Git - hadesdaq.git/commitdiff
status, mt
authorhadaq@countinghouse <hadaq@CountingHouse>
Thu, 28 Aug 2014 15:27:54 +0000 (17:27 +0200)
committerhadaq@countinghouse <hadaq@CountingHouse>
Thu, 28 Aug 2014 15:27:54 +0000 (17:27 +0200)
pion/config/nxyter/disable_channel.sh [deleted file]

diff --git a/pion/config/nxyter/disable_channel.sh b/pion/config/nxyter/disable_channel.sh
deleted file mode 100755 (executable)
index aa358d4..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-
-export PATH=/home/rich/TRB/trbsoft/trbnettools/binlocal:${PATH}
-
-if [ -z "$1" ]
-then
-       echo "Usage: $0 ChannelID"
-       exit 0;
-fi
-
-# first disable test_trigger_ mode to allow reading
-REG20=$(trb_i2c r 0x3800 0x08 0x20 | awk '{print $2}')
-trb_i2c w 0x3800 0x08 0x20 0x00
-
-REGISTER=$(($1/8))
-MASK=$((2**($1-8*$REGISTER)))
-
-echo "Register: $REGISTER Mask: $MASK"
-
-CURRENT=$(trb_i2c r 0x3800 0x08 $REGISTER | awk '{print $2}' | base)
-NEW=$(($CURRENT|$MASK))
-
-echo "$CURRENT -> $NEW"
-trb_i2c w 0x3800 0x08 $REGISTER $NEW
-
-# Restore Register 20
-trb_i2c w 0x3800 0x08 0x20 $REG20