aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/mb_controller.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2020-03-02 15:25:13 -0800
committeratrnati <54334261+atrnati@users.noreply.github.com>2020-03-03 08:51:32 -0600
commit876d4150aa3da531ddd687b48afada6e43f79146 (patch)
treefd72a71419f4cd800d4e500cfcaded4dfc8dc367 /host/lib/rfnoc/mb_controller.cpp
parent1393553d623bdf4ba40d5435c9719b6ce990d9ac (diff)
downloaduhd-876d4150aa3da531ddd687b48afada6e43f79146.tar.gz
uhd-876d4150aa3da531ddd687b48afada6e43f79146.tar.bz2
uhd-876d4150aa3da531ddd687b48afada6e43f79146.zip
uhd: Apply clang-format against all .cpp and .hpp files in host/
Note: template_lvbitx.{cpp,hpp} need to be excluded from the list of files that clang-format gets applied against.
Diffstat (limited to 'host/lib/rfnoc/mb_controller.cpp')
-rw-r--r--host/lib/rfnoc/mb_controller.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/host/lib/rfnoc/mb_controller.cpp b/host/lib/rfnoc/mb_controller.cpp
index 62ec1f886..356224f83 100644
--- a/host/lib/rfnoc/mb_controller.cpp
+++ b/host/lib/rfnoc/mb_controller.cpp
@@ -127,12 +127,12 @@ uhd::time_spec_t mb_controller::timekeeper::get_time_last_pps()
return time_spec_t::from_ticks(get_ticks_last_pps(), _tick_rate);
}
-void mb_controller::timekeeper::set_time_now(const uhd::time_spec_t &time)
+void mb_controller::timekeeper::set_time_now(const uhd::time_spec_t& time)
{
set_ticks_now(time.to_ticks(_tick_rate));
}
-void mb_controller::timekeeper::set_time_next_pps(const uhd::time_spec_t &time)
+void mb_controller::timekeeper::set_time_next_pps(const uhd::time_spec_t& time)
{
set_ticks_next_pps(time.to_ticks(_tick_rate));
}
@@ -146,7 +146,8 @@ void mb_controller::timekeeper::set_tick_rate(const double tick_rate)
// The period is the inverse of the tick rate, normalized by nanoseconds,
// and represented as Q32 (e.g., period == 1ns means period_ns == 1<<32)
- const uint64_t period_ns = static_cast<uint64_t>(1e9 / tick_rate * (uint64_t(1) << 32));
+ const uint64_t period_ns =
+ static_cast<uint64_t>(1e9 / tick_rate * (uint64_t(1) << 32));
set_period(period_ns);
}