Home | History | Annotate | Download | only in gpio

Lines Matching refs:nr

7 	active_low_sysfs=`cat $GPIO_SYSFS/gpio$nr/active_low`
8 val_sysfs=`cat $GPIO_SYSFS/gpio$nr/value`
9 dir_sysfs=`cat $GPIO_SYSFS/gpio$nr/direction`
11 gpio_this_debugfs=`cat $GPIO_DEBUGFS |grep "gpio-$nr" | sed "s/(.*)//g"`
38 nr=$1
43 echo $direction > $GPIO_SYSFS/gpio$nr/direction
44 echo $active_low > $GPIO_SYSFS/gpio$nr/active_low
46 echo $value > $GPIO_SYSFS/gpio$nr/value
48 is_consistent $nr
53 nr=$1
55 echo -n "test pin<$nr>"
57 echo $nr > $GPIO_SYSFS/export 2>/dev/null
60 echo "test GPIO pin $nr failed"
65 is_consistent $nr
68 test_pin_logic $nr out 1 1
69 test_pin_logic $nr out 1 0
70 test_pin_logic $nr out 0 1
71 test_pin_logic $nr out 0 0
74 test_pin_logic $nr in 1 1
75 test_pin_logic $nr out 1 0
76 test_pin_logic $nr low 0 1
77 test_pin_logic $nr high 0 0
79 echo $nr > $GPIO_SYSFS/unexport
86 nr=$1
88 echo $nr > $GPIO_SYSFS/export 2>/dev/null
91 echo "test invalid pin $nr successful"
93 echo "test invalid pin $nr failed"
94 echo $nr > $GPIO_SYSFS/unexport 2>/dev/null