From: Luke Kenneth Casson Leighton Date: Tue, 24 Jul 2018 09:30:14 +0000 (+0100) Subject: add EINT interface hack which uses older style, no need to expose EINT lines X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5345d48c90b4f0514a7ecb4bcf76442b526026c8;p=pinmux.git add EINT interface hack which uses older style, no need to expose EINT lines via get/put --- diff --git a/src/bsv/interface_decl.py b/src/bsv/interface_decl.py index 05b4a80..6ab2961 100644 --- a/src/bsv/interface_decl.py +++ b/src/bsv/interface_decl.py @@ -446,6 +446,19 @@ class InterfaceQSPI(Interface): decfn) +class InterfaceEINT(Interface): + """ uses old-style (non-get/put) for now + """ + + def ifacepfmt(self, *args): + res = '\n'.join(map(self.ifacefmtdecpin, self.pins)).format(*args) + return '\n' + res # pins is a list + + def ifacedef2(self, *args): + return self.ifacedef(*args) + + + class InterfaceGPIO(Interface): def ifacepfmt(self, *args): @@ -478,7 +491,8 @@ class Interfaces(InterfacesBase, PeripheralInterfaces): def __init__(self, pth=None): InterfacesBase.__init__(self, Interface, pth, {'gpio': InterfaceGPIO, - 'qspi': InterfaceQSPI}) + 'qspi': InterfaceQSPI, + 'eint': InterfaceEINT}) PeripheralInterfaces.__init__(self) def ifacedef(self, f, *args):