mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-24 19:04:02 +08:00
wrpll: print DDMTD helper tags
This commit is contained in:
parent
0d4eccc1a5
commit
4919fb8765
@ -280,6 +280,14 @@ fn get_ddmtd_main_tag() -> u16 {
|
||||
}
|
||||
}
|
||||
|
||||
fn get_ddmtd_helper_tag() -> u16 {
|
||||
unsafe {
|
||||
csr::wrpll::ddmtd_helper_arm_write(1);
|
||||
while csr::wrpll::ddmtd_helper_arm_read() != 0 {}
|
||||
csr::wrpll::ddmtd_helper_tag_read()
|
||||
}
|
||||
}
|
||||
|
||||
pub fn init() {
|
||||
info!("initializing...");
|
||||
|
||||
@ -311,4 +319,11 @@ pub fn init() {
|
||||
|
||||
pub fn select_recovered_clock(rc: bool) {
|
||||
info!("select_recovered_clock: {}", rc);
|
||||
if rc {
|
||||
let mut tags = [0; 10];
|
||||
for i in 0..tags.len() {
|
||||
tags[i] = get_ddmtd_helper_tag();
|
||||
}
|
||||
info!("DDMTD helper tags: {:?}", tags);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user