aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-02-22 00:37:53 -0800
committerJosh Blum <josh@joshknows.com>2010-02-22 00:37:53 -0800
commit9c9c96896cb38054e84213aa222883d34c7dd07b (patch)
treebe17e53e49e279f7d0b0befb1e3eb3fe0dc83d5f /host/lib/usrp/usrp2
parent3e5898fa11d9e77421cf0d3853acc49fbf4801ca (diff)
downloaduhd-9c9c96896cb38054e84213aa222883d34c7dd07b.tar.gz
uhd-9c9c96896cb38054e84213aa222883d34c7dd07b.tar.bz2
uhd-9c9c96896cb38054e84213aa222883d34c7dd07b.zip
Made implementation class for the dboard manager.
Diffstat (limited to 'host/lib/usrp/usrp2')
-rw-r--r--host/lib/usrp/usrp2/dboard_impl.cpp4
-rw-r--r--host/lib/usrp/usrp2/usrp2_impl.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/usrp/usrp2/dboard_impl.cpp b/host/lib/usrp/usrp2/dboard_impl.cpp
index b38a51b04..32c64f541 100644
--- a/host/lib/usrp/usrp2/dboard_impl.cpp
+++ b/host/lib/usrp/usrp2/dboard_impl.cpp
@@ -47,8 +47,8 @@ void usrp2_impl::dboard_init(void){
dboard_interface::sptr _dboard_interface(
new usrp2_dboard_interface(this)
);
- dboard_manager::sptr _dboard_manager(
- new dboard_manager(rx_dboard_id, tx_dboard_id, _dboard_interface)
+ dboard_manager::sptr _dboard_manager = dboard_manager::make(
+ rx_dboard_id, tx_dboard_id, _dboard_interface
);
//load dboards
diff --git a/host/lib/usrp/usrp2/usrp2_impl.cpp b/host/lib/usrp/usrp2/usrp2_impl.cpp
index ac0c3c88a..2b4e8fe39 100644
--- a/host/lib/usrp/usrp2/usrp2_impl.cpp
+++ b/host/lib/usrp/usrp2/usrp2_impl.cpp
@@ -90,9 +90,9 @@ device::sptr usrp2::make(const device_addr_t &device_addr){
);
//create the usrp2 implementation guts
- return device::sptr(dynamic_cast<device*>(
+ return device::sptr(
new usrp2_impl(ctrl_transport, data_transport)
- ));
+ );
}
/***********************************************************************