

The default buffer size is 32 bytes per each of rx and tx, defined in
/drivers/uart.c. The optional third argument can be passed for detailed
configuration. See the example below.

The default baudrate is 115200bps.

fd = open("/dev/uart1", O_RDWR);
fd = open("/dev/uart1", O_RDWR | O_NONBLOCK);

struct uart_t {
	size_t rx;
	size_t tx;
	int baudrate;
};

uart_t uart = { 4096, 0, 9600 };

fd = open("/dev/uart1", O_RDWR, &uart);
