diff options
author | James Maki <jmaki@multitech.com> | 2010-05-03 17:57:14 -0500 |
---|---|---|
committer | James Maki <jmaki@multitech.com> | 2010-05-03 17:57:14 -0500 |
commit | 1e10e510b23bc04d949b7180db0d513317d0a520 (patch) | |
tree | b8a8456dde64bd5ad5a012d8600ba2d4a16f46b2 /io-tool | |
parent | 29fb8a9b088bf7d4dfc33bfd6c295c7f4d1897c9 (diff) | |
download | cdp-io-controller-1e10e510b23bc04d949b7180db0d513317d0a520.tar.gz cdp-io-controller-1e10e510b23bc04d949b7180db0d513317d0a520.tar.bz2 cdp-io-controller-1e10e510b23bc04d949b7180db0d513317d0a520.zip |
register devices with spi controller
Diffstat (limited to 'io-tool')
-rw-r--r-- | io-tool/mts-io-sysfs-inc.sh | 2 | ||||
-rwxr-xr-x | io-tool/sysfs-tests | 16 |
2 files changed, 12 insertions, 6 deletions
diff --git a/io-tool/mts-io-sysfs-inc.sh b/io-tool/mts-io-sysfs-inc.sh index 7c24353..c4a48db 100644 --- a/io-tool/mts-io-sysfs-inc.sh +++ b/io-tool/mts-io-sysfs-inc.sh @@ -26,7 +26,7 @@ VERBOSE=false PLATFORM_NAME=mtcdp SYSFS_PLATFORM_DIR=/sys/devices/platform/${PLATFORM_NAME} -MTS_IO_CONTROLS_STATUS_LED=true +MTS_IO_CONTROLS_STATUS_LED=false MTS_IO_CONTROLS_LS_LED=false LEDS_GPIO_DIR=/sys/devices/platform/leds-gpio/leds diff --git a/io-tool/sysfs-tests b/io-tool/sysfs-tests index cb65c57..7b07955 100755 --- a/io-tool/sysfs-tests +++ b/io-tool/sysfs-tests @@ -83,11 +83,13 @@ show_assert_in_set() { for value in "$@"; do if [ "${value}" = "${actual_value}" ]; then - log_info "${name} is '${value}'" + log_info "${name} is '${actual_value}'" return fi done + log_info "${name} is '${actual_value}'" + exit 1 } @@ -100,6 +102,14 @@ modprobe mts-io sleep 2 +show_assert_in_set board-temperature {30..40} +store board-temperature 1000 +show_assert_in_set board-temperature {30..40} + +#for ((i = 0; i < 1000; i++)); do +# show_assert_in_set board-temperature {30..40} +#done + show_assert radio-reset 1 log_info "resetting radio..." store radio-reset 0 @@ -171,10 +181,6 @@ show_assert reset 0 store reset 1 show_assert reset 0 -show_assert_in_set board-temperature {30..40} -store board-temperature 1000 -show_assert_in_set board-temperature {30..40} - show_assert reset-monitor "-1 10 12" exit 0 |