beautypg.com

10 uart, Table 7-4, Gpio command usage – Artesyn COMX-P4080 Installation and Use (August 2014) User Manual

Page 95: Bsp operations

background image

BSP Operations

COMX-P4080 COM Express Module Installation and Use (6806800L20C)

95

For more information, see

Chapter 4, GPIO, on page 69

.

The U-Boot provides several GPIO utility commands.

The parameters used in the GPIO utility commands are described below.

7.10 UART

There are a total of four universal asynchronous receiver/transmitters (UART) in the COMX-
P4080, each with Tx and Rx signals routed to the COM-E connectors. For more details, see

UART

on page 66

.

Table 7-4 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, 18, 19, 20, 23, 24, 26

    -

    0 for input

    1 for output

    -

    0 for output

    1 for open drain

    -

    0 for low level

    1 for high level