_io.append(make_uart("uart", 1))
# not connected - eurgh have to adjust this to match the total pincount.
-num_nc = 42
+num_nc = 40
nc = ' '.join("NC%d" % i for i in range(num_nc))
_io.append(("nc", 0, Pins(nc), IOStandard("LVCMOS33")))
# GPIO Tristate -------------------------------------------------------
# doesn't work properly.
#from litex.soc.cores.gpio import GPIOTristate
-from litex.soc.interconnect.csr import CSRStorage, CSRStatus
+from litex.soc.interconnect.csr import CSRStorage, CSRStatus, CSRField
from migen.genlib.cdc import MultiReg
# Imports
setattr(self.submodules, name, PWM(platform.request("pwm", i)))
self.add_csr(name)
- if False: # TODO: convert to _i _o _oe
- # I2C Master
- self.submodules.i2c = I2CMaster(platform.request("i2c"))
- self.add_csr("i2c")
+ # I2C Master
+ self.submodules.i2c = I2CMaster(platform.request("i2c"))
+ self.add_csr("i2c")
# SDCard -----------------------------------------------------