1
0
Fork 0

cxp upconn: add packet type

This commit is contained in:
morgan 2024-08-30 16:25:29 +08:00
parent 8c750c1993
commit c53c17e861
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ pub fn pipeline_test(timer: &mut GlobalTimer) {
unsafe { unsafe {
// eop = 1 (End of packet) at the last data input // eop = 1 (End of packet) at the last data input
csr::cxp::txcore_din_len_write(arr.len() as u8); csr::cxp::txcore_din_len_write(arr.len() as u8);
csr::cxp::txcore_packet_type_write(0x02); // read control command
for a in arr.iter() { for a in arr.iter() {
while csr::cxp::txcore_din_ready_read() == 0 {} while csr::cxp::txcore_din_ready_read() == 0 {}