aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2015-01-16 10:22:51 +0100
committerMartin Braun <martin.braun@ettus.com>2015-01-16 10:22:51 +0100
commit9e6ff291b464f7ae7cbc7abfe29b34550badeb74 (patch)
tree9e2cc14a064998f37cc81ed7aa491f886252c6af /host/lib
parent3b2976de83609d70aff6d4c90a72773972753b97 (diff)
parent734180c44b438cf707c4ff48bf4b11a8c5a94136 (diff)
downloaduhd-9e6ff291b464f7ae7cbc7abfe29b34550badeb74.tar.gz
uhd-9e6ff291b464f7ae7cbc7abfe29b34550badeb74.tar.bz2
uhd-9e6ff291b464f7ae7cbc7abfe29b34550badeb74.zip
Merge branch 'maint'
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/usrp/e300/e300_impl.cpp29
-rw-r--r--host/lib/usrp/e300/e300_impl.hpp2
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 43a9b7b26..3f1b4fea4 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);