From 81b4689cf5a16b71c85b4a0f94746d61091fa29f Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Thu, 12 Jan 2012 10:58:42 -0800 Subject: B100 host code changes to remove TX padding, remove RX padding, increase max allowed rate. --- host/lib/transport/usb_zero_copy_wrapper.cpp | 4 ++-- host/lib/usrp/b100/b100_impl.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/host/lib/transport/usb_zero_copy_wrapper.cpp b/host/lib/transport/usb_zero_copy_wrapper.cpp index 227c4b392..74f07f956 100644 --- a/host/lib/transport/usb_zero_copy_wrapper.cpp +++ b/host/lib/transport/usb_zero_copy_wrapper.cpp @@ -72,7 +72,7 @@ public: void commit(size_t len){ if (_msb.get() == NULL) return; - _msb->commit(next_boundary(len, _boundary)); + _msb->commit(len); _queue.push_with_haste(this); _msb.reset(); } @@ -133,7 +133,7 @@ public: managed_recv_buffer::sptr recv_buff; //the buffer to be returned to the user recv_buff = wmrb->get_new(_last_recv_buff, mem, len); - _last_recv_offset = next_boundary(_last_recv_offset + len, _usb_frame_boundary); + _last_recv_offset = next_boundary(_last_recv_offset + len, 4); //check if this receive buffer has been exhausted if (_last_recv_offset >= _last_recv_buff->size()) { diff --git a/host/lib/usrp/b100/b100_impl.hpp b/host/lib/usrp/b100/b100_impl.hpp index 5e7794fe8..ec86e41a2 100644 --- a/host/lib/usrp/b100/b100_impl.hpp +++ b/host/lib/usrp/b100/b100_impl.hpp @@ -44,7 +44,7 @@ #include #include -static const double B100_LINK_RATE_BPS = 256e6/8; //pratical link rate (< 480 Mbps) +static const double B100_LINK_RATE_BPS = 256e6/5; //pratical link rate (< 480 Mbps) static const std::string B100_FW_FILE_NAME = "usrp_b100_fw.ihx"; static const std::string B100_FPGA_FILE_NAME = "usrp_b100_fpga.bin"; static const boost::uint16_t B100_FW_COMPAT_NUM = 0x02; -- cgit v1.2.3