diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/zpu/apps/txrx_uhd.c | 14 |
1 files changed, 7 insertions, 7 deletions
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 |