mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 03:08:27 +08:00
firmware: fix build without DRTIO
This commit is contained in:
parent
d19550daf8
commit
65da1fee4a
@ -1,4 +1,6 @@
|
||||
use board_misoc::{csr, config};
|
||||
use board_misoc::config;
|
||||
#[cfg(has_drtio_routing)]
|
||||
use board_misoc::csr;
|
||||
use core::fmt;
|
||||
|
||||
pub const DEST_COUNT: usize = 256;
|
||||
|
@ -34,7 +34,6 @@ use board_misoc::{csr, irq, ident, clock, boot, config};
|
||||
use board_misoc::ethmac;
|
||||
#[cfg(has_drtio)]
|
||||
use board_artiq::drtioaux;
|
||||
#[cfg(has_drtio_routing)]
|
||||
use board_artiq::drtio_routing;
|
||||
use board_artiq::{mailbox, rpc_queue};
|
||||
use proto_artiq::{mgmt_proto, moninj_proto, rpc_proto, session_proto, kernel_proto};
|
||||
|
@ -125,7 +125,7 @@ macro_rules! dispatch {
|
||||
#[cfg(not(has_drtio))]
|
||||
macro_rules! dispatch {
|
||||
($routing_table:ident, $channel:expr, $func:ident $(, $param:expr)*) => {{
|
||||
let channel = $channel as u8;
|
||||
let channel = $channel as u16;
|
||||
local_moninj::$func(channel, $($param, )*)
|
||||
}}
|
||||
}
|
||||
|
@ -1,6 +1,8 @@
|
||||
use core::cell::RefCell;
|
||||
use urc::Urc;
|
||||
use board_misoc::{csr, clock};
|
||||
use board_misoc::csr;
|
||||
#[cfg(has_drtio))]
|
||||
use board_misoc::clock;
|
||||
#[cfg(has_rtio_clock_switch)]
|
||||
use board_misoc::config;
|
||||
use board_artiq::drtio_routing;
|
||||
|
Loading…
Reference in New Issue
Block a user