Linux BSP v1.
Linux BSP v1.
Linux BSP v1.
Linux BSP v1.2
2
2
2....0
0
0
0 Development
Development
Development
Development Guide
Guide
Guide
Guide
28
5.6.3.
Test GPIO input and output
5.6.3.1.
5.6.3.1.
5.6.3.1.
5.6.3.1.
Test GPIO
Test GPIO
Test GPIO
Test GPIO connection
connection
connection
connection
In this test, GPIO 20-23 are connected to GPIO 24-27. Once the state of GPIO
20–23 are changed, GPIO 24–27 also turns to be the same situation, and vice
versa. In other words, this phenomenon means that the influence you do to
one part may change another side.
Besides, before everything starts, you had batter clean the relative registers.
# devmem2 0xd81100b0 b 0x0
# devmem2 0xd81100b0 b 0x0
# devmem2 0xd81100b0 b 0x0
# devmem2 0xd81100b0 b 0x0
# devmem2 0xd81100b1 b 0x0
# devmem2 0xd81100b1 b 0x0
# devmem2 0xd81100b1 b 0x0
# devmem2 0xd81100b1 b 0x0
# devmem2 0xd81100f0 b 0x0
# devmem2 0xd81100f0 b 0x0
# devmem2 0xd81100f0 b 0x0
# devmem2 0xd81100f0 b 0x0
# devmem2 0xd81100f1 b 0x0
# devmem2 0xd81100f1 b 0x0
# devmem2 0xd81100f1 b 0x0
# devmem2 0xd81100f1 b 0x0
5.6.3.2.
5.6.3.2.
5.6.3.2.
5.6.3.2.
Set GPIO 20
Set GPIO 20
Set GPIO 20
Set GPIO 20----23 to change GPIO 24
23 to change GPIO 24
23 to change GPIO 24
23 to change GPIO 24----27
27
27
27
a.
The first step is to examine the value of GPIO 24-27 input data register
value.
# devmem2 0xd8110031 b
# devmem2 0xd8110031 b
# devmem2 0xd8110031 b
# devmem2 0xd8110031 b
/* Read GPIO 24-27 input Registers*/