diff --git a/src/libboard_artiq/src/cxp_upconn.rs b/src/libboard_artiq/src/cxp_upconn.rs index 9ea4abc..d9692e9 100644 --- a/src/libboard_artiq/src/cxp_upconn.rs +++ b/src/libboard_artiq/src/cxp_upconn.rs @@ -46,29 +46,29 @@ pub fn tx_test(channel: u8, timer: &mut GlobalTimer) { // Collect data let mut i: usize = 0; - match channel { - 0 => { - 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; - } - } - } - 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; - } - } - } - _ => {} - } + // match channel { + // 0 => { + // 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; + // } + // } + // } + // 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; + // } + // } + // } + // _ => {} + // } cxp_proto::print_packet(&pak_arr); }