diff options
| author | Paul David <pudavid@fastmail.com> | 2017-01-12 19:19:43 -0500 | 
|---|---|---|
| committer | Martin Braun <martin.braun@ettus.com> | 2017-01-25 10:09:51 +0100 | 
| commit | 468f542210ba11cb5a81092de0547f4850c885c4 (patch) | |
| tree | 975c8dd3f230165c84348caa87aa74a92bb920b3 /host | |
| parent | 2016126f9c44e34f77bfa68713a3f9f0eaba4fc6 (diff) | |
| download | uhd-468f542210ba11cb5a81092de0547f4850c885c4.tar.gz uhd-468f542210ba11cb5a81092de0547f4850c885c4.tar.bz2 uhd-468f542210ba11cb5a81092de0547f4850c885c4.zip | |
x300: Reduced time spent on ADC self-calibration
Diffstat (limited to 'host')
| -rw-r--r-- | host/lib/usrp/x300/x300_radio_ctrl_impl.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp b/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp index bb17eb2ec..f4ad0d035 100644 --- a/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp +++ b/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp @@ -812,8 +812,8 @@ void x300_radio_ctrl_impl::_self_cal_adc_capture_delay(bool print_status)              //and count deviations from the expected value              _regs->misc_outs_reg.write(radio_regmap_t::misc_outs_reg_t::ADC_CHECKER_ENABLED, 0);              _regs->misc_outs_reg.write(radio_regmap_t::misc_outs_reg_t::ADC_CHECKER_ENABLED, 1); -            //10ms @ 200MHz = 2 million samples -            boost::this_thread::sleep(boost::posix_time::milliseconds(10)); +            //5ms @ 200MHz = 1 million samples +            boost::this_thread::sleep(boost::posix_time::milliseconds(5));              if (_regs->misc_ins_reg.read(radio_regmap_t::misc_ins_reg_t::ADC_CHECKER0_I_LOCKED)) {                  err_code += _regs->misc_ins_reg.get(radio_regmap_t::misc_ins_reg_t::ADC_CHECKER0_I_ERROR);              } else { @@ -827,8 +827,8 @@ void x300_radio_ctrl_impl::_self_cal_adc_capture_delay(bool print_status)              //and count deviations from the expected value              _regs->misc_outs_reg.write(radio_regmap_t::misc_outs_reg_t::ADC_CHECKER_ENABLED, 0);              _regs->misc_outs_reg.write(radio_regmap_t::misc_outs_reg_t::ADC_CHECKER_ENABLED, 1); -            //10ms @ 200MHz = 2 million samples -            boost::this_thread::sleep(boost::posix_time::milliseconds(10)); +            //5ms @ 200MHz = 1 million samples +            boost::this_thread::sleep(boost::posix_time::milliseconds(5));              if (_regs->misc_ins_reg.read(radio_regmap_t::misc_ins_reg_t::ADC_CHECKER0_Q_LOCKED)) {                  err_code += _regs->misc_ins_reg.get(radio_regmap_t::misc_ins_reg_t::ADC_CHECKER0_Q_ERROR);              } else { | 
