1
0
Fork 0

upconn fw: remove setup from test

This commit is contained in:
morgan 2024-10-14 12:06:02 +08:00
parent 8cafbb2471
commit 706be2c2ef
1 changed files with 1 additions and 7 deletions

View File

@ -9,18 +9,12 @@ pub fn tx_test(channel: usize, timer: &mut GlobalTimer) {
let mut pak_arr: [u8; LEN] = [0; LEN]; let mut pak_arr: [u8; LEN] = [0; LEN];
unsafe { 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::read_u32(channel, 0x00).expect("Cannot Write CoaXpress Register");
// cxp_proto::write_u64(channel, 0x00, 0x01); // 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::EventAck { packet_tag: 0x04 }).expect("Cannot send CoaXpress packet");
// cxp_proto::send(channel, &cxp_proto::Packet::TestPacket).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 // DEBUG: Trigger packet
(CXP[channel].upconn_trig_delay_write)(0x86); (CXP[channel].upconn_trig_delay_write)(0x86);
(CXP[channel].upconn_linktrigger_write)(0x00); (CXP[channel].upconn_linktrigger_write)(0x00);