[Armadeus-commitlog] armadeus branch, master, updated. armadeus-6.0-377-g2ed4ae1
Brought to you by:
sszy
|
From: Julien B a. A. <ar...@us...> - 2018-02-10 16:34:57
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, master has been updated
via 2ed4ae18574a472e46c439b826152d104a9dcc84 (commit)
from 3da00d929c908e840455df03f7daabe1b5524a7c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 2ed4ae18574a472e46c439b826152d104a9dcc84
Author: Julien BOIBESSOT <jul...@ar...>
Date: Sat Feb 10 17:34:33 2018 +0100
[TEST] Add a new script to display i.MX6UL ADC values
-----------------------------------------------------------------------
Summary of changes:
target/test/install.sh | 1 +
target/test/scan_adc_imx6ul.sh | 7 +++++++
2 files changed, 8 insertions(+)
create mode 100755 target/test/scan_adc_imx6ul.sh
diff --git a/target/test/install.sh b/target/test/install.sh
index 0f17239..6dba3e9 100755
--- a/target/test/install.sh
+++ b/target/test/install.sh
@@ -20,6 +20,7 @@ mkdir -p $TESTSUITE_TARGET_DIR/data/images
#
install $THIS_DIR/test_*.sh $TESTSUITE_TARGET_DIR/
install $THIS_DIR/dhcp.sh $TESTSUITE_TARGET_DIR/
+install $THIS_DIR/scan_adc_imx6ul.sh $TESTSUITE_TARGET_DIR/
install $THIS_DIR/mmc/*.sh $TESTSUITE_TARGET_DIR/
# find $(ARMADEUS-TESTSUITE_DIR) -name "*.sh" -exec install -D {} $(ARMADEUS-TESTSUITE_TARGET_DIR) \;
cp -d $THIS_DIR/packages/*.sh $TESTSUITE_TARGET_DIR/packages
diff --git a/target/test/scan_adc_imx6ul.sh b/target/test/scan_adc_imx6ul.sh
new file mode 100755
index 0000000..3d38859
--- /dev/null
+++ b/target/test/scan_adc_imx6ul.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+for channel in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do
+ value=`cat /sys/bus/iio/devices/iio\:device0/in_voltage${channel}_raw`
+ value=$((value*3300/4096))
+ echo "ADC1_IN${channel} =" ${value} "mV"
+done
hooks/post-receive
--
armadeus
|