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
|
// Collect data
|
||||||
let mut i: usize = 0;
|
let mut i: usize = 0;
|
||||||
match channel {
|
// match channel {
|
||||||
0 => {
|
// 0 => {
|
||||||
while csr::cxp_phys::tx_tx0_debug_buf_dout_valid_read() == 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();
|
// pak_arr[i] = csr::cxp_phys::tx_tx0_debug_buf_dout_pak_read();
|
||||||
csr::cxp_phys::tx_tx0_debug_buf_inc_write(1);
|
// csr::cxp_phys::tx_tx0_debug_buf_inc_write(1);
|
||||||
i += 1;
|
// i += 1;
|
||||||
if i == LEN {
|
// if i == LEN {
|
||||||
break;
|
// break;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
1 => {
|
// 1 => {
|
||||||
while csr::cxp_phys::tx_tx1_debug_buf_dout_valid_read() == 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();
|
// pak_arr[i] = csr::cxp_phys::tx_tx1_debug_buf_dout_pak_read();
|
||||||
csr::cxp_phys::tx_tx1_debug_buf_inc_write(1);
|
// csr::cxp_phys::tx_tx1_debug_buf_inc_write(1);
|
||||||
i += 1;
|
// i += 1;
|
||||||
if i == LEN {
|
// if i == LEN {
|
||||||
break;
|
// break;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
_ => {}
|
// _ => {}
|
||||||
}
|
// }
|
||||||
|
|
||||||
cxp_proto::print_packet(&pak_arr);
|
cxp_proto::print_packet(&pak_arr);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user