aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-02-26 11:01:19 +0000
committerJosh Blum <josh@joshknows.com>2010-02-26 11:01:19 +0000
commit1b965831ae7588c7879d84de4e5fbd78ca614761 (patch)
treebade608170b444a46f6da5e396e013ec77b66957 /host/lib/usrp
parent778a41b393b7d517463950c4ac014d3a2eb8eceb (diff)
downloaduhd-1b965831ae7588c7879d84de4e5fbd78ca614761.tar.gz
uhd-1b965831ae7588c7879d84de4e5fbd78ca614761.tar.bz2
uhd-1b965831ae7588c7879d84de4e5fbd78ca614761.zip
made app to load usrp1e fpga images, and tested it to be working
Diffstat (limited to 'host/lib/usrp')
-rw-r--r--host/lib/usrp/usrp1e/fpga-downloader.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/usrp/usrp1e/fpga-downloader.cc b/host/lib/usrp/usrp1e/fpga-downloader.cc
index 15023d945..f7c78b875 100644
--- a/host/lib/usrp/usrp1e/fpga-downloader.cc
+++ b/host/lib/usrp/usrp1e/fpga-downloader.cc
@@ -43,7 +43,7 @@ const unsigned int PROG_B = 175;
const unsigned int DONE = 173;
const unsigned int INIT_B = 114;
-static std::string bit_file = "safe_u1e.bin";
+//static std::string bit_file = "safe_u1e.bin";
const int BUF_SIZE = 4096;
@@ -198,7 +198,7 @@ void spidev::send(char *buf, char *rbuf, unsigned int nbytes)
}
-static void send_file_to_fpga(std::string &file_name, gpio &error, gpio &done)
+static void send_file_to_fpga(const std::string &file_name, gpio &error, gpio &done)
{
std::ifstream bitstream;
@@ -258,5 +258,5 @@ void uhd::usrp::usrp1e::load_fpga(const std::string &bin_file){
std::cout << "Done = " << gpio_done.get_value() << std::endl;
- send_file_to_fpga(bit_file, gpio_init_b, gpio_done);
+ send_file_to_fpga(bin_file, gpio_init_b, gpio_done);
}