diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-11-14 13:35:20 -0800 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2020-01-23 11:37:51 -0800 |
commit | 354886ed4cee82317f6ad45bc57a14af67cce85f (patch) | |
tree | 0bb7b1d99055676c28fd20f04f90dfbcd424ffae /mpm/python/e320_bist | |
parent | 90a72e8cd4cd1d4971c0e09d9813c9fc43371062 (diff) | |
download | uhd-354886ed4cee82317f6ad45bc57a14af67cce85f.tar.gz uhd-354886ed4cee82317f6ad45bc57a14af67cce85f.tar.bz2 uhd-354886ed4cee82317f6ad45bc57a14af67cce85f.zip |
mpm: e320/e310: Expose APIs to drive GPIO source via UHD
This enables the *gpio_src* APIs for the E320 and the E31x.
Diffstat (limited to 'mpm/python/e320_bist')
-rwxr-xr-x | mpm/python/e320_bist | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mpm/python/e320_bist b/mpm/python/e320_bist index ad5b2163a..c9662fe14 100755 --- a/mpm/python/e320_bist +++ b/mpm/python/e320_bist @@ -334,7 +334,7 @@ class E320BIST(bist.UsrpBIST): - read_patterns: A list of patterns that were read back """ assert 'gpio' in self.tests_to_run - GPIO_WIDTH = 8 + gpio_width = 8 patterns = range(16) if self.args.dry_run: return True, { @@ -353,7 +353,7 @@ class E320BIST(bist.UsrpBIST): " Run a GPIO test for a given set of patterns " gpio_ctrl = e320_periphs.FrontpanelGPIO(ddr) for pattern in patterns: - bist.gpio_set_all(gpio_ctrl, pattern, GPIO_WIDTH, ddr) + bist.gpio_set_all(gpio_ctrl, pattern, gpio_width, ddr) time.sleep(0.1) gpio_rb = gpio_ctrl.get_all() if pattern != gpio_rb: |