1
0
Fork 0

main: add testing

This commit is contained in:
morgan 2024-09-09 10:52:11 +08:00
parent 38485aec56
commit f83afc7195
1 changed files with 11 additions and 0 deletions

View File

@ -150,5 +150,16 @@ pub fn main_core0() {
task::spawn(ksupport::report_async_rtio_errors()); 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); comms::main(timer, cfg);
} }