upconn FW: remove unused buf

This commit is contained in:
morgan 2025-01-14 12:41:37 +08:00
parent 5ef521f0f6
commit 17de7f2365

View File

@ -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);
}