aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-04-16 15:31:01 -0700
committerJosh Blum <josh@joshknows.com>2010-04-16 15:31:01 -0700
commit632ca4afbbc2e383b956a7abe8e35ee1020c7306 (patch)
tree67eea4606109e6b5d7fb100a80a1d6077374603b /host/lib/usrp/usrp2
parent6db1f998248dfe57dd2186c15fc33593eb194cc5 (diff)
downloaduhd-632ca4afbbc2e383b956a7abe8e35ee1020c7306.tar.gz
uhd-632ca4afbbc2e383b956a7abe8e35ee1020c7306.tar.bz2
uhd-632ca4afbbc2e383b956a7abe8e35ee1020c7306.zip
added automatic ref source enum
Diffstat (limited to 'host/lib/usrp/usrp2')
-rw-r--r--host/lib/usrp/usrp2/mboard_impl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/mboard_impl.cpp b/host/lib/usrp/usrp2/mboard_impl.cpp
index d7728238c..f94806c9f 100644
--- a/host/lib/usrp/usrp2/mboard_impl.cpp
+++ b/host/lib/usrp/usrp2/mboard_impl.cpp
@@ -100,6 +100,7 @@ void usrp2_impl::update_clock_config(void){
case clock_config_t::REF_INT : _iface->poke32(FR_CLOCK_CONTROL, 0x10); break;
case clock_config_t::REF_SMA : _iface->poke32(FR_CLOCK_CONTROL, 0x1C); break;
case clock_config_t::REF_MIMO: _iface->poke32(FR_CLOCK_CONTROL, 0x15); break;
+ default: throw std::runtime_error("usrp2: unhandled clock configuration reference source");
}
//clock source ref 10mhz