aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/usrp2_iface.cpp
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-11-10 12:02:28 -0800
committerNick Foster <nick@nerdnetworks.org>2010-11-10 12:02:28 -0800
commit8fe1e7b29aacce7f75ae36e81706bbde02749b97 (patch)
treea3f99967174c5a8b4ec6cb38118d1adc5671d7d7 /host/lib/usrp/usrp2/usrp2_iface.cpp
parent53412938fe7c851591026ef4c25233806f4f27a3 (diff)
downloaduhd-8fe1e7b29aacce7f75ae36e81706bbde02749b97.tar.gz
uhd-8fe1e7b29aacce7f75ae36e81706bbde02749b97.tar.bz2
uhd-8fe1e7b29aacce7f75ae36e81706bbde02749b97.zip
2+: moved mboard_rev to usrp2/ in preparation for merging upstream
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_iface.cpp')
-rw-r--r--host/lib/usrp/usrp2/usrp2_iface.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_iface.cpp b/host/lib/usrp/usrp2/usrp2_iface.cpp
index a5b39ceed..d5ac14155 100644
--- a/host/lib/usrp/usrp2/usrp2_iface.cpp
+++ b/host/lib/usrp/usrp2/usrp2_iface.cpp
@@ -19,7 +19,7 @@
#include "usrp2_iface.hpp"
#include <uhd/utils/assert.hpp>
#include <uhd/types/dict.hpp>
-#include <uhd/usrp/mboard_rev.hpp>
+#include "mboard_rev.hpp"
#include <boost/thread.hpp>
#include <boost/foreach.hpp>
#include <boost/asio.hpp> //used for htonl and ntohl
@@ -54,7 +54,7 @@ public:
//extract the mboard rev numbers
byte_vector_t rev_bytes = read_eeprom(USRP2_I2C_ADDR_MBOARD, USRP2_EE_MBOARD_REV, 2);
- set_hw_rev(uhd::usrp::mboard_rev_t::from_uint16(rev_bytes.at(0) | (rev_bytes.at(1) << 8)));
+ set_hw_rev(mboard_rev_t::from_uint16(rev_bytes.at(0) | (rev_bytes.at(1) << 8)));
//check the fpga compatibility number
const boost::uint32_t fpga_compat_num = this->peek32(this->regs.compat_num_rb);
@@ -265,12 +265,12 @@ public:
/***********************************************************************
* Get/set hardware revision
**********************************************************************/
- void set_hw_rev(uhd::usrp::mboard_rev_t rev) {
+ void set_hw_rev(mboard_rev_t rev) {
hw_rev = rev;
regs = usrp2_get_regs(rev); //might be a better place to do this
}
- uhd::usrp::mboard_rev_t get_hw_rev(void) {
+ mboard_rev_t get_hw_rev(void) {
return hw_rev;
}