12 uart, Table 7-5, Gpio command usage – Artesyn COMX-P40x0 ENP2 Installation and Use (August 2014) User Manual
Page 97

BSP
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
97
The U-Boot provides several GPIO utility commands.
The parameters used in the GPIO utility commands are described below.
For the GPIO signals connected to the I2C expander, these are controlled via the "i2c" command
using the I2C address = 0x18. For more information, see
.
7.12 UART
There are a total of four universal asynchronous receiver/transmitters (UART) in the COMX-
P40x0, each with Tx and Rx signals routed to the COM-E connectors.
Table 7-5 GPIO Command Usage
Command
Description
gpio dump
Dumps the direction, od and level information for all pins
gpio get <pin>
Gets the direction, od and level information for the specified pin
gpio set dir <pin> <dir>
Sets the direction of the specified pin
gpio set dir <pin> <ol>
Sets the od of the specified pin
gpio set dir <pin> <lvl>
Sets the level of the specified pin
<pin>
-
0, 1, 2, 3, 4, 5, 6, 7, 19, 20, 23, 24
<dir>
-
0 for input
1 for output
<od>
-
0 for output
1 for open drain
<lvl>
-
0 for low level
1 for high level