Skip to content

Provide definition of 16550 uart registers

License

Notifications You must be signed in to change notification settings

os-module/uart16550

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Rust 100.0%