[Armadeus-commitlog] armadeus branch, master, updated. armadeus-5.0-73-gdef71f1
Brought to you by:
sszy
|
From: jorasse <jo...@us...> - 2012-10-08 12:39:12
|
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 def71f177c47b880986104506a5db6ad56adf5a8 (commit)
from 1d49681bf7a89cfff62139808d1a10b01360069d (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 def71f177c47b880986104506a5db6ad56adf5a8
Author: Eric Jarrige <eri...@ar...>
Date: Mon Oct 8 14:42:22 2012 +0200
[TEST] apf28: update BSP testsuite
-----------------------------------------------------------------------
Summary of changes:
target/test/test_adc.sh | 17 +++++++++++++++++
target/test/test_gpio.sh | 15 ++++++++++++---
2 files changed, 29 insertions(+), 3 deletions(-)
diff --git a/target/test/test_adc.sh b/target/test/test_adc.sh
index 495be82..fd7e378 100755
--- a/target/test/test_adc.sh
+++ b/target/test/test_adc.sh
@@ -27,6 +27,8 @@ test_setup()
elif [ "$1" == "APF51" ]; then
modprobe hwmon
modprobe as1531
+ elif [ "$1" == "APF28" ]; then
+ ask_user "Connect (jumper) pin 38 (LRADC0) and 40 (GND) of the connector j10, then press ENTER"
else
echo "Platform not supported by this test"
fi
@@ -72,6 +74,19 @@ test_running_as1531()
return 0
}
+test_running_lradc()
+{
+ VALUE=`cat /sys/class/hwmon/hwmon0/device/in0_input`
+ if [ "$VALUE" -gt 15 ]; then
+ exit_failed
+ fi
+ VALUE=`cat /sys/class/hwmon/hwmon0/device/in1_input`
+ if [ "$VALUE" -lt 16 ]; then
+ exit_failed
+ fi
+ return 0
+}
+
test_running()
{
if [ "$1" == "APF9328" ]; then
@@ -80,6 +95,8 @@ test_running()
test_running_max1027
elif [ "$1" == "APF51" ]; then
test_running_as1531
+ elif [ "$1" == "APF28" ]; then
+ test_running_lradc
else
echo "Platform not supported by this test"
fi
diff --git a/target/test/test_gpio.sh b/target/test/test_gpio.sh
index 9c4c3bf..567d9ef 100755
--- a/target/test/test_gpio.sh
+++ b/target/test/test_gpio.sh
@@ -22,7 +22,7 @@ load_module()
echo "Module failed to load"
exit_failed
fi
- elif [ "$1" == "APF51" ]; then
+ elif [ "$1" == "APF51" ] || [ "$1" == "APF28" ]; then
echo
else
echo "Platform not supported by this test"
@@ -34,7 +34,7 @@ unload_module()
{
if [ "$1" == "APF9328" ] || [ "$1" == "APF27" ]; then
rmmod gpio
- elif [ "$1" == "APF51" ]; then
+ elif [ "$1" == "APF51" ] || [ "$1" == "APF28" ]; then
echo
else
echo "Platform not supported by this test"
@@ -88,6 +88,15 @@ blink_led()
elif [ "$1" == "APF51" ]; then
LED_NAME="i.MX"
blink_led_gpiolib 2
+ elif [ "$1" == "APF28" ]; then
+ echo gpio > /sys/class/leds/apfdev\:green\:user/trigger
+ echo 1 > /sys/class/leds/apfdev\:green\:user/gpio
+ for i in `seq 0 5`; do
+ echo 0 > /sys/class/leds/apfdev\:green\:user/brightness
+ usleep 500000
+ cat /sys/class/leds/apfdev\:green\:user/max_brightness > /sys/class/leds/apfdev\:green\:user/brightness
+ usleep 500000
+ done
else
echo "Platform not supported by this test"
fi
@@ -105,7 +114,7 @@ check_button()
if [ "$?" != 0 ]; then
exit_failed
fi
- elif [ "$1" == "APF51" ]; then
+ elif [ "$1" == "APF51" ] || [ "$1" == "APF28" ]; then
echo "TBDL"
else
echo "Platform not supported by this test"
hooks/post-receive
--
armadeus
|