From f83afc719515c99d644793f9f9968eaded116575 Mon Sep 17 00:00:00 2001 From: morgan Date: Mon, 9 Sep 2024 10:52:11 +0800 Subject: [PATCH] main: add testing --- src/runtime/src/main.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/runtime/src/main.rs b/src/runtime/src/main.rs index dd24e25..862d6d3 100644 --- a/src/runtime/src/main.rs +++ b/src/runtime/src/main.rs @@ -150,5 +150,16 @@ pub fn main_core0() { task::spawn(ksupport::report_async_rtio_errors()); + use libboard_artiq::{cxp_downconn, cxp_upconn}; + cxp_downconn::setup(&mut timer); + // cxp_downconn::loopback_testing(&mut timer, cxp_downconn::CXP_SPEED::CXP_1); + // cxp_downconn::loopback_testing(&mut timer, cxp_downconn::CXP_SPEED::CXP_2); + // cxp_downconn::loopback_testing(&mut timer, cxp_downconn::CXP_SPEED::CXP_3); + // cxp_downconn::loopback_testing(&mut timer, cxp_downconn::CXP_SPEED::CXP_5); + // cxp_downconn::loopback_testing(&mut timer, cxp_downconn::CXP_SPEED::CXP_6); + // cxp_downconn::loopback_testing(&mut timer, cxp_downconn::CXP_SPEED::CXP_10); + // cxp_downconn::loopback_testing(&mut timer, cxp_downconn::CXP_SPEED::CXP_12); + cxp_upconn::tx_test(&mut timer); + comms::main(timer, cfg); }