From 452c3cee644218670c83a1447bafce950a35afbb Mon Sep 17 00:00:00 2001 From: morgan Date: Thu, 1 Aug 2024 17:38:07 +0800 Subject: [PATCH] cxp downconn fw: add CXP datarate update printout --- src/libboard_artiq/src/cxp_downconn.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libboard_artiq/src/cxp_downconn.rs b/src/libboard_artiq/src/cxp_downconn.rs index bb187d5..d44020f 100644 --- a/src/libboard_artiq/src/cxp_downconn.rs +++ b/src/libboard_artiq/src/cxp_downconn.rs @@ -9,7 +9,7 @@ pub struct CXP_DownConn_Settings { pub qpll_fbdiv: u8, } -#[derive(Clone, Copy)] +#[derive(Clone, Copy, Debug)] #[allow(non_camel_case_types)] pub enum CXP_SPEED { CXP_1, @@ -147,6 +147,7 @@ pub fn setup(timer: &mut GlobalTimer, speed: CXP_SPEED) { } pub fn change_linerate(timer: &mut GlobalTimer, speed: CXP_SPEED) { + info!("Changing datarate to {:?}", speed); // DEBUG: DRP pll for TXUSRCLK = freq(linerate)/20 let settings = txusrclk::get_txusrclk_config(speed); txusrclk::setup(timer, settings);