aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/dboard_manager/eiscat.py
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-07-12 16:32:05 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:04:00 -0800
commit7cd675833655829655176fb17c9c592aefb63c55 (patch)
tree29d757f6c551cd591b6ca3d8c82915eddc007b44 /mpm/python/usrp_mpm/dboard_manager/eiscat.py
parente5a7be445377621ab68740487ed2e0baba5347bc (diff)
downloaduhd-7cd675833655829655176fb17c9c592aefb63c55.tar.gz
uhd-7cd675833655829655176fb17c9c592aefb63c55.tar.bz2
uhd-7cd675833655829655176fb17c9c592aefb63c55.zip
n310/eiscat: Removed 20 MHz as a valid ref clock frequency
Diffstat (limited to 'mpm/python/usrp_mpm/dboard_manager/eiscat.py')
-rw-r--r--mpm/python/usrp_mpm/dboard_manager/eiscat.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/mpm/python/usrp_mpm/dboard_manager/eiscat.py b/mpm/python/usrp_mpm/dboard_manager/eiscat.py
index b4ecd01dd..822923fbf 100644
--- a/mpm/python/usrp_mpm/dboard_manager/eiscat.py
+++ b/mpm/python/usrp_mpm/dboard_manager/eiscat.py
@@ -435,7 +435,7 @@ class EISCAT(DboardManagerBase):
self.log = get_logger("EISCAT-{}".format(slot_idx))
self.log.trace("Initializing EISCAT daughterboard, slot index {}".format(self.slot_idx))
self.initialized = False
- self.ref_clock_freq = 10e6
+ self.ref_clock_freq = 10e6 # This is the only supported clock rate
# Define some attributes so that PyLint stays quiet:
self.radio_regs = None
self.jesd_cores = None
@@ -701,13 +701,13 @@ class EISCAT(DboardManagerBase):
"""
Call this to notify the daughterboard about a change in reference clock
"""
- if self.initialized and freq != self.ref_clock_freq:
- self.log.warning(
- "Attempting to update external reference clock frequency "
- "after initialization! This will only take effect after "
- "the daughterboard is re-initialized. Unsetting init flag now."
+ if freq != self.ref_clock_freq:
+ self.log.error(
+ "EISCAT daughterboard only supports a reference clock " \
+ "frequency of {} MHz".format(self.ref_clock_freq/1e6)
)
- self.initialized = False
- self.ref_clock_freq = freq
+ raise RuntimeError("Invalid reference clock frequency: {}".format(
+ freq
+ ))