forked from M-Labs/artiq-zynq
upconn fw: remove setup from test
This commit is contained in:
parent
8cafbb2471
commit
706be2c2ef
|
@ -9,18 +9,12 @@ pub fn tx_test(channel: usize, timer: &mut GlobalTimer) {
|
|||
let mut pak_arr: [u8; LEN] = [0; LEN];
|
||||
|
||||
unsafe {
|
||||
(CXP[channel].upconn_clk_reset_write)(1);
|
||||
// CXP[channel].upconn_bitrate2x_enable_write(1);
|
||||
(CXP[channel].upconn_clk_reset_write)(0);
|
||||
|
||||
(CXP[channel].upconn_tx_enable_write)(1);
|
||||
timer.delay_us(2); // send one word
|
||||
// cxp_proto::read_u32(channel, 0x00).expect("Cannot Write CoaXpress Register");
|
||||
// cxp_proto::write_u64(channel, 0x00, 0x01);
|
||||
// cxp_proto::send(channel, &cxp_proto::Packet::EventAck { packet_tag: 0x04 }).expect("Cannot send CoaXpress packet");
|
||||
// cxp_proto::send(channel, &cxp_proto::Packet::TestPacket).expect("Cannot send CoaXpress packet");
|
||||
|
||||
timer.delay_us(2);
|
||||
timer.delay_us(2); // send one word
|
||||
// DEBUG: Trigger packet
|
||||
(CXP[channel].upconn_trig_delay_write)(0x86);
|
||||
(CXP[channel].upconn_linktrigger_write)(0x00);
|
||||
|
|
Loading…
Reference in New Issue