forked from M-Labs/artiq-zynq
cxp downconn fw: add CXP datarate update printout
This commit is contained in:
parent
4436dc930e
commit
452c3cee64
|
@ -9,7 +9,7 @@ pub struct CXP_DownConn_Settings {
|
||||||
pub qpll_fbdiv: u8,
|
pub qpll_fbdiv: u8,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Copy)]
|
#[derive(Clone, Copy, Debug)]
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
pub enum CXP_SPEED {
|
pub enum CXP_SPEED {
|
||||||
CXP_1,
|
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) {
|
pub fn change_linerate(timer: &mut GlobalTimer, speed: CXP_SPEED) {
|
||||||
|
info!("Changing datarate to {:?}", speed);
|
||||||
// DEBUG: DRP pll for TXUSRCLK = freq(linerate)/20
|
// DEBUG: DRP pll for TXUSRCLK = freq(linerate)/20
|
||||||
let settings = txusrclk::get_txusrclk_config(speed);
|
let settings = txusrclk::get_txusrclk_config(speed);
|
||||||
txusrclk::setup(timer, settings);
|
txusrclk::setup(timer, settings);
|
||||||
|
|
Loading…
Reference in New Issue