aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/mboard_impl.cpp
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-08-13 11:34:07 -0700
committerNick Foster <nick@nerdnetworks.org>2010-08-13 11:34:07 -0700
commitf09d9820ed40371f552d3a910bc2d8170d290653 (patch)
treed0a2d1b5d807aea51717be881cbfd27fbd45fe20 /host/lib/usrp/usrp2/mboard_impl.cpp
parent3fe2744e7aef9f6989b161be3af63a24392ed18a (diff)
downloaduhd-f09d9820ed40371f552d3a910bc2d8170d290653.tar.gz
uhd-f09d9820ed40371f552d3a910bc2d8170d290653.tar.bz2
uhd-f09d9820ed40371f552d3a910bc2d8170d290653.zip
first stab at a GPS driver in gps_ctrl.cpp. not the most expandable thing in the world but there's only so many GPS interfaces out there.
Diffstat (limited to 'host/lib/usrp/usrp2/mboard_impl.cpp')
-rw-r--r--host/lib/usrp/usrp2/mboard_impl.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/host/lib/usrp/usrp2/mboard_impl.cpp b/host/lib/usrp/usrp2/mboard_impl.cpp
index 96c98f6c5..ed6398405 100644
--- a/host/lib/usrp/usrp2/mboard_impl.cpp
+++ b/host/lib/usrp/usrp2/mboard_impl.cpp
@@ -51,16 +51,11 @@ usrp2_mboard_impl::usrp2_mboard_impl(
//set the device revision (USRP2 or USRP2+) based on the above
_iface->set_hw_rev((_rev_hi << 8) | _rev_lo);
- //TODO DEBUG! this is just here to test writing to and reading from the UART.
- std::string mystr = "PTIME:TIME?\n";
- _iface->write_uart(2, mystr);
- mystr = _iface->read_uart(2, 20);
- std::cout << "what time is it? " << mystr.c_str();
-
//contruct the interfaces to mboard perifs
_clock_ctrl = usrp2_clock_ctrl::make(_iface);
_codec_ctrl = usrp2_codec_ctrl::make(_iface);
_serdes_ctrl = usrp2_serdes_ctrl::make(_iface);
+ _gps_ctrl = usrp2_gps_ctrl::make(_iface);
//TODO move to dsp impl...
//load the allowed decim/interp rates