From: Luke Kenneth Casson Leighton Date: Fri, 3 Aug 2018 05:18:05 +0000 (+0100) Subject: set up defaults for mux X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=36385cd37b2e24d02c64d9e57fde086336071657;p=pinmux.git set up defaults for mux --- diff --git a/src/bsv/peripheral_gen/gpio.py b/src/bsv/peripheral_gen/gpio.py index d86c582..b9f8504 100644 --- a/src/bsv/peripheral_gen/gpio.py +++ b/src/bsv/peripheral_gen/gpio.py @@ -37,8 +37,8 @@ class gpio(PBase): def mkslow_peripheral(self, size=0): print "gpioslow", self.peripheral, dir(self.peripheral) size = len(self.peripheral.pinspecs) - dflt = "'b%s" % ("0"*size*2) - return "MUX#(%d) mux{0} <- mkmux(%s);\n" % (size, dflt)+ \ + dflt = "%s" % ("0"*size*2) # XX TODO: read default from config + return "MUX#(%d) mux{0} <- mkmux(`b%s);\n" % (size, dflt)+ \ "GPIO#(%d) gpio{0} <- mkgpio();" % size def mk_connection(self, count, fabricname, typ):