From 43969f4758ed00198de96c39e161128e00eb20ff Mon Sep 17 00:00:00 2001 From: Trung N Tran Date: Thu, 8 Feb 2018 17:37:21 -0800 Subject: mpm: remove GPIOBank.set_all function -set_all function doesn't fit well with the GPIO api. It is rather a test sepecific function. -Add gpio_set_all helper to n3xx_bist. Reviewed-by: Martin Braun --- mpm/python/usrp_mpm/sys_utils/sysfs_gpio.py | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'mpm/python/usrp_mpm/sys_utils') diff --git a/mpm/python/usrp_mpm/sys_utils/sysfs_gpio.py b/mpm/python/usrp_mpm/sys_utils/sysfs_gpio.py index 10c8ad06a..286b8e54a 100644 --- a/mpm/python/usrp_mpm/sys_utils/sysfs_gpio.py +++ b/mpm/python/usrp_mpm/sys_utils/sysfs_gpio.py @@ -201,18 +201,6 @@ class GPIOBank(object): self._ddr << self._offset ) - def set_all(self, value): - """ - Set all pins to 'value'. - This method will convert value into binary and assign all the bits in - the use mask. - """ - bin_value = ('{0:0'+str(self._gpiosize)+'b}').format(value) - wr_value = bin_value[-(self._gpiosize):] - for i in range(self._gpiosize): - if (1 << i) & self._ddr: - self._gpios.set(self._offset + i, wr_value[i % self._gpiosize]) - def set(self, index, value=None): """ Set a pin by index -- cgit v1.2.3