forked from M-Labs/artiq
1
0
Fork 0

firmware: set DEST_COUNT to 0 without routing

This commit is contained in:
Sebastien Bourdeauducq 2018-09-15 19:10:52 +08:00
parent 3cbdf2fbac
commit f7ad7a99e3
1 changed files with 3 additions and 0 deletions

View File

@ -3,7 +3,10 @@ use board_misoc::config;
use board_misoc::csr; use board_misoc::csr;
use core::fmt; use core::fmt;
#[cfg(has_drtio_routing)]
pub const DEST_COUNT: usize = 256; 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 MAX_HOPS: usize = 32;
pub const INVALID_HOP: u8 = 0xff; pub const INVALID_HOP: u8 = 0xff;