Skip to content

Commit 9571b37

Browse files
committed
pncconf: add 7i96s
1 parent 7f0b006 commit 9571b37

3 files changed

Lines changed: 176 additions & 67 deletions

File tree

src/emc/usr_intf/pncconf/build_HAL.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,14 +1567,14 @@ def connect_input(self, file):
15671567

15681568
def write_pins(pname,p,i,t):
15691569
# for input pins
1570-
if t == _PD.GPIOI:
1570+
if t in (_PD.GPIOI, _PD.INM0):
15711571
if not p == "unused-input":
15721572
pinname = self.a.make_pinname(pname, substitution = self.d.useinisubstitution)
15731573
print("\n# ---",p.upper(),"---", file=file)
15741574
if "parport" in pinname:
15751575
if i: print("net %s <= %s-not" % (p, pinname), file=file)
15761576
else: print("net %s <= %s" % (p, pinname), file=file)
1577-
elif "sserial" in pname:
1577+
elif "sserial" in pname or t == _PD.INM0:
15781578
if i: print("net %s <= "% (p)+pinname +"-not", file=file)
15791579
else: print("net %s <= "% (p)+pinname, file=file)
15801580
else:
@@ -1662,7 +1662,7 @@ def connect_output(self, file):
16621662

16631663
def write_pins(pname,p,i,t,boardnum,connector,port,channel,pin):
16641664
# for output /open drain pins
1665-
if t in (_PD.GPIOO,_PD.GPIOD,_PD.SSR0):
1665+
if t in (_PD.GPIOO,_PD.GPIOD,_PD.SSR0,_PD.OUTM0):
16661666
if not p == "unused-output":
16671667
pinname = self.a.make_pinname(pname, substitution = self.d.useinisubstitution)
16681668
print("\n# ---",p.upper(),"---", file=file)
@@ -1676,9 +1676,9 @@ def write_pins(pname,p,i,t,boardnum,connector,port,channel,pin):
16761676
temp = pinname
16771677
# mainboard GPIOO require extra setup commands
16781678
else:
1679-
if not t == _PD.SSR0: print("setp %s true"% (pinname + ".is_output"), file=file)
1679+
if t not in (_PD.SSR0,_PD.OUTM0): print("setp %s true"% (pinname + ".is_output"), file=file)
16801680
if t == _PD.GPIOD: print("setp "+pinname+".is_opendrain true", file=file)
1681-
if t == _PD.SSR0:
1681+
if t in (_PD.SSR0,_PD.OUTM0):
16821682
temp = pinname
16831683
else:
16841684
temp = pinname + ".out"

0 commit comments

Comments
 (0)