set up defaults for mux
[pinmux.git] / src / bsv / peripheral_gen / gpio.py
index be38502b920533cbf2c3f4bb7f5d093f393d2bb3..b9f8504d7a6f1c626207e22e0d00af3289c3bddc 100644 (file)
@@ -37,7 +37,8 @@ class gpio(PBase):
     def mkslow_peripheral(self, size=0):
         print "gpioslow", self.peripheral, dir(self.peripheral)
         size = len(self.peripheral.pinspecs)
-        return "MUX#(%d) mux{0} <- mkmux();\n" % size + \
+        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):