forked from M-Labs/artiq
1
0
Fork 0

firmware: do not attempt to build Si5324 code when gateware does not support it

This commit is contained in:
Sebastien Bourdeauducq 2017-02-03 12:27:13 +08:00
parent 6fe1c9ff45
commit a8ecbd6041
2 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,7 @@ pub mod spiflash;
#[cfg(has_i2c)] #[cfg(has_i2c)]
pub mod i2c; pub mod i2c;
#[cfg(has_i2c)] #[cfg(has_si5324)]
pub mod si5324; pub mod si5324;
#[cfg(has_ad9516)] #[cfg(has_ad9516)]

View File

@ -98,6 +98,7 @@ class Satellite(BaseSoC):
self.submodules.i2c = gpio.GPIOTristate([i2c.scl, i2c.sda]) self.submodules.i2c = gpio.GPIOTristate([i2c.scl, i2c.sda])
self.csr_devices.append("i2c") self.csr_devices.append("i2c")
self.config["I2C_BUS_COUNT"] = 1 self.config["I2C_BUS_COUNT"] = 1
self.config["HAS_SI5324"] = None
self.comb += [ self.comb += [
platform.request("user_sma_clock_p").eq(ClockSignal("rtio_rx")), platform.request("user_sma_clock_p").eq(ClockSignal("rtio_rx")),