forked from M-Labs/artiq-zynq
upconn FW: remove unused buf
This commit is contained in:
parent
5ef521f0f6
commit
17de7f2365
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user