Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BlackHoleFox/fdt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fdt

A pure-Rust crate for parsing Flattened Devicetrees, with the goal of having a very ergonomic and idiomatic API.

License

This crate is licensed under the Mozilla Public License 2.0 (see the LICENSE file).

Example

static MY_FDT: &[u8] = include_bytes!("my_fdt.dtb");

fn main() {
    let fdt = fdt::Fdt::new(MY_FDT).unwrap();

    println!("This is a devicetree representation of a {}", fdt.root().model());
    println!("...Which is compatible with: {}", fdt.root().compatible().join(","));
}

About

Rust crate for Flattened Devicetree parsing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%