From 740e6863c3848c324a266ccc357d158444e68a4b Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 19 Jun 2018 23:48:48 +0800 Subject: [PATCH] hmc7043: add delay after releasing hardware reset --- artiq/firmware/libboard_artiq/hmc830_7043.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/artiq/firmware/libboard_artiq/hmc830_7043.rs b/artiq/firmware/libboard_artiq/hmc830_7043.rs index 10651d0bf..0e7f5a6ed 100644 --- a/artiq/firmware/libboard_artiq/hmc830_7043.rs +++ b/artiq/firmware/libboard_artiq/hmc830_7043.rs @@ -155,7 +155,7 @@ mod hmc830 { } pub mod hmc7043 { - use board_misoc::csr; + use board_misoc::{csr, clock}; // All frequencies assume 1.2GHz HMC830 output const DAC_CLK_DIV: u32 = 2; // 600MHz @@ -241,11 +241,12 @@ pub mod hmc7043 { } pub fn enable() { - info!("enabling hmc7043"); + info!("enabling HMC7043"); unsafe { csr::hmc7043_reset::out_write(0); } + clock::spin_us(10_000); spi_setup(); write(0x0, 0x1); // Software reset