beautypg.com

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

Page 97

background image

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

I2C

on page 100

.

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

Gets the direction, od and level information for the specified pin

gpio set dir

Sets the direction of the specified pin

gpio set dir

    Sets the od of the specified pin

    gpio set dir

    Sets the level of the specified pin

    -

    0, 1, 2, 3, 4, 5, 6, 7, 19, 20, 23, 24

    -

    0 for input

    1 for output

    -

    0 for output

    1 for open drain

    -

    0 for low level

    1 for high level