diff options
author | Josh Blum <josh@joshknows.com> | 2010-08-30 18:42:45 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-08-30 18:42:45 -0700 |
commit | af0543a8b72e924c26503d838976e249d8ca6fbb (patch) | |
tree | 7d2064ea7f1243755aec5145fc5f1e6fb265ec1f /host/lib/usrp/dboard | |
parent | f5c62a46cbc44e254c0214b463d51f06675c17ab (diff) | |
download | uhd-af0543a8b72e924c26503d838976e249d8ca6fbb.tar.gz uhd-af0543a8b72e924c26503d838976e249d8ca6fbb.tar.bz2 uhd-af0543a8b72e924c26503d838976e249d8ca6fbb.zip |
usrp1: work on gpio clock divider for dbsrx, still not locking
Diffstat (limited to 'host/lib/usrp/dboard')
-rw-r--r-- | host/lib/usrp/dboard/db_dbsrx.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/host/lib/usrp/dboard/db_dbsrx.cpp b/host/lib/usrp/dboard/db_dbsrx.cpp index 06cf91d3b..81434f054 100644 --- a/host/lib/usrp/dboard/db_dbsrx.cpp +++ b/host/lib/usrp/dboard/db_dbsrx.cpp @@ -205,7 +205,12 @@ dbsrx::dbsrx(ctor_args_t args) : rx_dboard_base(args){ //set the gpio directions and atr controls (identically) this->get_iface()->set_pin_ctrl(dboard_iface::UNIT_RX, 0x0); // All unused in atr - this->get_iface()->set_gpio_ddr(dboard_iface::UNIT_RX, 0x0); // All Inputs + if (this->get_iface()->get_special_props().soft_clock_divider){ + this->get_iface()->set_gpio_ddr(dboard_iface::UNIT_RX, 0x1); // GPIO0 is clock + } + else{ + this->get_iface()->set_gpio_ddr(dboard_iface::UNIT_RX, 0x0); // All Inputs + } //send initial register settings this->send_reg(0x0, 0x5); |