aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/dboard_interface.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-04-05 16:36:51 -0700
committerJosh Blum <josh@joshknows.com>2010-04-05 16:36:51 -0700
commit97496ace66842f9d7529793b2b202be9abe156c3 (patch)
treeb3c584cba724e346e353dd82560644edbf92bfd6 /host/lib/usrp/usrp2/dboard_interface.cpp
parent1cc8c6c964d4368d9e918e4cb357600453a24c94 (diff)
downloaduhd-97496ace66842f9d7529793b2b202be9abe156c3.tar.gz
uhd-97496ace66842f9d7529793b2b202be9abe156c3.tar.bz2
uhd-97496ace66842f9d7529793b2b202be9abe156c3.zip
simplified the usage of dboard, dsp, and mboard proxies.
removed the dict structure for each, we are just going to have one.
Diffstat (limited to 'host/lib/usrp/usrp2/dboard_interface.cpp')
-rw-r--r--host/lib/usrp/usrp2/dboard_interface.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/dboard_interface.cpp b/host/lib/usrp/usrp2/dboard_interface.cpp
index 87fc19117..d7c18983a 100644
--- a/host/lib/usrp/usrp2/dboard_interface.cpp
+++ b/host/lib/usrp/usrp2/dboard_interface.cpp
@@ -62,6 +62,14 @@ dboard_interface::sptr make_usrp2_dboard_interface(usrp2_impl *impl){
**********************************************************************/
usrp2_dboard_interface::usrp2_dboard_interface(usrp2_impl *impl){
_impl = impl;
+
+ //set the selection mux to use atr
+ boost::uint32_t new_sels = 0x0;
+ for(size_t i = 0; i < 16; i++){
+ new_sels |= FRF_GPIO_SEL_ATR << (i*2);
+ }
+ _impl->poke32(FR_GPIO_TX_SEL, new_sels);
+ _impl->poke32(FR_GPIO_RX_SEL, new_sels);
}
usrp2_dboard_interface::~usrp2_dboard_interface(void){