From 9ecc3cebb65be2544355aec5381d288a18024e69 Mon Sep 17 00:00:00 2001 From: morgan Date: Mon, 16 Sep 2024 12:39:57 +0800 Subject: [PATCH] proto fw: remove downconn debug --- src/libboard_artiq/src/cxp_proto.rs | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/libboard_artiq/src/cxp_proto.rs b/src/libboard_artiq/src/cxp_proto.rs index dd39d76..b3b41a0 100644 --- a/src/libboard_artiq/src/cxp_proto.rs +++ b/src/libboard_artiq/src/cxp_proto.rs @@ -209,30 +209,6 @@ pub fn print_packetu32(pak: &[u32]) { println!("============================================"); } -pub fn downconn_debug_main() { - downconn_debug_send(&Packet::CtrlRead { - addr: 0x00, - length: 0x04, - }); - - const LEN: usize = 40; - let mut pak_arr: [u32; LEN] = [0; LEN]; - let mut i: usize = 0; - unsafe { - while csr::cxp::downconn_debug_out_dout_valid_read() == 1 { - pak_arr[i] = csr::cxp::downconn_debug_out_dout_pak_read(); - // println!("received {:#04X}", pak_arr[i]); - csr::cxp::downconn_debug_out_inc_write(1); - i += 1; - if i == LEN { - break; - } - } - } - - print_packetu32(&pak_arr) -} - pub fn downconn_debug_send(packet: &Packet) -> Result<(), Error> { let mut buffer: [u8; MAX_PACKET] = [0; MAX_PACKET]; let mut writer = Cursor::new(&mut buffer[..]);