From b81df57b92fe6d9a5ebe6336a6405c9bcf388b7d Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 29 Jul 2018 07:24:52 +0100 Subject: [PATCH] fix gpio mk_pincon function rename --- src/bsv/peripheral_gen/gpio.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bsv/peripheral_gen/gpio.py b/src/bsv/peripheral_gen/gpio.py index 1e48768..f96525d 100644 --- a/src/bsv/peripheral_gen/gpio.py +++ b/src/bsv/peripheral_gen/gpio.py @@ -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)) -- 2.30.2