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