From f11016cbb5d5c587ef442664dffed790512cc8bd Mon Sep 17 00:00:00 2001 From: morgan Date: Tue, 14 Jan 2025 12:18:41 +0800 Subject: [PATCH] upconn FW: rename var --- src/libboard_artiq/src/cxp_upconn.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/libboard_artiq/src/cxp_upconn.rs b/src/libboard_artiq/src/cxp_upconn.rs index 1b3dc4e..9ea4abc 100644 --- a/src/libboard_artiq/src/cxp_upconn.rs +++ b/src/libboard_artiq/src/cxp_upconn.rs @@ -28,7 +28,7 @@ pub fn tx_test(channel: u8, timer: &mut GlobalTimer) { }, ); - csr::cxp_phys::upconn_tx_enable_write(1); + csr::cxp_phys::tx_enable_write(1); timer.delay_us(1); // DEBUG: send ctrl packet or test @@ -42,15 +42,15 @@ pub fn tx_test(channel: u8, timer: &mut GlobalTimer) { // (CXP[channel].upconn_ack_write)(1); timer.delay_us(2000); - csr::cxp_phys::upconn_tx_enable_write(0); + csr::cxp_phys::tx_enable_write(0); // Collect data let mut i: usize = 0; match channel { 0 => { - while csr::cxp_phys::upconn_tx0_debug_buf_dout_valid_read() == 1 { - pak_arr[i] = csr::cxp_phys::upconn_tx0_debug_buf_dout_pak_read(); - csr::cxp_phys::upconn_tx0_debug_buf_inc_write(1); + while csr::cxp_phys::tx_tx0_debug_buf_dout_valid_read() == 1 { + pak_arr[i] = csr::cxp_phys::tx_tx0_debug_buf_dout_pak_read(); + csr::cxp_phys::tx_tx0_debug_buf_inc_write(1); i += 1; if i == LEN { break; @@ -58,9 +58,9 @@ pub fn tx_test(channel: u8, timer: &mut GlobalTimer) { } } 1 => { - while csr::cxp_phys::upconn_tx1_debug_buf_dout_valid_read() == 1 { - pak_arr[i] = csr::cxp_phys::upconn_tx1_debug_buf_dout_pak_read(); - csr::cxp_phys::upconn_tx1_debug_buf_inc_write(1); + while csr::cxp_phys::tx_tx1_debug_buf_dout_valid_read() == 1 { + pak_arr[i] = csr::cxp_phys::tx_tx1_debug_buf_dout_pak_read(); + csr::cxp_phys::tx_tx1_debug_buf_inc_write(1); i += 1; if i == LEN { break;