uhd/mpm/python/usrp_mpm
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
..
chips fixup! uhd: add support for max10 variants 2022-03-28 12:47:17 -07:00
cores cmake: Update coding style to use lowercase commands 2018-11-14 14:10:09 -08:00
dboard_manager mpm: Factor out common code between E31x_db and Neon classes 2022-03-17 14:00:06 -05:00
periph_manager mpm: Make default clock/time source values state-less 2022-03-28 12:48:28 -07:00
simulator sim: Move SelectableQueue and SendWrapper 2020-10-28 15:25:48 -05:00
sys_utils uhd: Add support for the USRP X410 2021-06-10 12:01:53 -05:00
xports mpm: xportmgr_udp: Match DNAT arguments to manpage 2022-02-21 13:27:39 -06:00
__init__.py.in sim: Lay Groundwork for Simulator 2020-10-07 15:29:19 -05:00
aurora_control.py mpm: Update all license headers 2018-02-19 16:55:08 -08:00
bfrfs.py mpm: Update all license headers 2018-02-19 16:55:08 -08:00
bist.py mpm: Fix units for DRAM BIST 2022-02-03 14:21:31 -06:00
CMakeLists.txt mpm: add tlv_eeprom 2021-05-31 05:28:47 -07:00
components.py mpm: Skip DTS compatibility check if DTS is not being updated. 2021-07-09 00:34:33 -07:00
discovery.py mpm: Use receiving socket for sending response 2022-03-02 13:06:23 -06:00
e31x_legacy_eeprom.py mpm: e31x: Accept FF terminated strings in eeprom 2020-09-04 11:38:27 -07:00
eeprom.py mpm: eeprom: Improve E320 and N3x0 EEPROM code/comments 2022-02-16 14:53:37 -06:00
ethdispatch.py mpm: Add support for internal Ethernet interface 2020-07-16 10:00:12 -05:00
fpga_bit_to_bin.py mpm: Update all license headers 2018-02-19 16:55:08 -08:00
gpsd_iface.py mpm: speed up reading gps mboard sensors 2022-03-23 16:19:04 -05:00
mpmlog.py fixup! mpm: Use prefs API in logging module 2020-12-04 12:07:16 -08:00
mpmtypes.py mpm: add device name to discovery process 2022-02-08 13:55:35 -06:00
mpmutils.py mpm: Demote WARNING on minor compat mismatch to DEBUG 2022-01-14 14:36:19 -06:00
prefs.py docs: Add comments on mpm.conf 2020-07-09 00:39:11 -07:00
process_manager.py sim: Integrate simulator into UHD 2020-10-28 15:25:48 -05:00
rpc_server.py mpm: add device name to discovery process 2022-02-08 13:55:35 -06:00
test_bfrfs.py mpm: Update all license headers 2018-02-19 16:55:08 -08:00
tlv_eeprom.py mpm: add tlv_eeprom 2021-05-31 05:28:47 -07:00
user_eeprom.py mpm: Factor out user EEPROM code into own module 2018-12-20 14:57:54 -08:00