ROM-7510 User Manual
32
You can use “ls” to list all GPIO devices, and you should also see GPIO ports in the
above table.
Example of a GPIO test procedure A:
Connect GPIO0 with GPIO4. Set GPIO0 GPO (out)
Set GPIO0 GPO value “1”
procedure B:
Set GPIO4 GPI (in)
in
Get GPIO4 GPI value
As you can see in the above procedure A and B tests, we set gpio0 as GPO and
GPIO4 as GPI. Once we send data out from GPIO0, it should be able to receive the
same data from GPIO4.
GPIO5
gpio68
in
GPIO6
gpio101
in
GPIO7
gpio69
in
# cd /sys/class/gpio
# echo 97 > export
# echo 218 > export
# echo 98 > export
# echo 219 > export
# echo 100 > export
# echo 68 > export
# echo 101 > export
# echo 69 > export
# echo out > ./gpio97/direction
# cat ./gpio97/direction
out
# echo 1 > ./gpio97/value
# echo in > ./gpio100/direction
# cat ./gpio100/direction
# cat ./gpio100/value
1
Содержание ROM-7510
Страница 1: ...User Manual ROM 7510 RISC based Qseven 2 0 Module with TI Sitara AM5728 ARM Cortex A15 Processor ...
Страница 6: ...ROM 7510 User Manual vi ...
Страница 13: ...5 ROM 7510 User Manual Chapter 1 General Introduction ...
Страница 14: ...ROM 7510 User Manual 6 ...
Страница 18: ...ROM 7510 User Manual 10 ...
Страница 19: ...Chapter 3 3 Pin Definitions This chapter details the Pin defini tions of ROM 7510 ...
Страница 35: ...27 ROM 7510 User Manual Chapter 4 System Recovery sleep sleep_sec return 0 ...
Страница 36: ...ROM 7510 User Manual 28 ...
Страница 37: ...Chapter 5 5 Software Functionality This chapter details the software programs on the ROM 7510 plat form ...
Страница 48: ...ROM 7510 User Manual 40 ...