diff options
author | Josh Blum <josh@joshknows.com> | 2010-05-03 11:30:17 +0000 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-05-03 11:30:17 +0000 |
commit | 2e222f4a77df389551d08b42a1bf947487d1442f (patch) | |
tree | e2c9018e3471591e0a912955a16a030d59f808bd /host/lib/usrp/usrp_e/usrp_e_impl.cpp | |
parent | f92582169e35f96a945f745ce46326230b25888d (diff) | |
download | uhd-2e222f4a77df389551d08b42a1bf947487d1442f.tar.gz uhd-2e222f4a77df389551d08b42a1bf947487d1442f.tar.bz2 uhd-2e222f4a77df389551d08b42a1bf947487d1442f.zip |
spi working, talked to ad9522
Diffstat (limited to 'host/lib/usrp/usrp_e/usrp_e_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp_e/usrp_e_impl.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp_e/usrp_e_impl.cpp b/host/lib/usrp/usrp_e/usrp_e_impl.cpp index 211b939ee..52bbcdd32 100644 --- a/host/lib/usrp/usrp_e/usrp_e_impl.cpp +++ b/host/lib/usrp/usrp_e/usrp_e_impl.cpp @@ -21,7 +21,9 @@ #include <uhd/utils/static.hpp> #include <boost/format.hpp> #include <boost/filesystem.hpp> +#include <iostream> #include <fcntl.h> //open +#include "clock_ctrl.hpp" using namespace uhd; using namespace uhd::usrp; @@ -73,6 +75,8 @@ device::sptr usrp_e::make(const device_addr_t &device_addr){ * Structors **********************************************************************/ usrp_e_impl::usrp_e_impl(const std::string &node){ + std::cout << boost::format("Opening USRP-E on %s") % node << std::endl; + //open the device node and check file descriptor if ((_node_fd = ::open(node.c_str(), O_RDWR)) < 0){ throw std::runtime_error(str( @@ -82,6 +86,8 @@ usrp_e_impl::usrp_e_impl(const std::string &node){ _iface = usrp_e_iface::make(_node_fd); + clock_ctrl::sptr my_clk_ctrl = clock_ctrl::make(_iface); + //initialize the mboard mboard_init(); |