Placeholder data processing

This commit is contained in:
~erin 2023-07-14 10:39:10 -04:00
parent 3633c0e698
commit 8642a9cd6c
Signed by: erin
GPG Key ID: 9A8E308CEFA37A47
1 changed files with 10 additions and 2 deletions

View File

@ -9,7 +9,6 @@ use embassy_rp::multicore::{spawn_core1, Stack};
use embassy_rp::peripherals::PIN_25;
use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex;
use embassy_sync::channel::Channel;
use embassy_time::{Duration, Timer};
use static_cell::StaticCell;
use {defmt_rtt as _, panic_probe as _};
@ -70,6 +69,15 @@ async fn core1_task(mut led: Output<'static, PIN_25>) {
info!("Hello from core 1");
loop {
queue.push(CHANNEL.recv().await)
queue.push(CHANNEL.recv().await);
process_data(&queue[0]).await;
queue.remove(1);
}
}
async fn process_data(buf: &Buffer) {
// Low-pass filter
// FFT (w/ hanning window)
info!("todo");
}