diff options
Diffstat (limited to 'io-tool')
-rwxr-xr-x | io-tool/mts-io-sysfs | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/io-tool/mts-io-sysfs b/io-tool/mts-io-sysfs index 911dce1..4afdcb1 100755 --- a/io-tool/mts-io-sysfs +++ b/io-tool/mts-io-sysfs @@ -66,17 +66,22 @@ usage() { printf "Usage: ${PROGRAM} [ OPTIONS ] OBJECT [--] [ ARGUMENTS ]\n" >&${out} printf "where OBJECT := {\n" >&${out} printf " show SHOW-NAME |\n" >&${out} - printf " store STORE-NAME { value } |\n" >&${out} + printf " store STORE-NAME |\n" >&${out} printf " reset-monitor-trap [short-cmd cmd signame] [long-cmd cmd signame]\n" >&${out} printf " }\n" >&${out} printf "\n" >&${out} printf " SHOW-NAME := {\n" >&${out} printf " board-temperature |\n" >&${out} + printf " radio-reset |\n" >&${out} printf " eth0-enabled |\n" >&${out} printf " extserial-dcd |\n" >&${out} printf " extserial-ri |\n" >&${out} printf " extserial-dsr |\n" >&${out} printf " extserial-dtr |\n" >&${out} +if [ "${MTS_IO_CONTROLS_STATUS_LED}" = "true" ]; then + printf " led-status |\n" >&${out} + printf " led-sdk-a |\n" >&${out} +fi printf " led-cd |\n" >&${out} printf " led-sdk-b |\n" >&${out} printf " led-sig1 |\n" >&${out} @@ -85,23 +90,28 @@ usage() { printf " led-sdk-d |\n" >&${out} printf " led-sig3 |\n" >&${out} printf " led-sdk-e |\n" >&${out} -if [ "${MTS_IO_CONTROLS_STATUS_LED}" = "true" ]; then - printf " led-status |\n" >&${out} - printf " led-sdk-a |\n" >&${out} -fi + printf " led-dtr |\n" >&${out} + printf " led-sdk-f |\n" >&${out} if [ "${MTS_IO_CONTROLS_LS_LED}" = "true" ]; then printf " led-ls |\n" >&${out} fi - printf " radio-reset |\n" >&${out} + printf " din{0-7} |\n" >&${out} + printf " dout{0-7} |\n" >&${out} + printf " adc{0-3} |\n" >&${out} printf " reset |\n" >&${out} printf " reset-monitor\n" >&${out} printf " }\n" >&${out} printf "\n" >&${out} printf " STORE-NAME := {\n" >&${out} + printf " radio-reset { 0 } |\n" >&${out} printf " eth0-enabled BOOLEAN |\n" >&${out} printf " extserial-dcd BOOLEAN |\n" >&${out} printf " extserial-ri BOOLEAN |\n" >&${out} printf " extserial-dsr BOOLEAN |\n" >&${out} +if [ "${MTS_IO_CONTROLS_STATUS_LED}" = "true" ]; then + printf " led-status LED-VALUE |\n" >&${out} + printf " led-sdk-a LED-VALUE |\n" >&${out} +fi printf " led-cd BOOLEAN |\n" >&${out} printf " led-sdk-b BOOLEAN |\n" >&${out} printf " led-sig1 BOOLEAN |\n" >&${out} @@ -110,14 +120,12 @@ fi printf " led-sdk-d BOOLEAN |\n" >&${out} printf " led-sig3 BOOLEAN |\n" >&${out} printf " led-sdk-e BOOLEAN |\n" >&${out} -if [ "${MTS_IO_CONTROLS_STATUS_LED}" = "true" ]; then - printf " led-status LED-VALUE |\n" >&${out} - printf " led-sdk-a LED-VALUE |\n" >&${out} -fi + printf " led-dtr BOOLEAN |\n" >&${out} + printf " led-sdk-f BOOLEAN |\n" >&${out} if [ "${MTS_IO_CONTROLS_LS_LED}" = "true" ]; then printf " led-ls BOOLEAN |\n" >&${out} fi - printf " radio-reset { 0 } |\n" >&${out} + printf " dout{0-7} BOOLEAN |\n" >&${out} printf " reset-monitor { pid short-signal long-signal }\n" >&${out} printf " }\n" >&${out} printf "\n" >&${out} |