working buffer transfer, lets build from in here
This commit is contained in:
@@ -106,24 +106,7 @@ async fn main(spawner: Spawner) {
|
||||
// EDN OF SOFTWARE UART
|
||||
|
||||
|
||||
let mut last_yield = Instant::now();
|
||||
let mut buf = [0u8; 32];
|
||||
|
||||
let mut last_state: u8 = 0;
|
||||
loop {
|
||||
// info!("tick start");
|
||||
// Timer::after(Duration::from_millis(100)).await;
|
||||
// info!("tick end");
|
||||
|
||||
// let n1 = PIPE_HW_RX.read(&mut buf).await;
|
||||
// if n1 > 0 {
|
||||
// info!("PC received: {:a}", &buf[..n1]);
|
||||
// let _ = PIPE_SW_TX.write(&buf[..n1]).await;
|
||||
// info!("SW UART TX sent echo: {:a}", &buf[..n1]);
|
||||
// }
|
||||
// yield_now().await;
|
||||
|
||||
|
||||
yield_now().await;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user