forked from M-Labs/artiq-zynq
main: add testing channel
This commit is contained in:
parent
cd7cff8a8b
commit
ad8260d93a
|
@ -151,18 +151,18 @@ pub fn main_core0() {
|
|||
task::spawn(ksupport::report_async_rtio_errors());
|
||||
|
||||
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);
|
||||
// loop {
|
||||
// use embedded_hal::prelude::_embedded_hal_blocking_delay_DelayUs;
|
||||
// cxp_upconn::tx_test(&mut timer);
|
||||
// timer.delay_us(5_000_000);
|
||||
// }
|
||||
// cxp_downconn::loopback_testing(0, &mut timer, cxp_downconn::CXP_SPEED::CXP_1);
|
||||
// cxp_downconn::loopback_testing(0, &mut timer, cxp_downconn::CXP_SPEED::CXP_2);
|
||||
// cxp_downconn::loopback_testing(0, &mut timer, cxp_downconn::CXP_SPEED::CXP_3);
|
||||
// cxp_downconn::loopback_testing(0, &mut timer, cxp_downconn::CXP_SPEED::CXP_5);
|
||||
// cxp_downconn::loopback_testing(0, &mut timer, cxp_downconn::CXP_SPEED::CXP_6);
|
||||
// cxp_downconn::loopback_testing(0, &mut timer, cxp_downconn::CXP_SPEED::CXP_10);
|
||||
// cxp_downconn::loopback_testing(0, &mut timer, cxp_downconn::CXP_SPEED::CXP_12);
|
||||
loop {
|
||||
use embedded_hal::prelude::_embedded_hal_blocking_delay_DelayUs;
|
||||
cxp_upconn::tx_test(0, &mut timer);
|
||||
timer.delay_us(5_000_000);
|
||||
}
|
||||
|
||||
comms::main(timer, cfg);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue