From 6ab4869d05c35f51e03a997e6499dd7b554b1086 Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 1 May 2020 01:25:52 +0200 Subject: [PATCH] experiments: disable flash_io tests, remove simple async experiments --- experiments/src/main.rs | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/experiments/src/main.rs b/experiments/src/main.rs index 2eda62b..ccb98a7 100644 --- a/experiments/src/main.rs +++ b/experiments/src/main.rs @@ -74,6 +74,7 @@ pub fn main_core0() { ddr.memtest(); ram::init_alloc_ddr(&mut ddr); + #[cfg(dev)] for i in 0..=1 { let mut flash_io = flash.manual_mode(i); // println!("rdcr={:02X}", flash_io.rdcr()); @@ -112,32 +113,6 @@ pub fn main_core0() { 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 (mut core1_req, rx) = sync_channel(10);