aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/zpu
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-07-17 23:54:19 -0700
committerJosh Blum <josh@joshknows.com>2011-07-17 23:54:19 -0700
commit6d47818032de6f05aa74d17e50363df292c50aac (patch)
tree227a24ac939875a9ede4aa7f31d30d241e1df6e6 /firmware/zpu
parent7e1b2a0e3c014bc23aaa7a045efb5f1109818051 (diff)
downloaduhd-6d47818032de6f05aa74d17e50363df292c50aac.tar.gz
uhd-6d47818032de6f05aa74d17e50363df292c50aac.tar.bz2
uhd-6d47818032de6f05aa74d17e50363df292c50aac.zip
usrp2: use the err transport for tx/err, and rx xports are recv only
Diffstat (limited to 'firmware/zpu')
-rw-r--r--firmware/zpu/apps/txrx_uhd.c14
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