Test Tools; Gpio - Advantech UBC-222 User Manual

Table of Contents

Advertisement

4.
Just press Enter when the following question shows up:
5.
When the following message shows up it means the SDK is ready.
3.1.3.2
Setting up a cross compiling environment
1.
SDK has been set up. (ref. 2.2)
2.
Perform the following command in the terminal console
$ source /opt/clanton-tiny/${POKY}/environment-setup-i586-poky-linux-uclibc
3.2

Test tools

All test tools must be verified on UBC-222, please prepare the required test fixtures
before verifying each specified I/O. If you have any problems getting the test fixture,
please contact your Advantech contact window for help.
3.2.1

GPIO

# cat /sys/kernel/debug/gpio
# for N in 0 1 2 3; do echo $N > /sys/class/gpio/export 2>/dev/
null; done
# for N in 0 1; do echo out>/sys/class/gpio/gpio${N}/direction;
done
# for N in 2 3; do echo in > /sys/class/gpio/gpio${N}/direc-
tion; done
# grep "" /sys/class/gpio/gpio{0..3}/direction
# cat /sys/kernel/debug/gpio
UBC-222 User Manual
20

Advertisement

Table of Contents
loading

Table of Contents