From 354886ed4cee82317f6ad45bc57a14af67cce85f Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 14 Nov 2019 13:35:20 -0800 Subject: mpm: e320/e310: Expose APIs to drive GPIO source via UHD This enables the *gpio_src* APIs for the E320 and the E31x. --- mpm/python/e320_bist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mpm/python/e320_bist') 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: -- cgit v1.2.3