aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp_e100
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-05-01 18:21:29 -0700
committerJosh Blum <josh@joshknows.com>2011-05-01 18:21:29 -0700
commit6f0a98ee2e9e2090c6bf7d56260cb95b0eb1fbb3 (patch)
tree121f8c82241bf312e704917d6a1598372cc67b65 /host/lib/usrp/usrp_e100
parent5c6c179689ef76ccd25d09ac4faeb9a836a066c8 (diff)
downloaduhd-6f0a98ee2e9e2090c6bf7d56260cb95b0eb1fbb3.tar.gz
uhd-6f0a98ee2e9e2090c6bf7d56260cb95b0eb1fbb3.tar.bz2
uhd-6f0a98ee2e9e2090c6bf7d56260cb95b0eb1fbb3.zip
USRP1: added support for setting clock rate from EEPROM
Basically, same deal as the previous changeset but for USRP1. Modified previous changes so that the key is shorter (mcr = master_clock_rate)
Diffstat (limited to 'host/lib/usrp/usrp_e100')
-rw-r--r--host/lib/usrp/usrp_e100/clock_ctrl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp_e100/clock_ctrl.cpp b/host/lib/usrp/usrp_e100/clock_ctrl.cpp
index 851ce29b0..2e3eb5cb9 100644
--- a/host/lib/usrp/usrp_e100/clock_ctrl.cpp
+++ b/host/lib/usrp/usrp_e100/clock_ctrl.cpp
@@ -187,9 +187,9 @@ public:
//initialize the FPGA clock to something
bool fpga_clock_initialized = false;
try{
- if (_iface->mb_eeprom.has_key("master_clock_rate")){
+ if (not _iface->mb_eeprom["mcr"].empty()){
std::cout << "Read FPGA clock rate from EEPROM setting." << std::endl;
- const double master_clock_rate = boost::lexical_cast<double>(_iface->mb_eeprom["master_clock_rate"]);
+ const double master_clock_rate = boost::lexical_cast<double>(_iface->mb_eeprom["mcr"]);
std::cout << boost::format("Initializing FPGA clock to %fMHz...") % (master_clock_rate/1e6) << std::endl;
this->set_fpga_clock_rate(master_clock_rate);
fpga_clock_initialized = true;