Rust crate for Flattened Devicetree parsing
|
vor 4 Jahren | |
---|---|---|
examples | vor 4 Jahren | |
src | vor 4 Jahren | |
.gitignore | vor 4 Jahren | |
Cargo.toml | vor 4 Jahren | |
LICENSE | vor 4 Jahren | |
README.md | vor 4 Jahren | |
rustfmt.toml | vor 4 Jahren | |
test.dtb | vor 4 Jahren | |
test.dts | vor 4 Jahren |
fdt
A pure-Rust crate for parsing Flattened Devicetrees, with the goal of having a very ergonomic and idiomatic API.
This crate is licensed under the Mozilla Public License 2.0 (see the LICENSE file).
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(","));
}