diff options
author | Josh Blum <josh@joshknows.com> | 2010-10-04 11:18:10 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-10-04 11:18:10 -0700 |
commit | b7d828b30bff1f2134319679137f99004f1d4b49 (patch) | |
tree | f63a9a5bf6a240aab7989aeae99b3e657f9d043c /host/apps/omap_debug | |
parent | b34af3c910a54d8afd4b1f00f1254c3ab762c82a (diff) | |
parent | c0e03bb2edea4645f46f25afcc9be8b7b03f68df (diff) | |
download | uhd-b7d828b30bff1f2134319679137f99004f1d4b49.tar.gz uhd-b7d828b30bff1f2134319679137f99004f1d4b49.tar.bz2 uhd-b7d828b30bff1f2134319679137f99004f1d4b49.zip |
Merge branch 'usrp_e_mmap' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e_mmap
Diffstat (limited to 'host/apps/omap_debug')
-rw-r--r-- | host/apps/omap_debug/fpga-downloader.cc | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/host/apps/omap_debug/fpga-downloader.cc b/host/apps/omap_debug/fpga-downloader.cc index fb96b64a3..4e475b5c1 100644 --- a/host/apps/omap_debug/fpga-downloader.cc +++ b/host/apps/omap_debug/fpga-downloader.cc @@ -97,15 +97,17 @@ gpio::gpio(unsigned int gpio_num, gpio_direction pin_direction) std::fstream direction_file; std::string direction_file_name; - direction_file_name = base_path.str() + "/direction"; - - direction_file.open(direction_file_name.c_str()); - if (!direction_file.is_open()) - std::cout << "Failed to open direction file." << std::endl; - if (pin_direction == OUT) - direction_file << "out" << std::endl; - else - direction_file << "in" << std::endl; + if (gpio_num != 114) { + direction_file_name = base_path.str() + "/direction"; + + direction_file.open(direction_file_name.c_str()); + if (!direction_file.is_open()) + std::cout << "Failed to open direction file." << std::endl; + if (pin_direction == OUT) + direction_file << "out" << std::endl; + else + direction_file << "in" << std::endl; + } std::string value_file_name; |