diff options
author | Brent Stapleton <brent.stapleton@ettus.com> | 2018-07-20 16:07:38 -0700 |
---|---|---|
committer | Brent Stapleton <bstapleton@g.hmc.edu> | 2018-07-23 10:33:34 -0700 |
commit | 5b18614d39f5cebdd8bf3bf6e5acf3a34f204191 (patch) | |
tree | d250c2e3189628e06f1467d2b6001e620b60b8a4 /mpm/python/usrp_mpm/cores | |
parent | 102fcc0ff897f6ff4ddce03b29d4b57b492d6ead (diff) | |
download | uhd-5b18614d39f5cebdd8bf3bf6e5acf3a34f204191.tar.gz uhd-5b18614d39f5cebdd8bf3bf6e5acf3a34f204191.tar.bz2 uhd-5b18614d39f5cebdd8bf3bf6e5acf3a34f204191.zip |
uio: mpm: Fixup for opening mboard-regs UIO
- Fix the syntax to open mboard-regs UIO objects, and change the open()
and close() functions to be private.
- We were calling open() twice in every context manager line- once
manually, and once in __enter__. This commit corrects those usages, and
allows the context manager to fully manage the opening and closing of
UIO objects.
Diffstat (limited to 'mpm/python/usrp_mpm/cores')
-rw-r--r-- | mpm/python/usrp_mpm/cores/white_rabbit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpm/python/usrp_mpm/cores/white_rabbit.py b/mpm/python/usrp_mpm/cores/white_rabbit.py index c30c325e9..eeeb5fd31 100644 --- a/mpm/python/usrp_mpm/cores/white_rabbit.py +++ b/mpm/python/usrp_mpm/cores/white_rabbit.py @@ -45,7 +45,7 @@ class WhiteRabbitRegsControl(object): """ Retrieves and decodes the lock status for the PPS out of the WR core. """ - with self.regs.open(): + with self.regs: ext_sync_status = self.periph_peek32(self.PPSG_ESCR) # bit 2: PPS_VALID # bit 3: TM_VALID (timecode) |