#include <kernel.h>
#include <proc.h>
#include <device.h>
#include <uart.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
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[]) |
Definition in file xsh_uartstat.c.
Definition at line 72 of file xsh_uartstat.c.
References uart::cin, uart::cout, uart::csr, fprintf(), uart_csreg::ier, uart::iirq, uart::lserr, uart::oirq, OK, uart::ovrrn, UART_IER_ELSI, UART_IER_EMSI, UART_IER_ERBFI, UART_IER_ETBEI, and uarttab.
Referenced by xsh_uartstat().
Shell command (uartstat UARTNUM) provides information about the current status of a UART.
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().