From 706be2c2ef82aa1c253cf00405505847fac64542 Mon Sep 17 00:00:00 2001 From: morgan Date: Mon, 14 Oct 2024 12:06:02 +0800 Subject: [PATCH] upconn fw: remove setup from test --- src/libboard_artiq/src/cxp_upconn.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/libboard_artiq/src/cxp_upconn.rs b/src/libboard_artiq/src/cxp_upconn.rs index db38bc9..02467ac 100644 --- a/src/libboard_artiq/src/cxp_upconn.rs +++ b/src/libboard_artiq/src/cxp_upconn.rs @@ -9,18 +9,12 @@ pub fn tx_test(channel: usize, timer: &mut GlobalTimer) { let mut pak_arr: [u8; LEN] = [0; LEN]; unsafe { - (CXP[channel].upconn_clk_reset_write)(1); - // CXP[channel].upconn_bitrate2x_enable_write(1); - (CXP[channel].upconn_clk_reset_write)(0); - - (CXP[channel].upconn_tx_enable_write)(1); - timer.delay_us(2); // send one word // cxp_proto::read_u32(channel, 0x00).expect("Cannot Write CoaXpress Register"); // cxp_proto::write_u64(channel, 0x00, 0x01); // cxp_proto::send(channel, &cxp_proto::Packet::EventAck { packet_tag: 0x04 }).expect("Cannot send CoaXpress packet"); // cxp_proto::send(channel, &cxp_proto::Packet::TestPacket).expect("Cannot send CoaXpress packet"); - timer.delay_us(2); + timer.delay_us(2); // send one word // DEBUG: Trigger packet (CXP[channel].upconn_trig_delay_write)(0x86); (CXP[channel].upconn_linktrigger_write)(0x00);