Embedded Xinu Operating System
An ongoing research project and educational operating system.
|
These UART functions are implemented differently for different UART types. More...
Functions | |
syscall | kgetc (device *devptr) |
syscall | kputc (uchar c, device *devptr) |
interrupt | uartInterrupt (void) |
These UART functions are implemented differently for different UART types.
syscall kgetc | ( | device * | devptr | ) |
Synchronously read a character from a UART. This blocks until a character is available. The interrupt handler is not used.
devptr | Pointer to the device table entry for a UART. |
unsigned char
cast to an int
. syscall kputc | ( | uchar | c, |
device * | devptr | ||
) |
Synchronously write a character to a UART. This blocks until the character has been written to the hardware. The interrupt handler is not used.
c | The character to write. |
devptr | Pointer to the device table entry for a UART. |
unsigned char
cast to an int
. interrupt uartInterrupt | ( | void | ) |
Handle an interrupt request from a PL011 UART.