From 0aadd3a3612409935b74fbf0ad4f84496a8d7ef6 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 16 May 2018 22:28:09 +0800 Subject: [PATCH] firmware/hmc830_7043: improve messaging --- artiq/firmware/libboard_artiq/hmc830_7043.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/artiq/firmware/libboard_artiq/hmc830_7043.rs b/artiq/firmware/libboard_artiq/hmc830_7043.rs index 0e6e78703..35c1ac015 100644 --- a/artiq/firmware/libboard_artiq/hmc830_7043.rs +++ b/artiq/firmware/libboard_artiq/hmc830_7043.rs @@ -107,10 +107,11 @@ mod hmc830 { pub fn init() -> Result<(), &'static str> { spi_setup(); - info!("HMC830 configuration..."); + info!("loading configuration..."); for &(addr, data) in HMC830_WRITES.iter() { write(addr, data); } + info("...done"); let t = clock::get_ms(); info!("waiting for lock..."); @@ -125,6 +126,7 @@ mod hmc830 { return Err("HMC830 lock timeout"); } } + info!("...locked"); Ok(()) } @@ -217,7 +219,7 @@ pub mod hmc7043 { pub fn shutdown() -> Result<(), &'static str> { spi_setup(); - info!("HMC7043 shutdown..."); + info!("shutting down"); write(0x1, 0x1); // Sleep mode Ok(()) @@ -225,7 +227,7 @@ pub mod hmc7043 { pub fn init() -> Result<(), &'static str> { spi_setup(); - info!("HMC7043 configuration..."); + info!("loading configuration..."); write(0x0, 0x1); // Software reset write(0x0, 0x0); @@ -267,6 +269,8 @@ pub mod hmc7043 { write(channel_base + 0x8, 0x08) } + info!("...done"); + Ok(()) }