Desktop/xinu_mips-1.0.2.tar/xinu_mips-1.0.2/shell/xsh_gpiostat.c File Reference

#include <kernel.h>
#include <gpio.h>
#include <stdio.h>
#include <string.h>

Include dependency graph for xsh_gpiostat.c:

Go to the source code of this file.

Functions

command xsh_gpiostat (ushort stdin, ushort stdout, ushort stderr, ushort nargs, char *args[])


Detailed Description

xsh_gpiostat

Id
xsh_gpiostat.c 226 2007-07-12 01:18:27Z mschul

Definition in file xsh_gpiostat.c.


Function Documentation

command xsh_gpiostat ( ushort  stdin,
ushort  stdout,
ushort  stderr,
ushort  nargs,
char *  args[] 
)

Shell command (gpiostat) provides information about the current status of the GPIO pins.

Parameters:
stdin descriptor of input device
stdout descriptor of output device
stderr descriptor of error device
nargs number of arguments in args array
args array of arguments
Returns:
OK for success, SYSERR for syntax error

Definition at line 24 of file xsh_gpiostat.c.

References gpio_csreg::control, gpio_csreg::enable, fprintf(), GPIO_BASE, GPIO_PIN_COUNT, gpio_csreg::input, OK, gpio_csreg::output, strncmp(), and SYSERR.


Generated on Thu Oct 9 22:34:53 2008 for xinu by  doxygen 1.5.5