diff options
author | Josh Blum <josh@joshknows.com> | 2010-08-18 00:53:58 +0000 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-08-18 00:53:58 +0000 |
commit | c3fc2010bffbb74414c029910347c6aa28c2b8d4 (patch) | |
tree | 10b447af83c0c1e8a8f3d88f6b197544919cc409 /host/lib/usrp/usrp_e/dboard_iface.cpp | |
parent | 1e28ae518de1268efa370eb8b4b206b7d5a49b03 (diff) | |
download | uhd-c3fc2010bffbb74414c029910347c6aa28c2b8d4.tar.gz uhd-c3fc2010bffbb74414c029910347c6aa28c2b8d4.tar.bz2 uhd-c3fc2010bffbb74414c029910347c6aa28c2b8d4.zip |
usrp-e: added gain group property
Diffstat (limited to 'host/lib/usrp/usrp_e/dboard_iface.cpp')
-rw-r--r-- | host/lib/usrp/usrp_e/dboard_iface.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp_e/dboard_iface.cpp b/host/lib/usrp/usrp_e/dboard_iface.cpp index a9831ebc4..c9efd0c9e 100644 --- a/host/lib/usrp/usrp_e/dboard_iface.cpp +++ b/host/lib/usrp/usrp_e/dboard_iface.cpp @@ -44,6 +44,9 @@ public: //init the clock rate shadows this->set_clock_rate(UNIT_RX, _clock->get_fpga_clock_rate()); this->set_clock_rate(UNIT_TX, _clock->get_fpga_clock_rate()); + + _iface->poke16(UE_REG_GPIO_RX_DBG, 0); + _iface->poke16(UE_REG_GPIO_TX_DBG, 0); } ~usrp_e_dboard_iface(void){ @@ -165,8 +168,8 @@ boost::uint16_t usrp_e_dboard_iface::read_gpio(unit_t unit){ switch(unit){ case UNIT_RX: return _iface->peek16(UE_REG_GPIO_RX_IO); case UNIT_TX: return _iface->peek16(UE_REG_GPIO_TX_IO); + default: UHD_THROW_INVALID_CODE_PATH(); } - UHD_ASSERT_THROW(false); } void usrp_e_dboard_iface::set_atr_reg(unit_t unit, atr_reg_t atr, boost::uint16_t value){ |