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

#include <kernel.h>
#include <proc.h>
#include <device.h>
#include <uart.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

Include dependency graph for xsh_uartstat.c:

Go to the source code of this file.

Functions

local uartStat (ushort, ushort, ushort, ushort)
command xsh_uartstat (ushort stdin, ushort stdout, ushort stderr, ushort nargs, char *args[])


Detailed Description

xsh_uartstat

Id
xsh_uartstat.c 231 2007-07-12 14:15:16Z agember

Definition in file xsh_uartstat.c.


Function Documentation

local uartStat ( ushort  stdin,
ushort  stdout,
ushort  stderr,
ushort  dev 
)

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

Shell command (uartstat UARTNUM) provides information about the current status of a UART.

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

Definition at line 28 of file xsh_uartstat.c.

References atol(), fprintf(), NUART, OK, strncmp(), SYSERR, and uartStat().


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