bitbang.py: initialize SCL / SDA lines to high on reset
* otherwise might block the I2C bus on reset
This commit is contained in:
parent
0e9e57c926
commit
e4ceaa7cc2
|
@ -28,9 +28,9 @@ class I2CMaster(Module, AutoCSR):
|
|||
pads = Record(self.pads_layout)
|
||||
self.pads = pads
|
||||
self._w = CSRStorage(fields=[
|
||||
CSRField("scl", size=1, offset=0),
|
||||
CSRField("scl", size=1, offset=0, reset=1),
|
||||
CSRField("oe", size=1, offset=1),
|
||||
CSRField("sda", size=1, offset=2)],
|
||||
CSRField("sda", size=1, offset=2, reset=1)],
|
||||
name="w")
|
||||
self._r = CSRStatus(fields=[
|
||||
CSRField("sda", size=1, offset=0)],
|
||||
|
|
Loading…
Reference in New Issue