aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-09-26 12:38:25 -0700
committerMartin Braun <martin.braun@ettus.com>2016-09-27 09:03:13 -0700
commita6cf307d4494633e71f94b59c92c21e8ef3112f0 (patch)
treed6a2b6842ed0cc6f99af58bebba45a9886a1ff54 /host
parent9798ec540a77c74036766a132e23230ccd0148cc (diff)
downloaduhd-a6cf307d4494633e71f94b59c92c21e8ef3112f0.tar.gz
uhd-a6cf307d4494633e71f94b59c92c21e8ef3112f0.tar.bz2
uhd-a6cf307d4494633e71f94b59c92c21e8ef3112f0.zip
x300: Added ignore-cal-file as an option
Reviewed-By: Moritz Fischer <moritz.fischer@ettus.com> Signed-off-by: Martin Braun <martin.braun@ettus.com>
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/x300/x300_impl.cpp7
-rw-r--r--host/lib/usrp/x300/x300_radio_ctrl_impl.cpp7
-rw-r--r--host/lib/usrp/x300/x300_radio_ctrl_impl.hpp6
3 files changed, 17 insertions, 3 deletions
diff --git a/host/lib/usrp/x300/x300_impl.cpp b/host/lib/usrp/x300/x300_impl.cpp
index 0cdc7a3b3..543ac9702 100644
--- a/host/lib/usrp/x300/x300_impl.cpp
+++ b/host/lib/usrp/x300/x300_impl.cpp
@@ -960,7 +960,12 @@ void x300_impl::setup_mb(const size_t mb_i, const uhd::device_addr_t &dev_addr)
BOOST_FOREACH(const rfnoc::block_id_t &id, radio_ids) {
rfnoc::x300_radio_ctrl_impl::sptr radio(get_block_ctrl<rfnoc::x300_radio_ctrl_impl>(id));
mb.radios.push_back(radio);
- radio->setup_radio(mb.zpu_i2c, mb.clock, dev_addr.has_key("self_cal_adc_delay"));
+ radio->setup_radio(
+ mb.zpu_i2c,
+ mb.clock,
+ dev_addr.has_key("ignore-cal-file"),
+ dev_addr.has_key("self_cal_adc_delay")
+ );
}
////////////////////////////////////////////////////////////////////
diff --git a/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp b/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp
index e1b724db6..88dc73896 100644
--- a/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp
+++ b/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp
@@ -297,9 +297,14 @@ double x300_radio_ctrl_impl::get_output_samp_rate(size_t chan)
/****************************************************************************
* Radio control and setup
***************************************************************************/
-void x300_radio_ctrl_impl::setup_radio(uhd::i2c_iface::sptr zpu_i2c, x300_clock_ctrl::sptr clock, bool verbose)
+void x300_radio_ctrl_impl::setup_radio(
+ uhd::i2c_iface::sptr zpu_i2c,
+ x300_clock_ctrl::sptr clock,
+ bool ignore_cal_file,
+ bool verbose)
{
_self_cal_adc_capture_delay(verbose);
+ _ignore_cal_file = ignore_cal_file;
////////////////////////////////////////////////////////////////////
// create RF frontend interfacing
diff --git a/host/lib/usrp/x300/x300_radio_ctrl_impl.hpp b/host/lib/usrp/x300/x300_radio_ctrl_impl.hpp
index 770519eba..4f7f43b7d 100644
--- a/host/lib/usrp/x300/x300_radio_ctrl_impl.hpp
+++ b/host/lib/usrp/x300/x300_radio_ctrl_impl.hpp
@@ -73,7 +73,11 @@ public:
/*! Set up the radio. No API calls may be made before this one.
*/
void setup_radio(
- uhd::i2c_iface::sptr zpu_i2c, x300_clock_ctrl::sptr clock, bool verbose);
+ uhd::i2c_iface::sptr zpu_i2c,
+ x300_clock_ctrl::sptr clock,
+ bool ignore_cal_file,
+ bool verbose
+ );
void reset_codec();