From 6d47818032de6f05aa74d17e50363df292c50aac Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sun, 17 Jul 2011 23:54:19 -0700 Subject: usrp2: use the err transport for tx/err, and rx xports are recv only --- firmware/zpu/apps/txrx_uhd.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'firmware/zpu') diff --git a/firmware/zpu/apps/txrx_uhd.c b/firmware/zpu/apps/txrx_uhd.c index 975ec58e2..37aa43b58 100644 --- a/firmware/zpu/apps/txrx_uhd.c +++ b/firmware/zpu/apps/txrx_uhd.c @@ -54,17 +54,17 @@ static void handle_udp_data_packet( ){ size_t which; switch(dst.port){ - case USRP2_UDP_DSP0_PORT: + case USRP2_UDP_RX_DSP0_PORT: which = 0; dsp0_dst_port = src.port; break; - case USRP2_UDP_DSP1_PORT: + case USRP2_UDP_RX_DSP1_PORT: which = 2; dsp1_dst_port = src.port; break; - case USRP2_UDP_ERR0_PORT: + case USRP2_UDP_TX_DSP0_PORT: which = 1; err0_dst_port = src.port; break; @@ -305,14 +305,14 @@ main(void) //1) register the addresses into the network stack register_addrs(ethernet_mac_addr(), get_ip_addr()); - pkt_ctrl_program_inspector(get_ip_addr(), USRP2_UDP_DSP0_PORT); + pkt_ctrl_program_inspector(get_ip_addr(), USRP2_UDP_TX_DSP0_PORT); //2) register callbacks for udp ports we service init_udp_listeners(); register_udp_listener(USRP2_UDP_CTRL_PORT, handle_udp_ctrl_packet); - register_udp_listener(USRP2_UDP_DSP0_PORT, handle_udp_data_packet); - register_udp_listener(USRP2_UDP_ERR0_PORT, handle_udp_data_packet); - register_udp_listener(USRP2_UDP_DSP1_PORT, handle_udp_data_packet); + register_udp_listener(USRP2_UDP_RX_DSP0_PORT, handle_udp_data_packet); + register_udp_listener(USRP2_UDP_RX_DSP1_PORT, handle_udp_data_packet); + register_udp_listener(USRP2_UDP_TX_DSP0_PORT, handle_udp_data_packet); #ifdef USRP2P register_udp_listener(USRP2_UDP_UPDATE_PORT, handle_udp_fw_update_packet); #endif -- cgit v1.2.3