mango-hal 0.2.1

Hardware Abstraction Layer for the mango operationg system.
Documentation
pub struct Serial
{
  port: uart_16550::SerialPort,
}

impl Serial
{
  pub fn new(port: u16) -> Serial
  {
    unsafe {
      Serial {
        port: uart_16550::SerialPort::new(port),
      }
    }
  }
  pub fn initialise(&self) {}
}
use core::fmt;

impl fmt::Write for Serial
{
  fn write_str(&mut self, s: &str) -> fmt::Result
  {
    self.port.write_str(s)
  }
}