aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/clock_ctrl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-06-10 15:23:24 -0700
committerJosh Blum <josh@joshknows.com>2011-06-10 15:23:24 -0700
commit09cf8eb16444b0c744b47b39b077f9d0fbb09886 (patch)
tree6f7c381b2736860378838e5bab6baeef8f602e13 /host/lib/usrp/usrp2/clock_ctrl.cpp
parente709e4d36516f4459cc08c46ae6eea1e12feb70b (diff)
downloaduhd-09cf8eb16444b0c744b47b39b077f9d0fbb09886.tar.gz
uhd-09cf8eb16444b0c744b47b39b077f9d0fbb09886.tar.bz2
uhd-09cf8eb16444b0c744b47b39b077f9d0fbb09886.zip
uhd: added more SAFE_CALL macros to hardware wrapper dtors
And removed the calls on the sptr resets (not needed now).
Diffstat (limited to 'host/lib/usrp/usrp2/clock_ctrl.cpp')
-rw-r--r--host/lib/usrp/usrp2/clock_ctrl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp2/clock_ctrl.cpp b/host/lib/usrp/usrp2/clock_ctrl.cpp
index f1fdfb7cf..66c7a6c28 100644
--- a/host/lib/usrp/usrp2/clock_ctrl.cpp
+++ b/host/lib/usrp/usrp2/clock_ctrl.cpp
@@ -19,6 +19,7 @@
#include "ad9510_regs.hpp"
#include "usrp2_regs.hpp" //spi slave constants
#include "usrp2_clk_regs.hpp"
+#include <uhd/utils/safe_call.hpp>
#include <uhd/utils/assert_has.hpp>
#include <boost/cstdint.hpp>
#include <boost/lexical_cast.hpp>
@@ -77,7 +78,7 @@ public:
this->enable_test_clock(enb_test_clk);
}
- ~usrp2_clock_ctrl_impl(void){
+ ~usrp2_clock_ctrl_impl(void){UHD_SAFE_CALL(
//power down clock outputs
this->enable_external_ref(false);
this->enable_rx_dboard_clock(false);
@@ -86,7 +87,7 @@ public:
this->enable_adc_clock(false);
this->enable_mimo_clock_out(false);
this->enable_test_clock(false);
- }
+ )}
void enable_mimo_clock_out(bool enb){
//calculate the low and high dividers