RSB-3720 User Manual
42
3.11
GPIO
3.11.1
GPIO Pins
3.11.2
GPIO Loopback Test (Using GPIO2 and GPIO4 as examples)
Step 1: Connect GPIO2 and GPIO4
Step 2: Export GPIO interface
Step 3: Set GPIO direction
Step 4: Read value and set output value than check
Table 3.1: UIO Extension 1 (UIO1)
Pin
Numbers
GPIO2
501
GPIO4
503
Table 3.2: UIO Extension 2 (UIO2)
Pin
Numbers
GPIO5
504
GPIO6
505
GPIO7
506
GPIO8
507
GPIO9
508
GPIO10
509
GPIO11
139
GPIO12
138
root@imx8mprsb3720a1:~# echo 501 > /sys/class/gpio/export
root@imx8mprsb3720a1:~# echo 503 > /sys/class/gpio/export
root@imx8mprsb3720a1:~# echo out > /sys/class/gpio/gpio1/direction
root@imx8mprsb3720a1:~# echo in > /sys/class/gpio/gpio2/direction
root@imx8mprsb3720a1:~# cat /sys/class/gpio/gpio2/value
0
root@imx8mprsb3720a1:~# echo 1 > /sys/class/gpio/gpio1/value
root@imx8mprsb3720a1:~# cat /sys/class/gpio/gpio2/value
1
Summary of Contents for RSB-3720
Page 2: ...User Manual RSB 3720 NXP i MX8M Plus Cortex A53 2 5 SBC with UIO40 Express...
Page 7: ...RSB 3720 User Manual vi...
Page 11: ...RSB 3720 User Manual x...
Page 15: ...RSB 3720 User Manual 4 1 1 5 Block Diagram...
Page 17: ...RSB 3720 User Manual 6 2 1 Jumper and Connector Locations...
Page 42: ...Chapter 3 3 Software Functionality This chapter details software functions on the RSB 3720...
Page 61: ...RSB 3720 User Manual 50...
Page 62: ...Chapter 4 4 Embedded O S This chapter details instructions for building Linux systems...
Page 74: ...63 RSB 3720 User Manual Chapter 6 Advantech Services...