Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
skeleton
/
2c77baa0578bc7c7690f802549200e81c2cc918a
/
.
/
pysystemmgr
/
obmc
/
system
/
__init__.py
blob: 8799b695f75df401eb9cab50e18ffffd2e9b3384 [
file
] [
log
] [
blame
]
GPIO_BASE
=
320
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