aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/dboard_impl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-04-01 13:30:34 -0700
committerJosh Blum <josh@joshknows.com>2010-04-01 13:30:34 -0700
commit792fad3afca0eb45fdc3eb27b5d1678c507d4724 (patch)
tree730f97fd7981907e5acd879c4aa814185a4a37fc /host/lib/usrp/usrp2/dboard_impl.cpp
parentf01b1a394fbf7304aefc0231f500a52db457767a (diff)
downloaduhd-792fad3afca0eb45fdc3eb27b5d1678c507d4724.tar.gz
uhd-792fad3afca0eb45fdc3eb27b5d1678c507d4724.tar.bz2
uhd-792fad3afca0eb45fdc3eb27b5d1678c507d4724.zip
use defined constants for the register addresses
Diffstat (limited to 'host/lib/usrp/usrp2/dboard_impl.cpp')
-rw-r--r--host/lib/usrp/usrp2/dboard_impl.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/host/lib/usrp/usrp2/dboard_impl.cpp b/host/lib/usrp/usrp2/dboard_impl.cpp
index 86ee52594..29fb32eeb 100644
--- a/host/lib/usrp/usrp2/dboard_impl.cpp
+++ b/host/lib/usrp/usrp2/dboard_impl.cpp
@@ -20,7 +20,6 @@
#include "usrp2_regs.hpp"
#include <uhd/utils/assert.hpp>
#include <boost/format.hpp>
-#include <cstddef>
using namespace uhd;
using namespace uhd::usrp;
@@ -80,7 +79,7 @@ void usrp2_impl::update_rx_mux_config(void){
rx_mux = (((rx_mux >> 0) & 0x3) << 2) | (((rx_mux >> 2) & 0x3) << 0);
}
- this->poke(offsetof(dsp_rx_regs_t, rx_mux) + DSP_RX_BASE, rx_mux);
+ this->poke(FR_DSP_RX_MUX, rx_mux);
}
void usrp2_impl::update_tx_mux_config(void){
@@ -93,7 +92,7 @@ void usrp2_impl::update_tx_mux_config(void){
tx_mux = (((tx_mux >> 0) & 0x1) << 1) | (((tx_mux >> 1) & 0x1) << 0);
}
- this->poke(offsetof(dsp_tx_regs_t, tx_mux) + DSP_TX_BASE, tx_mux);
+ this->poke(FR_DSP_TX_MUX, tx_mux);
}
/***********************************************************************