diff options
author | Trung N Tran <trung.tran@ettus.com> | 2018-02-08 17:37:21 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-02-09 18:02:44 +0100 |
commit | 43969f4758ed00198de96c39e161128e00eb20ff (patch) | |
tree | 7d8668a3f77075667d771692faed8806f5010f8c /mpm/python/usrp_mpm/sys_utils/sysfs_gpio.py | |
parent | ca81898889ae7fa3c2b7b2cdd67213a45dc82282 (diff) | |
download | uhd-43969f4758ed00198de96c39e161128e00eb20ff.tar.gz uhd-43969f4758ed00198de96c39e161128e00eb20ff.tar.bz2 uhd-43969f4758ed00198de96c39e161128e00eb20ff.zip |
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 <martin.braun@ettus.com>
Diffstat (limited to 'mpm/python/usrp_mpm/sys_utils/sysfs_gpio.py')
-rw-r--r-- | mpm/python/usrp_mpm/sys_utils/sysfs_gpio.py | 12 |
1 files changed, 0 insertions, 12 deletions
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 |