1
0
Fork 0

cxp downconn fw: add CXP datarate update printout

This commit is contained in:
morgan 2024-08-01 17:38:07 +08:00
parent 4436dc930e
commit 452c3cee64
1 changed files with 2 additions and 1 deletions

View File

@ -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);