summaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-10-22 12:47:02 -0700
committerJosh Blum <josh@joshknows.com>2010-10-22 19:11:58 -0700
commit2d71c7a6e973b5715ca8e14cac99fb81fca9822c (patch)
treea9ba615ee5ef70a675e0145d641bb046128e223f /host/lib/usrp
parent16791bedfdb6f62dbb49f124d75b8793b8a599f0 (diff)
downloaduhd-2d71c7a6e973b5715ca8e14cac99fb81fca9822c.tar.gz
uhd-2d71c7a6e973b5715ca8e14cac99fb81fca9822c.tar.bz2
uhd-2d71c7a6e973b5715ca8e14cac99fb81fca9822c.zip
BasicRX: GPIOs now output 0 to decrease noise pickup.
Diffstat (limited to 'host/lib/usrp')
-rw-r--r--host/lib/usrp/dboard/db_basic_and_lf.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/host/lib/usrp/dboard/db_basic_and_lf.cpp b/host/lib/usrp/dboard/db_basic_and_lf.cpp
index 41f6f8002..c58d0e326 100644
--- a/host/lib/usrp/dboard/db_basic_and_lf.cpp
+++ b/host/lib/usrp/dboard/db_basic_and_lf.cpp
@@ -95,6 +95,11 @@ UHD_STATIC_BLOCK(reg_basic_and_lf_dboards){
**********************************************************************/
basic_rx::basic_rx(ctor_args_t args, double max_freq) : rx_dboard_base(args){
_max_freq = max_freq;
+
+ //set GPIOs to output 0x0000 to decrease noise pickup
+ this->get_iface()->set_pin_ctrl(dboard_iface::UNIT_RX, 0x0000);
+ this->get_iface()->set_gpio_ddr(dboard_iface::UNIT_RX, 0xFFFF);
+ this->get_iface()->write_gpio(dboard_iface::UNIT_RX, 0x0000);
}
basic_rx::~basic_rx(void){