diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2016-09-21 09:17:05 -0400 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2016-09-23 20:18:45 +0000 |
commit | a7ac805b407617f7a83eb152ff823f44d243a9b2 (patch) | |
tree | 354902fc7ea17f448c5dc0221b9cc081b5ee9d3d /pytools | |
parent | 7e5ec46d3f67e2447145e6399995ac554a61f152 (diff) | |
download | blackbird-skeleton-a7ac805b407617f7a83eb152ff823f44d243a9b2.tar.gz blackbird-skeleton-a7ac805b407617f7a83eb152ff823f44d243a9b2.zip |
configs: Remove gpio code from config files
Move to a new obmc.system module.
Change-Id: Ie02a4b2c14cfcf272d8823d44fb9d7c03b796c87
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'pytools')
-rw-r--r-- | pytools/gpioutil | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pytools/gpioutil b/pytools/gpioutil index 58e02e6..0654cd9 100644 --- a/pytools/gpioutil +++ b/pytools/gpioutil @@ -4,6 +4,7 @@ import sys import os import getopt import obmc_system_config as System +import obmc.system def printUsage(): @@ -114,9 +115,9 @@ if __name__ == '__main__': elif opt in ("-v"): value = arg elif opt in ("-p"): - gpio_name = System.convertGpio(arg) + gpio_name = obmc.system.convertGpio(arg) elif opt in ("-l"): - gpio_name = System.convertGpio(arg) + gpio_name = obmc.system.convertGpio(arg) print gpio_name exit(0) @@ -133,7 +134,7 @@ if __name__ == '__main__': if (gpio_info.has_key('gpio_num')): gpio_name = str(gpio_info['gpio_num']) else: - gpio_name = str(System.convertGpio(gpio_info['gpio_pin'])) + gpio_name = str(obmc.system.convertGpio(gpio_info['gpio_pin'])) print "GPIO ID: "+gpio_name+"; DIRECTION: "+direction |