forked from M-Labs/artiq-zynq
ctrl fw: remove unused csr
This commit is contained in:
parent
59971fa996
commit
bfd03e13bd
@ -24,13 +24,12 @@ fn receive(channel: u8) -> Result<Option<RXPacket>, Error> {
|
|||||||
(CXP_MEM[channel].base + CXP_MEM[channel].size / 2 + read_buffer_ptr * CTRL_PACKET_MAXSIZE) as *mut u32;
|
(CXP_MEM[channel].base + CXP_MEM[channel].size / 2 + read_buffer_ptr * CTRL_PACKET_MAXSIZE) as *mut u32;
|
||||||
|
|
||||||
let mut reader = Cursor::new(slice::from_raw_parts_mut(ptr as *mut u8, CTRL_PACKET_MAXSIZE));
|
let mut reader = Cursor::new(slice::from_raw_parts_mut(ptr as *mut u8, CTRL_PACKET_MAXSIZE));
|
||||||
let packet_type = (CXP[channel].rx_packet_type_read)();
|
|
||||||
println!("packet_type = {}", packet_type);
|
|
||||||
// DEBUG:
|
// DEBUG:
|
||||||
// println!("RX MEM before reading");
|
// println!("RX MEM before reading");
|
||||||
// print_packet(&reader.get_ref()[0..40]);
|
// print_packet(&reader.get_ref()[0..40]);
|
||||||
|
|
||||||
let packet = RXPacket::read_from(&mut reader, packet_type);
|
let packet = RXPacket::read_from(&mut reader);
|
||||||
|
// DEBUG:
|
||||||
println!("{:X?}", packet);
|
println!("{:X?}", packet);
|
||||||
|
|
||||||
(CXP[channel].rx_pending_packet_write)(1);
|
(CXP[channel].rx_pending_packet_write)(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user