fix gpio mk_pincon function rename
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 29 Jul 2018 06:24:52 +0000 (07:24 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 29 Jul 2018 06:24:52 +0000 (07:24 +0100)
src/bsv/peripheral_gen/gpio.py

index 1e48768700c519bc0d7aa2ca6ec9468d168f1399..f96525d5ceb92bb07c26d281198e368060afc4f3 100644 (file)
@@ -75,13 +75,14 @@ class gpio(PBase):
     def pinname_outen(self, pname):
         return "func.gpio_out_en[{0}]".format(pname[1:])
 
-    def mk_pincon(self, name, count):
+    def _mk_pincon(self, name, count, typ):
         #ret = [PBase.mk_pincon(self, name, count)]
         # special-case for gpio in, store in a temporary vector
+        assert typ == 'slow'
         ret = []
         plen = len(self.peripheral.pinspecs)
         template = "mkConnection({0}.{1},\n\t\t\t{2}_{1});"
-        ps = "pinmux.peripheral_side.%s" % name
+        ps = "!!!pinmux.peripheral_side.%s" % name
         n = "{0}.func.gpio".format(name)
         for ptype in ['out', 'out_en', 'in']:
             ret.append(template.format(ps, ptype, n))