From 11977ad25c47ba5a2f0870a5bff5ba62b661ef9c Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 17 May 2017 00:30:57 -0700 Subject: mpm: hwd can be spawned with clock_source and ext_clock_freq --- mpm/python/usrp_mpm/periph_manager/n310.py | 12 ++++++------ 1 file 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") -- cgit v1.2.3