Placeholder data processing
This commit is contained in:
parent
3633c0e698
commit
8642a9cd6c
12
src/main.rs
12
src/main.rs
|
@ -9,7 +9,6 @@ use embassy_rp::multicore::{spawn_core1, Stack};
|
||||||
use embassy_rp::peripherals::PIN_25;
|
use embassy_rp::peripherals::PIN_25;
|
||||||
use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex;
|
use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex;
|
||||||
use embassy_sync::channel::Channel;
|
use embassy_sync::channel::Channel;
|
||||||
use embassy_time::{Duration, Timer};
|
|
||||||
use static_cell::StaticCell;
|
use static_cell::StaticCell;
|
||||||
use {defmt_rtt as _, panic_probe as _};
|
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");
|
info!("Hello from core 1");
|
||||||
loop {
|
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");
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue