mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
soc/cores/bitbang/i2c: Add connect_pads parameter.
This commit is contained in:
parent
c455a002d0
commit
fdd7c97ce5
1 changed files with 3 additions and 2 deletions
|
@ -27,7 +27,7 @@ class I2CMaster(LiteXModule):
|
|||
"""
|
||||
pads_layout = [("scl", 1), ("sda", 1)]
|
||||
|
||||
def __init__(self, pads=None, default_dev=False):
|
||||
def __init__(self, pads=None, default_dev=False, connect_pads=True):
|
||||
"""
|
||||
Class constructor.
|
||||
|
||||
|
@ -50,7 +50,8 @@ class I2CMaster(LiteXModule):
|
|||
|
||||
self.default_dev = default_dev
|
||||
|
||||
self.connect(pads)
|
||||
if connect_pads:
|
||||
self.connect(pads)
|
||||
|
||||
def connect(self, pads):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue