From 3f6811abe42cfaf1d3202c2574c9b185ce0f3653 Mon Sep 17 00:00:00 2001 From: morgan Date: Mon, 9 Sep 2024 10:52:11 +0800 Subject: [PATCH] runtime main: add cxp phys setup --- src/runtime/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/runtime/src/main.rs b/src/runtime/src/main.rs index dd24e25..0c581f6 100644 --- a/src/runtime/src/main.rs +++ b/src/runtime/src/main.rs @@ -13,6 +13,8 @@ use core::cell::RefCell; use ksupport; use libasync::task; +#[cfg(has_cxp_phys)] +use libboard_artiq::cxp_phys; #[cfg(has_drtio_eem)] use libboard_artiq::drtio_eem; #[cfg(feature = "target_kasli_soc")] @@ -150,5 +152,8 @@ pub fn main_core0() { task::spawn(ksupport::report_async_rtio_errors()); + #[cfg(has_cxp_phys)] + cxp_phys::setup(&mut timer); + comms::main(timer, cfg); }