forked from M-Labs/artiq
clean up ccc279b8
This commit is contained in:
parent
ccc279b8da
commit
fb8b36cd41
|
@ -1,29 +1,5 @@
|
|||
extern crate build_misoc;
|
||||
|
||||
use std::env;
|
||||
use std::fs::File;
|
||||
use std::io::Write;
|
||||
use std::path::Path;
|
||||
use std::process::Command;
|
||||
|
||||
fn gen_hmc7043_writes() {
|
||||
println!("cargo:rerun-if-changed=hmc7043_gen_writes.py");
|
||||
println!("cargo:rerun-if-changed=hmc7043_guiexport_6gbps.py");
|
||||
|
||||
let hmc7043_writes =
|
||||
Command::new("python3")
|
||||
.arg("hmc7043_gen_writes.py")
|
||||
.arg("hmc7043_guiexport_6gbps.py")
|
||||
.output()
|
||||
.ok()
|
||||
.and_then(|o| String::from_utf8(o.stdout).ok())
|
||||
.unwrap();
|
||||
let out_dir = env::var("OUT_DIR").unwrap();
|
||||
let mut f = File::create(Path::new(&out_dir).join("hmc7043_writes.rs")).unwrap();
|
||||
write!(f, "{}", hmc7043_writes).unwrap();
|
||||
}
|
||||
|
||||
fn main() {
|
||||
build_misoc::cfg();
|
||||
gen_hmc7043_writes();
|
||||
}
|
||||
|
|
|
@ -113,8 +113,7 @@ mod hmc830 {
|
|||
if addr == 0x0d || addr == 0x0e { continue; }
|
||||
error!("[0x{:02x}] = 0x{:04x}", addr, read(addr));
|
||||
}
|
||||
// return Err("HMC830 lock timeout");
|
||||
break;
|
||||
return Err("HMC830 lock timeout");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue