Skip to content

About

Provide definition of 16550 uart registers

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

uart16550

CI Latest version issue Documentation license

Design(Chinese)

Provide definition of 16550 uart registers.

This crate is ported from uart16550 but with no unsafe code.

Usage

#[derive(Debug, Clone)]
pub struct SafeIORegion {
    range: Range<PhysAddr>,
}
impl Uart16550IO<u8> for SafeIORegion {
    fn read_at(&self, offset: usize) -> u8 {}

    fn write_at(&self, offset: usize, value: u8) {}
}

fn main() {
    let io_region = SafeIORegion::new();
    let uart = Uart16550::new(Box::new(io_region));
}

About

Provide definition of 16550 uart registers

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages