diff options
author | Martin Braun <martin.braun@ettus.com> | 2016-09-05 11:47:55 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2016-09-05 11:47:55 -0700 |
commit | bb95d96ad8cdcdb3f12ef62231c1b0f9dcd7ebfd (patch) | |
tree | 4eb7fc68e2e04c6e47d68629a3e147bed65ddd2b /host/lib/usrp/b200/b200_impl.cpp | |
parent | 2262316abdfcb0cbe7c4a99290d85e1da84811e8 (diff) | |
parent | 83912104a9c1ab3631f755a4d98ee86e195db690 (diff) | |
download | uhd-bb95d96ad8cdcdb3f12ef62231c1b0f9dcd7ebfd.tar.gz uhd-bb95d96ad8cdcdb3f12ef62231c1b0f9dcd7ebfd.tar.bz2 uhd-bb95d96ad8cdcdb3f12ef62231c1b0f9dcd7ebfd.zip |
Merge branch 'maint'
Diffstat (limited to 'host/lib/usrp/b200/b200_impl.cpp')
-rw-r--r-- | host/lib/usrp/b200/b200_impl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp index aed1204d3..33f0850eb 100644 --- a/host/lib/usrp/b200/b200_impl.cpp +++ b/host/lib/usrp/b200/b200_impl.cpp @@ -461,6 +461,10 @@ b200_impl::b200_impl(const uhd::device_addr_t& device_addr, usb_device_handle::s //////////////////////////////////////////////////////////////////// _async_task_data.reset(new AsyncTaskData()); _async_task_data->async_md.reset(new async_md_type(1000/*messages deep*/)); + if (_gpsdo_capable) + { + _async_task_data->gpsdo_uart = b200_uart::make(_ctrl_transport, B200_TX_GPS_UART_SID); + } _async_task = uhd::msg_task::make(boost::bind(&b200_impl::handle_async_task, this, _ctrl_transport, _async_task_data)); //////////////////////////////////////////////////////////////////// @@ -481,10 +485,6 @@ b200_impl::b200_impl(const uhd::device_addr_t& device_addr, usb_device_handle::s //////////////////////////////////////////////////////////////////// if (_gpsdo_capable) { - _async_task_data->gpsdo_uart = b200_uart::make(_ctrl_transport, B200_TX_GPS_UART_SID); - _async_task_data->gpsdo_uart->set_baud_divider(B200_BUS_CLOCK_RATE/115200); - _async_task_data->gpsdo_uart->write_uart("\n"); //cause the baud and response to be setup - boost::this_thread::sleep(boost::posix_time::seconds(1)); //allow for a little propagation if ((_local_ctrl->peek32(RB32_CORE_STATUS) & 0xff) != B200_GPSDO_ST_NONE) { |