uart_16550

Build Status Docs.rs Badge

Minimal support for uart_16550 serial I/O.

Usage

```rust use uart_16550::SerialPort;

const SERIALIOPORT: u16 = 0x3F8;

let mut serialport = unsafe { SerialPort::new(SERIALIOPORT) }; serialport.init();

// Now the serial port is ready to be used. To send a byte: serial_port.send(42);

// To receive a byte: let data = serial_port.receive(); ```

License

Licensed under the MIT license (LICENSE or http://opensource.org/licenses/MIT).

Crate Feature Flags

Building with stable rust

This needs to have the compile-time requirements of the cc crate installed on your system. It was currently only tested on Linux and MacOS.