From 372008cb66a9705700eba8302c56dc34948c0711 Mon Sep 17 00:00:00 2001 From: linuswck Date: Mon, 18 Sep 2023 12:58:39 +0800 Subject: [PATCH] Firmware: AD9117 Add check presence of clk comment --- artiq/firmware/libboard_artiq/ad9117.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/artiq/firmware/libboard_artiq/ad9117.rs b/artiq/firmware/libboard_artiq/ad9117.rs index 5aafb2ace..f3d3f3533 100644 --- a/artiq/firmware/libboard_artiq/ad9117.rs +++ b/artiq/firmware/libboard_artiq/ad9117.rs @@ -53,6 +53,7 @@ pub fn init() -> Result<(), &'static str> { debug!("DAC AD9117 Channel {} has incorrect hardware version. VERSION reg: {:02x}", channel, reg); return Err("DAC AD9117 hardware version is not equal to 0x0A"); } + // Check for the presence of DCLKIO and CLKIN let reg = read(channel, CLKMODE_REG)?; if reg >> 4 & 1 != 0 { debug!("DAC AD9117 Channel {} retiming fails. CLKMODE reg: {:02x}", channel, reg);