diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-05-17 00:30:57 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:03:53 -0800 |
commit | 11977ad25c47ba5a2f0870a5bff5ba62b661ef9c (patch) | |
tree | 09ce7011b2b23ab83cc0a75cd689902e7fba9b7e /mpm | |
parent | 3102bf1cee9e62cf8f8c3656c664a6c9c4fa9644 (diff) | |
download | uhd-11977ad25c47ba5a2f0870a5bff5ba62b661ef9c.tar.gz uhd-11977ad25c47ba5a2f0870a5bff5ba62b661ef9c.tar.bz2 uhd-11977ad25c47ba5a2f0870a5bff5ba62b661ef9c.zip |
mpm: hwd can be spawned with clock_source and ext_clock_freq
Diffstat (limited to 'mpm')
-rw-r--r-- | mpm/python/usrp_mpm/periph_manager/n310.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/n310.py b/mpm/python/usrp_mpm/periph_manager/n310.py index 618ab0b7e..85758d799 100644 --- a/mpm/python/usrp_mpm/periph_manager/n310.py +++ b/mpm/python/usrp_mpm/periph_manager/n310.py @@ -95,10 +95,6 @@ class n310(PeriphManagerBase): """ Holds N310 specific attributes and methods """ - # dboard_spimaster_addrs = {"A": "something", "B": "else"} - dboard_spimaster_addrs = {"A": "e0006000.spi",} - interfaces = {} - ######################################################################### # Overridables # @@ -124,9 +120,13 @@ class n310(PeriphManagerBase): # Initialize reference clock self._gpios.set("PWREN-CLK-MAINREF") - self._ext_clock_freq = N3XX_DEFAULT_EXT_CLOCK_FREQ + self._ext_clock_freq = float( + args.default_args.get('ext_clock_freq', N3XX_DEFAULT_EXT_CLOCK_FREQ) + ) self._clock_source = None # Gets set in set_clock_source() - self.set_clock_source(N3XX_DEFAULT_CLOCK_SOURCE) + self.set_clock_source( + args.default_args.get('clock_source', N3XX_DEFAULT_CLOCK_SOURCE) + ) with open("/sys/class/rfnoc_crossbar/crossbar0/local_addr", "w") as xbar: xbar.write("0x2") |