usboot 0.1.0

Universal USB Boot utilities for embedded platforms
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::time::Duration;
use usboot::amlogic::{AmlogicSoC, SocId};

#[tokio::test]
async fn socid() -> anyhow::Result<()> {
    let dev = AmlogicSoC::with_defaults(Duration::from_secs(5)).await?;

    let socid_str = dev.identify().await?;
    let socid = SocId::new(&socid_str);

    println!("Firmware Version {}", socid);

    Ok(())
}