uhd/mpm/python
Martin Braun c176425b85 mpm: Make default clock/time source values state-less
Currently, the default clock/time source is whatever the user configured
in the last session.

This fixes the scenario were you have any MPM device and do this:

    $ benchmark_rate --args $args,clock_source=external

But whoops! You forgot to attach an external 10 MHz. PLL lock fails,
nothing works. No worries, you run it again:

    $ benchmark_rate --args $args

With the previous behaviour, this would retain the setting to
'external', because there's nothing to overwrite it. You would need to
append `clock_source=internal` to get a working device again. Calling
multi_usrp::set_clock_source("internal"), or a similar API call, might
not be sufficient because the PLL lock failure might crash the program
before updating the clock source is possible.

The problem with this is twofold:

- All non-MPM devices behave differently, i.e., they have a fixed
  default ('internal') which is always applied if no other option is
  given. This is an internal inconsistency.
- Some applications (like gr-uhd's GRC bindings) simply don't set
  a clock/time source when selecting a "default", or they try and update
  the clock/time source using the API calls.

Therefore, we align the behaviour of MPM devices with the other devices,
and fall back to an internal source if nothing else is provided.
2022-03-28 12:48:28 -07:00
..
pyusrp_periphs uhd: Add support for the USRP X410 2021-06-10 12:01:53 -05:00
tests mpm: tests: Add lib/ to library load path 2021-06-18 07:28:28 -05:00
usrp_mpm mpm: Make default clock/time source values state-less 2022-03-28 12:48:28 -07:00
aurora_bist_test.py mpm: n3xx: Fix usage of UIO in Aurora tests 2018-03-01 18:34:28 -08:00
CMakeLists.txt fixup! cmake: Replace distutils.sysconfig with sysconfig 2022-01-20 08:31:50 -06:00
copy_python_module.cmake cmake: Update coding style to use lowercase commands 2018-11-14 14:10:09 -08:00
e320_bist mpm: Fix units for DRAM BIST 2022-02-03 14:21:31 -06:00
n3xx_bist mpm: n3xx: Recommend reboot USRP after BIST 2022-03-23 16:14:22 -05:00
setup.py.in cmake: Add RegMaps build component to MPM 2021-03-01 15:57:01 -06:00
socket_test.py mpm: Update all license headers 2018-02-19 16:55:08 -08:00
test_lmk.py mpm: Update all license headers 2018-02-19 16:55:08 -08:00
usrp_hwd.py sim: Integrate simulator into UHD 2020-10-28 15:25:48 -05:00
usrp_update_fs mpm: Update usrp_update_fs to support X410 2021-07-08 00:05:43 -07:00
x4xx_bist mpm: Add x4xx DRAM BIST 2022-02-03 14:21:31 -06:00