forked from M-Labs/artiq
1
0
Fork 0

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:
Sebastien Bourdeauducq 2017-01-30 11:03:55 +08:00
parent f6024b6c9a
commit 54295b1699
2 changed files with 3 additions and 3 deletions

View File

@ -26,10 +26,10 @@ pub mod si5324;
mod ad9516_reg; mod ad9516_reg;
#[cfg(has_ad9516)] #[cfg(has_ad9516)]
pub mod ad9516; pub mod ad9516;
#[cfg(has_converter_spi)] #[cfg(has_ad9154)]
#[allow(dead_code)] #[allow(dead_code)]
mod ad9154_reg; mod ad9154_reg;
#[cfg(has_converter_spi)] #[cfg(has_ad9154)]
pub mod ad9154; pub mod ad9154;
#[cfg(feature = "uart_console")] #[cfg(feature = "uart_console")]

View File

@ -79,7 +79,7 @@ fn startup() {
board::i2c::init(); board::i2c::init();
#[cfg(has_ad9516)] #[cfg(has_ad9516)]
board::ad9516::init().expect("cannot initialize ad9516"); board::ad9516::init().expect("cannot initialize ad9516");
#[cfg(has_converter_spi)] #[cfg(has_ad9154)]
board::ad9154::init().expect("cannot initialize ad9154"); board::ad9154::init().expect("cannot initialize ad9154");
let hardware_addr; let hardware_addr;