From b810d19c7404faa7dce11290903a232011dd0261 Mon Sep 17 00:00:00 2001 From: morgan Date: Thu, 17 Oct 2024 10:46:03 +0800 Subject: [PATCH] libboard_artiq: setup libboard_artiq: add cxp_downconn & cxp_upconn libboard_artiq: compile mem with cxp libboard_artiq: add cxp_proto libboard_artiq: add cxp_phys libboard_artiq: add cxp libboard artiq: add cxp_comms --- src/libboard_artiq/src/lib.rs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/libboard_artiq/src/lib.rs b/src/libboard_artiq/src/lib.rs index 02525b3..1aa2568 100644 --- a/src/libboard_artiq/src/lib.rs +++ b/src/libboard_artiq/src/lib.rs @@ -26,7 +26,7 @@ pub mod fiq; #[cfg(feature = "target_kasli_soc")] pub mod io_expander; pub mod logger; -#[cfg(has_drtio)] +#[cfg(any(has_drtio, has_cxp_phys))] #[rustfmt::skip] #[path = "../../../build/mem.rs"] pub mod mem; @@ -43,6 +43,19 @@ pub mod si5324; pub mod si549; use core::{cmp, str}; +#[cfg(has_cxp_phys)] +pub mod cxp_downconn; +#[cfg(has_cxp_phys)] +pub mod cxp_upconn; + +pub mod cxp_proto; + +pub mod cxp_phys; + +pub mod cxp; + +pub mod cxp_comms; + pub fn identifier_read(buf: &mut [u8]) -> &str { unsafe { pl::csr::identifier::address_write(0);