aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp_clock
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp_clock')
-rw-r--r--host/lib/usrp_clock/octoclock/octoclock_image_loader.cpp5
-rw-r--r--host/lib/usrp_clock/octoclock/octoclock_uart.cpp6
2 files changed, 7 insertions, 4 deletions
diff --git a/host/lib/usrp_clock/octoclock/octoclock_image_loader.cpp b/host/lib/usrp_clock/octoclock/octoclock_image_loader.cpp
index 594d10df6..e030e6106 100644
--- a/host/lib/usrp_clock/octoclock/octoclock_image_loader.cpp
+++ b/host/lib/usrp_clock/octoclock/octoclock_image_loader.cpp
@@ -20,7 +20,6 @@
#include <boost/filesystem.hpp>
#include <boost/format.hpp>
-#include <boost/thread.hpp>
#include <algorithm>
#include <iterator>
@@ -29,6 +28,8 @@
#include <fstream>
#include <iostream>
#include <string>
+#include <chrono>
+#include <thread>
#include <stdint.h>
namespace fs = boost::filesystem;
@@ -194,7 +195,7 @@ static void octoclock_reset_into_bootloader(octoclock_session_t &session){
if(UHD_OCTOCLOCK_PACKET_MATCHES(RESET_ACK, pkt_out, pkt_in, len)){
// Make sure this device is now in its bootloader
- boost::this_thread::sleep(boost::posix_time::milliseconds(500));
+ std::this_thread::sleep_for(std::chrono::milliseconds(500));
uhd::device_addrs_t octoclocks = uhd::device::find(
uhd::device_addr_t(str(boost::format("addr=%s")
% session.dev_addr["addr"]
diff --git a/host/lib/usrp_clock/octoclock/octoclock_uart.cpp b/host/lib/usrp_clock/octoclock/octoclock_uart.cpp
index 490814c40..74d324645 100644
--- a/host/lib/usrp_clock/octoclock/octoclock_uart.cpp
+++ b/host/lib/usrp_clock/octoclock/octoclock_uart.cpp
@@ -7,11 +7,13 @@
#include <iostream>
#include <string>
+#include <chrono>
+#include <thread>
#include <string.h>
+#include <stdint.h>
#include <boost/algorithm/string.hpp>
#include <boost/asio.hpp>
-#include <stdint.h>
#include <boost/format.hpp>
#include <boost/thread/thread.hpp>
@@ -95,7 +97,7 @@ namespace uhd{
{
break;
}
- boost::this_thread::sleep(boost::posix_time::milliseconds(1));
+ std::this_thread::sleep_for(std::chrono::milliseconds(1));
}
return result;