mirror of https://github.com/m-labs/artiq.git
pipistrello: set RTIO_SPI_CHANNEL
This commit is contained in:
parent
9a881aa430
commit
8d7e92ebae
|
@ -200,6 +200,7 @@ trce -v 12 -fastpaths -tsi {build_name}.tsi -o {build_name}.twr {build_name}.ncd
|
||||||
spi_pins.cs_n = pmod.d[3:]
|
spi_pins.cs_n = pmod.d[3:]
|
||||||
phy = spi.SPIMaster(spi_pins)
|
phy = spi.SPIMaster(spi_pins)
|
||||||
self.submodules += phy
|
self.submodules += phy
|
||||||
|
self.config["RTIO_SPI_CHANNEL"] = len(rtio_channels)
|
||||||
rtio_channels.append(rtio.Channel.from_phy(
|
rtio_channels.append(rtio.Channel.from_phy(
|
||||||
phy, ofifo_depth=4, ififo_depth=4))
|
phy, ofifo_depth=4, ififo_depth=4))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue