aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2014-09-24 18:20:51 -0700
committerMartin Braun <martin.braun@ettus.com>2014-09-24 18:20:51 -0700
commit3cfb643100d0b44da5a37d672680d1c5b8990ece (patch)
treec05673d400d1e42921ec70b08f2e0e74f1466662 /host/lib/usrp
parent5aefa0fdfcf45717c133641b7e4df8070ed025e3 (diff)
parentecdd34c08b79117c4f739b336daeb4b9d2bc8df3 (diff)
downloaduhd-3cfb643100d0b44da5a37d672680d1c5b8990ece.tar.gz
uhd-3cfb643100d0b44da5a37d672680d1c5b8990ece.tar.bz2
uhd-3cfb643100d0b44da5a37d672680d1c5b8990ece.zip
Merge branch 'maint'
Diffstat (limited to 'host/lib/usrp')
-rw-r--r--host/lib/usrp/cores/radio_ctrl_core_3000.cpp8
-rw-r--r--host/lib/usrp/dboard/db_sbx_common.cpp2
-rw-r--r--host/lib/usrp/x300/x300_clock_ctrl.cpp1
3 files changed, 2 insertions, 9 deletions
diff --git a/host/lib/usrp/cores/radio_ctrl_core_3000.cpp b/host/lib/usrp/cores/radio_ctrl_core_3000.cpp
index 55e5cba7a..6357102fb 100644
--- a/host/lib/usrp/cores/radio_ctrl_core_3000.cpp
+++ b/host/lib/usrp/cores/radio_ctrl_core_3000.cpp
@@ -56,7 +56,6 @@ public:
ACK_TIMEOUT), _resp_queue(128/*max response msgs*/), _resp_queue_size(
_resp_xport ? _resp_xport->get_num_recv_frames() : 3)
{
- UHD_LOG<< "radio_ctrl_core_3000_impl() " << _name << std::endl;
if (resp_xport)
{
while (resp_xport->get_recv_buff(0.0)) {} //flush
@@ -67,7 +66,6 @@ public:
~radio_ctrl_core_3000_impl(void)
{
- UHD_LOG << "~radio_ctrl_core_3000_impl() " << _name << std::endl;
_timeout = ACK_TIMEOUT; //reset timeout to something small
UHD_SAFE_CALL(
this->peek32(0);//dummy peek with the purpose of ack'ing all packets
@@ -81,8 +79,6 @@ public:
void poke32(const wb_addr_type addr, const boost::uint32_t data)
{
boost::mutex::scoped_lock lock(_mutex);
- UHD_LOGV(always) << _name << std::hex << " addr 0x" << addr << " data 0x" << data << std::dec << std::endl;
-
this->send_pkt(addr/4, data);
this->wait_for_ack(false);
}
@@ -90,7 +86,6 @@ public:
boost::uint32_t peek32(const wb_addr_type addr)
{
boost::mutex::scoped_lock lock(_mutex);
- UHD_LOGV(always) << _name << std::hex << " addr 0x" << addr << std::dec << std::endl;
this->send_pkt(SR_READBACK, addr/8);
const boost::uint64_t res = this->wait_for_ack(true);
const boost::uint32_t lo = boost::uint32_t(res & 0xffffffff);
@@ -101,8 +96,6 @@ public:
boost::uint64_t peek64(const wb_addr_type addr)
{
boost::mutex::scoped_lock lock(_mutex);
- UHD_LOGV(always) << _name << std::hex << " addr 0x" << addr << std::dec << std::endl;
-
this->send_pkt(SR_READBACK, addr/8);
return this->wait_for_ack(true);
}
@@ -178,7 +171,6 @@ private:
{
while (readback or (_outstanding_seqs.size() >= _resp_queue_size))
{
- UHD_LOGV(always) << _name << " wait_for_ack: " << "readback = " << readback << " outstanding_seqs.size() " << _outstanding_seqs.size() << std::endl;
//get seq to ack from outstanding packets list
UHD_ASSERT_THROW(not _outstanding_seqs.empty());
const size_t seq_to_ack = _outstanding_seqs.front();
diff --git a/host/lib/usrp/dboard/db_sbx_common.cpp b/host/lib/usrp/dboard/db_sbx_common.cpp
index b67910e9a..ce5166c4c 100644
--- a/host/lib/usrp/dboard/db_sbx_common.cpp
+++ b/host/lib/usrp/dboard/db_sbx_common.cpp
@@ -54,7 +54,7 @@ static int rx_pga0_gain_to_iobits(double &gain){
int iobits = ((~attn_code) << RX_ATTN_SHIFT) & RX_ATTN_MASK;
UHD_LOGV(often) << boost::format(
- "SBX TX Attenuation: %f dB, Code: %d, IO Bits %x, Mask: %x"
+ "SBX RX Attenuation: %f dB, Code: %d, IO Bits %x, Mask: %x"
) % attn % attn_code % (iobits & RX_ATTN_MASK) % RX_ATTN_MASK << std::endl;
//the actual gain setting
diff --git a/host/lib/usrp/x300/x300_clock_ctrl.cpp b/host/lib/usrp/x300/x300_clock_ctrl.cpp
index d30c31127..ffb97e147 100644
--- a/host/lib/usrp/x300/x300_clock_ctrl.cpp
+++ b/host/lib/usrp/x300/x300_clock_ctrl.cpp
@@ -344,6 +344,7 @@ void set_master_clock_rate(double clock_rate) {
_lmk04816_regs.NO_SYNC_CLKout0_1 = lmk04816_regs_t::NO_SYNC_CLKOUT0_1_CLOCK_XY_SYNC;
_lmk04816_regs.NO_SYNC_CLKout2_3 = lmk04816_regs_t::NO_SYNC_CLKOUT2_3_CLOCK_XY_SYNC;
_lmk04816_regs.NO_SYNC_CLKout4_5 = lmk04816_regs_t::NO_SYNC_CLKOUT4_5_CLOCK_XY_SYNC;
+ _lmk04816_regs.NO_SYNC_CLKout6_7 = lmk04816_regs_t::NO_SYNC_CLKOUT6_7_CLOCK_XY_SYNC;
_lmk04816_regs.NO_SYNC_CLKout8_9 = lmk04816_regs_t::NO_SYNC_CLKOUT8_9_CLOCK_XY_SYNC;
_lmk04816_regs.NO_SYNC_CLKout10_11 = lmk04816_regs_t::NO_SYNC_CLKOUT10_11_CLOCK_XY_SYNC;
_lmk04816_regs.SYNC_EN_AUTO = lmk04816_regs_t::SYNC_EN_AUTO_SYNC_INT_GEN;