Gpio Test - Advantech RSB-6410 User Manual

Nxp arm cortex-a9 i.mx6 dual/quad mini-itx motherboard
Table of Contents

Advertisement

3.5

GPIO Test

RSB-6410 GPIO default setting
RSB-6410
GPIO0
GPIO1
GPIO2
GPIO3
GPIO4
GPIO5
GPIO6
GPIO7
GPIO8
GPIO9
GPIO10
GPIO11
GPIO12
GPIO13
GPIO14
GPIO15
GPIO16
GPIO17
GPIO18
GPIO19
# cd /sys/class/gpio
You can use "ls" to list all GPIO devices, and you should also see GPIO ports in
above table.
Example of testing GPIO
Set gpio2 GPI(in)
# echo in > ./gpio2/direction
# cat ./gpio2/direction
in
Set gpio12 GPO (out)
# echo out > ./gpio12/direction
# cat ./gpio12/direction
out
Set gpio12 GPO value "1"
# echo 1 > ./gpio12/value
RSB-6410 Android User Manual
Android OS
/sys/class/gpio/
gpio2
gpio3
gpio4
gpio 5
gpio6
gpio7
gpio8
gpio9
gpio10
gpio11
gpio12
gpio13
gpio14
gpio15
gpio16
gpio17
gpio18
gpio19
gpio20
gpio21
38
Default direction
in
in
in
in
in
in
in
in
in
in
out
out
out
out
out
out
out
out
out
out

Advertisement

Table of Contents
loading

Table of Contents