diff options
Diffstat (limited to 'mpm/python/usrp_mpm/periph_manager/e31x.py')
-rw-r--r-- | mpm/python/usrp_mpm/periph_manager/e31x.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/e31x.py b/mpm/python/usrp_mpm/periph_manager/e31x.py index 17a21d6e7..4d5e8f3cd 100644 --- a/mpm/python/usrp_mpm/periph_manager/e31x.py +++ b/mpm/python/usrp_mpm/periph_manager/e31x.py @@ -523,7 +523,7 @@ class e31x(ZynqComponents, PeriphManagerBase): def get_clock_sources(self): " Lists all available clock sources. " self.log.trace("Listing available clock sources...") - return ('internal',) + return (E310_DEFAULT_CLOCK_SOURCE,) def get_clock_source(self): " Returns the currently selected clock source " @@ -556,6 +556,15 @@ class e31x(ZynqComponents, PeriphManagerBase): self._time_source = time_source self.mboard_regs_control.set_time_source(time_source) + def get_sync_sources(self): + """ + List sync sources. + """ + return [{ + "time_source": time_source, + "clock_source": E310_DEFAULT_CLOCK_SOURCE + } for time_source in self.get_time_sources()] + ########################################################################### # GPIO API ########################################################################### |