#include <kernel.h>
#include <uart.h>
#include <device.h>
Go to the source code of this file.
Functions | |
devcall | uartRead (device *pdev, unsigned char *buf, int len) |
Definition in file uartRead.c.
devcall uartRead | ( | device * | pdev, | |
unsigned char * | buf, | |||
int | len | |||
) |
Read into a buffer from the UART.
pdev | UART device table entry | |
buf | buffer to read bytes into | |
len | size of the buffer |
Definition at line 20 of file uartRead.c.
References ASSERT, dentry::controlblk, uart::dev, disable(), uart::icount, uart::iflags, uart::in, uart::isema, uart::istart, NULL, restore(), scount(), SYSERR, UART_IBLEN, UART_IFLAG_ECHO, UART_IFLAG_NOBLOCK, uartPutChar(), and wait().
Referenced by uartGetChar().