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 /configs/Palmetto.py | |
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 'configs/Palmetto.py')
-rw-r--r-- | configs/Palmetto.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/configs/Palmetto.py b/configs/Palmetto.py index f1ba970..98a04d2 100644 --- a/configs/Palmetto.py +++ b/configs/Palmetto.py @@ -1,6 +1,3 @@ -GPIO_BASE = 320 - - ## System states ## state can change to next state in 2 ways: ## - a process emits a GotoSystemState signal with state name to goto @@ -110,14 +107,6 @@ GPIO_CONFIG['MEZZ0_PRESENT'] = { 'gpio_pin': 'O0', 'direction': 'in' } GPIO_CONFIG['MEZZ1_PRESENT'] = { 'gpio_pin': 'O1', 'direction': 'in' } GPIO_CONFIG['CHECKSTOP'] = { 'gpio_pin': 'P5', 'direction': 'falling' } -def convertGpio(name): - name = name.upper() - c = name[0:1] - offset = int(name[1:]) - a = ord(c)-65 - base = a*8+GPIO_BASE - return base+offset - HWMON_CONFIG = { '2-004c' : { 'names' : { |