1
0
Fork 0

upconn fw: rename csr

This commit is contained in:
morgan 2024-09-11 17:41:50 +08:00
parent 8b2181b1a8
commit fe57067f70
1 changed files with 3 additions and 3 deletions

View File

@ -50,10 +50,10 @@ pub fn tx_test(timer: &mut GlobalTimer) {
// Collect data
let mut i: usize = 0;
while csr::cxp::upconn_upconn_phy_debug_buf_dout_valid_read() == 1 {
pak_arr[i] = csr::cxp::upconn_upconn_phy_debug_buf_dout_pak_read();
while csr::cxp::upconn_phy_debug_buf_dout_valid_read() == 1 {
pak_arr[i] = csr::cxp::upconn_phy_debug_buf_dout_pak_read();
// println!("received {:#04X}", pak_arr[i]);
csr::cxp::upconn_upconn_phy_debug_buf_inc_write(1);
csr::cxp::upconn_phy_debug_buf_inc_write(1);
i += 1;
if i == LEN {
break;