summaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-02-03 18:51:42 -0800
committerJosh Blum <josh@joshknows.com>2011-02-03 18:51:42 -0800
commitd6c52af6a8ac2e2a85942116768cf69971aac48a (patch)
tree58f90b7da55eda0317ac1343ad7878c9adfdc631 /host/lib/usrp/usrp2
parent5d459d1cb09cdce0c1fd4d7e7d0259310921b94f (diff)
parent43b19815fec253dc7e5538329f9fe1363f007b8a (diff)
downloaduhd-d6c52af6a8ac2e2a85942116768cf69971aac48a.tar.gz
uhd-d6c52af6a8ac2e2a85942116768cf69971aac48a.tar.bz2
uhd-d6c52af6a8ac2e2a85942116768cf69971aac48a.zip
Merge branch 'convert_fc64'
Diffstat (limited to 'host/lib/usrp/usrp2')
-rw-r--r--host/lib/usrp/usrp2/mboard_impl.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/mboard_impl.cpp b/host/lib/usrp/usrp2/mboard_impl.cpp
index 3e7e8b01f..784f662d9 100644
--- a/host/lib/usrp/usrp2/mboard_impl.cpp
+++ b/host/lib/usrp/usrp2/mboard_impl.cpp
@@ -355,6 +355,10 @@ void usrp2_mboard_impl::get(const wax::obj &key_, wax::obj &val){
val = _iface->mb_eeprom;
return;
+ case MBOARD_PROP_CLOCK_RATE:
+ val = this->get_master_clock_freq();
+ return;
+
default: UHD_THROW_PROP_GET_ERROR();
}
}
@@ -412,6 +416,10 @@ void usrp2_mboard_impl::set(const wax::obj &key, const wax::obj &val){
_iface->mb_eeprom = mboard_eeprom_t(*_iface, mboard_eeprom_t::MAP_N100);
return;
+ case MBOARD_PROP_CLOCK_RATE:
+ UHD_ASSERT_THROW(val.as<double>() == this->get_master_clock_freq());
+ return;
+
default: UHD_THROW_PROP_SET_ERROR();
}
}