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

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

Include dependency graph for xsh_led.c:

Go to the source code of this file.

Functions

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


Detailed Description

xsh_led

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

Definition in file xsh_led.c.


Function Documentation

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

Shell command (led DESCRIPTOR STATE) turns a specified led on or off.

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 23 of file xsh_led.c.

References fprintf(), GPIO1, GPIO_CTRL_LED_OFF, GPIO_CTRL_LED_ON, GPIO_LED_CISCOONG, GPIO_LED_CISCOWHT, GPIO_LED_DMZ, GPIO_LED_WLAN, OK, strncmp(), and SYSERR.


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