forked from M-Labs/artiq
firmware: use has_ad9154 instead of has_converter_spi for conditional compilation
DRTIO designs do not have a JESD core yet, so we need to support converter SPI buses with only the clock chip.
This commit is contained in:
parent
f6024b6c9a
commit
54295b1699
@ -26,10 +26,10 @@ pub mod si5324;
|
||||
mod ad9516_reg;
|
||||
#[cfg(has_ad9516)]
|
||||
pub mod ad9516;
|
||||
#[cfg(has_converter_spi)]
|
||||
#[cfg(has_ad9154)]
|
||||
#[allow(dead_code)]
|
||||
mod ad9154_reg;
|
||||
#[cfg(has_converter_spi)]
|
||||
#[cfg(has_ad9154)]
|
||||
pub mod ad9154;
|
||||
|
||||
#[cfg(feature = "uart_console")]
|
||||
|
@ -79,7 +79,7 @@ fn startup() {
|
||||
board::i2c::init();
|
||||
#[cfg(has_ad9516)]
|
||||
board::ad9516::init().expect("cannot initialize ad9516");
|
||||
#[cfg(has_converter_spi)]
|
||||
#[cfg(has_ad9154)]
|
||||
board::ad9154::init().expect("cannot initialize ad9154");
|
||||
|
||||
let hardware_addr;
|
||||
|
Loading…
Reference in New Issue
Block a user