Lines Matching refs:nr
6 active_low_sysfs=`cat $GPIO_SYSFS/gpio$nr/active_low`
7 val_sysfs=`cat $GPIO_SYSFS/gpio$nr/value`
8 dir_sysfs=`cat $GPIO_SYSFS/gpio$nr/direction`
10 gpio_this_debugfs=`cat $GPIO_DEBUGFS |grep "gpio-$nr" | sed "s/(.*)//g"`
37 nr=$1
42 echo $direction > $GPIO_SYSFS/gpio$nr/direction
43 echo $active_low > $GPIO_SYSFS/gpio$nr/active_low
45 echo $value > $GPIO_SYSFS/gpio$nr/value
47 is_consistent $nr
52 nr=$1
54 echo -n "test pin<$nr>"
56 echo $nr > $GPIO_SYSFS/export 2>/dev/null
59 echo "test GPIO pin $nr failed"
64 is_consistent $nr
67 test_pin_logic $nr out 1 1
68 test_pin_logic $nr out 1 0
69 test_pin_logic $nr out 0 1
70 test_pin_logic $nr out 0 0
73 test_pin_logic $nr in 1 1
74 test_pin_logic $nr out 1 0
75 test_pin_logic $nr low 0 1
76 test_pin_logic $nr high 0 0
78 echo $nr > $GPIO_SYSFS/unexport
85 nr=$1
87 echo $nr > $GPIO_SYSFS/export 2>/dev/null
90 echo "test invalid pin $nr successful"
92 echo "test invalid pin $nr failed"
93 echo $nr > $GPIO_SYSFS/unexport 2>/dev/null