forked from M-Labs/zynq-rs
1
0
Fork 0

experiments: disable flash_io tests, remove simple async experiments

This commit is contained in:
Astro 2020-05-01 01:25:52 +02:00
parent 172a8a6c45
commit 6ab4869d05
1 changed files with 1 additions and 26 deletions

View File

@ -74,6 +74,7 @@ pub fn main_core0() {
ddr.memtest(); ddr.memtest();
ram::init_alloc_ddr(&mut ddr); ram::init_alloc_ddr(&mut ddr);
#[cfg(dev)]
for i in 0..=1 { for i in 0..=1 {
let mut flash_io = flash.manual_mode(i); let mut flash_io = flash.manual_mode(i);
// println!("rdcr={:02X}", flash_io.rdcr()); // println!("rdcr={:02X}", flash_io.rdcr());
@ -112,32 +113,6 @@ pub fn main_core0() {
flash = flash_io.stop(); flash = flash_io.stop();
} }
let (mut tx, mut rx) = sync_channel::sync_channel(0);
task::spawn(async move {
println!("outer task");
while let Some(item) = *rx.async_recv().await {
println!("received {}", item);
}
});
task::spawn(async {
for i in 1..=3 {
println!("outer task2: {}", i);
task::r#yield().await;
}
});
task::block_on(async {
task::spawn(async {
println!("inner task");
});
for i in 1..=10 {
println!("yield {}", i);
task::r#yield().await;
tx.async_send(Some(i)).await;
}
tx.async_send(None).await;
});
let core1 = boot::Core1::start(); let core1 = boot::Core1::start();
let (mut core1_req, rx) = sync_channel(10); let (mut core1_req, rx) = sync_channel(10);