From f1cbb2dd85702a1f16614f53ad3c19a4e2cf913f Mon Sep 17 00:00:00 2001 From: "hadaq@countinghouse" Date: Thu, 28 Aug 2014 17:28:26 +0200 Subject: [PATCH] status, mt --- pion/config/nxyter/enable_channel.sh | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100755 pion/config/nxyter/enable_channel.sh diff --git a/pion/config/nxyter/enable_channel.sh b/pion/config/nxyter/enable_channel.sh deleted file mode 100755 index 8f8fd5a..0000000 --- a/pion/config/nxyter/enable_channel.sh +++ /dev/null @@ -1,28 +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 - -- 2.43.0