mirror of
https://github.com/supleed2/EIE4-FYP.git
synced 2024-12-22 22:25:50 +00:00
Add amp volume control I2C Master
This commit is contained in:
parent
e3758d0cf8
commit
00c35f8476
9
make.py
9
make.py
|
@ -202,6 +202,11 @@ class BaseSoC(SoCCore):
|
||||||
|
|
||||||
# GPIO Pins --------------------------------------------------------------------------------
|
# GPIO Pins --------------------------------------------------------------------------------
|
||||||
platform.add_extension([
|
platform.add_extension([
|
||||||
|
("i2c", 0,
|
||||||
|
Subsignal("scl", Pins("C9"), Misc("PULLMODE=UP")), # IO_SCL
|
||||||
|
Subsignal("sda", Pins("C10"), Misc("PULLMODE=UP")), # IO_SDA
|
||||||
|
IOStandard("LVCMOS33")
|
||||||
|
),
|
||||||
("can", 0,
|
("can", 0,
|
||||||
Subsignal("tx", Pins("J2")), # IO_13
|
Subsignal("tx", Pins("J2")), # IO_13
|
||||||
Subsignal("rx", Pins("H2")), # IO_12
|
Subsignal("rx", Pins("H2")), # IO_12
|
||||||
|
@ -247,6 +252,10 @@ class BaseSoC(SoCCore):
|
||||||
# pads = platform.request("dac_ctrl")
|
# pads = platform.request("dac_ctrl")
|
||||||
# )
|
# )
|
||||||
|
|
||||||
|
# Volume Control ---------------------------------------------------------------------------
|
||||||
|
from litex.soc.cores.bitbang import I2CMaster
|
||||||
|
self.i2c = I2CMaster(pads = platform.request("i2c"))
|
||||||
|
|
||||||
# Propagation Delay Test -------------------------------------------------------------------
|
# Propagation Delay Test -------------------------------------------------------------------
|
||||||
# from modules.testPropagation import TestPropagation
|
# from modules.testPropagation import TestPropagation
|
||||||
# self.proptest = TestPropagation(platform = platform)
|
# self.proptest = TestPropagation(platform = platform)
|
||||||
|
|
Loading…
Reference in a new issue