diff options
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/usrp/e300/e300_impl.cpp | 29 | ||||
-rw-r--r-- | host/lib/usrp/e300/e300_impl.hpp | 2 |
2 files changed, 0 insertions, 31 deletions
diff --git a/host/lib/usrp/e300/e300_impl.cpp b/host/lib/usrp/e300/e300_impl.cpp index 59788fbea..d04794947 100644 --- a/host/lib/usrp/e300/e300_impl.cpp +++ b/host/lib/usrp/e300/e300_impl.cpp @@ -681,35 +681,6 @@ double e300_impl::_set_tick_rate(const double rate) return _tick_rate; } -void e300_impl::_load_fpga_image(const std::string &path) -{ - if (not fs::exists("/dev/xdevcfg")) - { - ::system("mknod /dev/xdevcfg c 259 0"); - //throw uhd::runtime_error("no xdevcfg, please run: mknod /dev/xdevcfg c 259 0"); - } - - UHD_MSG(status) << "Loading FPGA image: " << path << "..." << std::flush; - - std::ifstream fpga_file(path.c_str(), std::ios_base::binary); - UHD_ASSERT_THROW(fpga_file.good()); - - std::FILE *wfile; - wfile = std::fopen("/dev/xdevcfg", "wb"); - UHD_ASSERT_THROW(!(wfile == NULL)); - - char buff[16384]; // devcfg driver can't handle huge writes - do { - fpga_file.read(buff, sizeof(buff)); - std::fwrite(buff, 1, fpga_file.gcount(), wfile); - } while (fpga_file); - - fpga_file.close(); - std::fclose(wfile); - - UHD_MSG(status) << " done" << std::endl; -} - void e300_impl::_register_loopback_self_test(wb_iface::sptr iface) { bool test_fail = false; diff --git a/host/lib/usrp/e300/e300_impl.hpp b/host/lib/usrp/e300/e300_impl.hpp index 9cfd80afd..a4170ee42 100644 --- a/host/lib/usrp/e300/e300_impl.hpp +++ b/host/lib/usrp/e300/e300_impl.hpp @@ -194,8 +194,6 @@ private: // types }; private: // methods - void _load_fpga_image(const std::string &path); - void _register_loopback_self_test(uhd::wb_iface::sptr iface); boost::uint32_t _get_version(compat_t which); |