From d93a2cf7c904964ba7f41f4d654b18e099df7451 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 3 Mar 2011 19:26:32 -0800 Subject: usrp2: work on mtu discovery added echo routine to the firmware and discovery routine to host the implementation is integrated into the factory function and appears to work on linux --- host/lib/usrp/usrp2/mboard_impl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'host/lib/usrp/usrp2/mboard_impl.cpp') diff --git a/host/lib/usrp/usrp2/mboard_impl.cpp b/host/lib/usrp/usrp2/mboard_impl.cpp index 5cb4e4d34..0a6fefca6 100644 --- a/host/lib/usrp/usrp2/mboard_impl.cpp +++ b/host/lib/usrp/usrp2/mboard_impl.cpp @@ -62,25 +62,25 @@ usrp2_mboard_impl::usrp2_mboard_impl( ): _index(index), _device(device), _iface(usrp2_iface::make(udp_simple::make_connected( - device_addr["addr"], boost::lexical_cast(USRP2_UDP_CTRL_PORT) + device_addr["addr"], BOOST_STRINGIZE(USRP2_UDP_CTRL_PORT) ))) { //construct transports for dsp and async errors std::cout << "Making transport for DSP0..." << std::endl; device.dsp_xports.push_back(udp_zero_copy::make( - device_addr["addr"], boost::lexical_cast(USRP2_UDP_DSP0_PORT), device_addr + device_addr["addr"], BOOST_STRINGIZE(USRP2_UDP_DSP0_PORT), device_addr )); init_xport(device.dsp_xports.back()); std::cout << "Making transport for DSP1..." << std::endl; device.dsp_xports.push_back(udp_zero_copy::make( - device_addr["addr"], boost::lexical_cast(USRP2_UDP_DSP1_PORT), device_addr + device_addr["addr"], BOOST_STRINGIZE(USRP2_UDP_DSP1_PORT), device_addr )); init_xport(device.dsp_xports.back()); std::cout << "Making transport for ERR0..." << std::endl; device.err_xports.push_back(udp_zero_copy::make( - device_addr["addr"], boost::lexical_cast(USRP2_UDP_ERR0_PORT), device_addr_t() + device_addr["addr"], BOOST_STRINGIZE(USRP2_UDP_ERR0_PORT), device_addr_t() )); init_xport(device.err_xports.back()); -- cgit v1.2.3