From f7ad7a99e309b17e168ae99e951697dfeadf6fcb Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 15 Sep 2018 19:10:52 +0800 Subject: [PATCH] firmware: set DEST_COUNT to 0 without routing --- artiq/firmware/libboard_artiq/drtio_routing.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/artiq/firmware/libboard_artiq/drtio_routing.rs b/artiq/firmware/libboard_artiq/drtio_routing.rs index cc49c7b54..562517342 100644 --- a/artiq/firmware/libboard_artiq/drtio_routing.rs +++ b/artiq/firmware/libboard_artiq/drtio_routing.rs @@ -3,7 +3,10 @@ use board_misoc::config; use board_misoc::csr; use core::fmt; +#[cfg(has_drtio_routing)] pub const DEST_COUNT: usize = 256; +#[cfg(not(has_drtio_routing))] +pub const DEST_COUNT: usize = 0; pub const MAX_HOPS: usize = 32; pub const INVALID_HOP: u8 = 0xff;