aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard_manager.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-04-01 15:16:29 +0000
committerJosh Blum <josh@joshknows.com>2010-04-01 15:16:29 +0000
commit8fd3ce07369a7962dc8eb5ace2007a80ad7dd907 (patch)
treebb4f5c61f8a7809af1c58d5513dc6c3e78c7a5b2 /host/lib/usrp/dboard_manager.cpp
parent58d71729716a688af36ba4a413e6f6ee4729eefc (diff)
parentf1f4865119605c66ffece113a621308d82512d23 (diff)
downloaduhd-8fd3ce07369a7962dc8eb5ace2007a80ad7dd907.tar.gz
uhd-8fd3ce07369a7962dc8eb5ace2007a80ad7dd907.tar.bz2
uhd-8fd3ce07369a7962dc8eb5ace2007a80ad7dd907.zip
Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhd into usrp_e
Conflicts: host/include/uhd/usrp/CMakeLists.txt
Diffstat (limited to 'host/lib/usrp/dboard_manager.cpp')
-rw-r--r--host/lib/usrp/dboard_manager.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/host/lib/usrp/dboard_manager.cpp b/host/lib/usrp/dboard_manager.cpp
index 15be7eedc..3a5cf3a35 100644
--- a/host/lib/usrp/dboard_manager.cpp
+++ b/host/lib/usrp/dboard_manager.cpp
@@ -16,6 +16,7 @@
//
#include <uhd/usrp/dboard_manager.hpp>
+#include <uhd/usrp/subdev_props.hpp>
#include <uhd/utils/gain_handler.hpp>
#include <uhd/utils/static.hpp>
#include <uhd/utils/assert.hpp>
@@ -275,12 +276,9 @@ wax::obj dboard_manager_impl::get_tx_subdev(const std::string &subdev_name){
void dboard_manager_impl::set_nice_gpio_pins(void){
//std::cout << "Set nice GPIO pins" << std::endl;
- _interface->set_gpio_ddr(dboard_interface::GPIO_RX_BANK, 0x0000); //all inputs
- _interface->set_gpio_ddr(dboard_interface::GPIO_TX_BANK, 0x0000);
+ _interface->set_gpio_ddr(dboard_interface::GPIO_BANK_RX, 0x0000); //all inputs
+ _interface->set_atr_reg(dboard_interface::GPIO_BANK_RX, dboard_interface::ATR_REG_IDLE, 0x0000); //all low
- _interface->write_gpio(dboard_interface::GPIO_RX_BANK, 0x0000); //all zeros
- _interface->write_gpio(dboard_interface::GPIO_TX_BANK, 0x0000);
-
- _interface->set_atr_reg(dboard_interface::GPIO_RX_BANK, 0x0000, 0x0000, 0x0000); //software controlled
- _interface->set_atr_reg(dboard_interface::GPIO_TX_BANK, 0x0000, 0x0000, 0x0000);
+ _interface->set_gpio_ddr(dboard_interface::GPIO_BANK_TX, 0x0000); //all inputs
+ _interface->set_atr_reg(dboard_interface::GPIO_BANK_TX, dboard_interface::ATR_REG_IDLE, 0x0000); //all low
}