pass in Interface factory, to do GPIO differently
[pinmux.git] / src / bsv / interface_decl.py
index 1a728fad8db9f6ee4674b19520da729865931651..3da0fc02610fe73652c3735216320950ee43aed2 100644 (file)
@@ -350,13 +350,16 @@ class IOInterface(Interface):
     def wirefmt(self, *args):
         return generic_io.format(*args)
 
+class InterfaceGPIO(Interface):
+    pass
 
 class Interfaces(InterfacesBase, PeripheralInterfaces):
     """ contains a list of interface definitions
     """
 
     def __init__(self, pth=None):
-        InterfacesBase.__init__(self, Interface, pth)
+        InterfacesBase.__init__(self, Interface, pth,
+                                            {'gpio': InterfaceGPIO })
         PeripheralInterfaces.__init__(self)
 
     def ifacedef(self, f, *args):