[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 04/05: uhd: added a --clock-source argument
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 04/05: uhd: added a --clock-source argument, defaulting to "internal" |
Date: |
Wed, 27 Jan 2016 22:24:43 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit 473810a760144e293f1cc74232f371265e1038fb
Author: Marcus Müller <address@hidden>
Date: Wed Jan 27 14:02:43 2016 -0800
uhd: added a --clock-source argument, defaulting to "internal"
---
gr-uhd/apps/uhd_app.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/gr-uhd/apps/uhd_app.py b/gr-uhd/apps/uhd_app.py
index bb4b9a7..0a2beec 100644
--- a/gr-uhd/apps/uhd_app.py
+++ b/gr-uhd/apps/uhd_app.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
-# Copyright 2015 Free Software Foundation, Inc.
+# Copyright 2015-2016 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
@@ -141,6 +141,9 @@ class UHDApp(object):
if args.spec:
for mb_idx in xrange(self.usrp.get_num_mboards()):
self.usrp.set_subdev_spec(args.spec, mb_idx)
+ # Set the clock source:
+ if args.clock_source is not None:
+ self.usrp.set_clock_source(args.clock_source)
# Sampling rate:
self.usrp.set_samp_rate(args.samp_rate)
self.samp_rate = self.usrp.get_samp_rate()
@@ -295,5 +298,7 @@ class UHDApp(object):
help="Show asynchronous message notifications from
UHD")
group.add_argument("--sync", choices=('default', 'pps', 'auto'),
default='auto', help="Set to 'pps' to sync devices
to PPS")
+ group.add_argument("--clock-source",
+ help="Set the clock source; typically 'internal',
'external' or 'gpsdo'")
return parser
- [Commit-gnuradio] [gnuradio] branch master updated (bdaafcc -> 161147d), git, 2016/01/27
- [Commit-gnuradio] [gnuradio] 04/05: uhd: added a --clock-source argument, defaulting to "internal",
git <=
- [Commit-gnuradio] [gnuradio] 05/05: Merge remote-tracking branch 'drmpeg/catv-64qam-tx', git, 2016/01/27
- [Commit-gnuradio] [gnuradio] 03/05: Merge branch 'maint', git, 2016/01/27
- [Commit-gnuradio] [gnuradio] 02/05: gr-dtv: Add ITU-T J.83B 64QAM transmitter updated files., git, 2016/01/27
- [Commit-gnuradio] [gnuradio] 01/05: gr-dtv: Add ITU-T J.83B 64QAM transmitter., git, 2016/01/27