Merge pull request #4193 from embediver/pio-i2s-bit-depth-config

embassy-rp: Make bit-depth of I2S PIO program configurable
This commit is contained in:
Dario Nieuwenhuis
2025-05-18 21:20:24 +02:00
committed by GitHub
3 changed files with 13 additions and 9 deletions

View File

@@ -27,7 +27,6 @@ bind_interrupts!(struct Irqs {
const SAMPLE_RATE: u32 = 48_000;
const BIT_DEPTH: u32 = 16;
const CHANNELS: u32 = 2;
#[embassy_executor::main]
async fn main(_spawner: Spawner) {
@@ -50,7 +49,6 @@ async fn main(_spawner: Spawner) {
left_right_clock_pin,
SAMPLE_RATE,
BIT_DEPTH,
CHANNELS,
&program,
);

View File

@@ -27,7 +27,6 @@ bind_interrupts!(struct Irqs {
const SAMPLE_RATE: u32 = 48_000;
const BIT_DEPTH: u32 = 16;
const CHANNELS: u32 = 2;
#[embassy_executor::main]
async fn main(_spawner: Spawner) {
@@ -50,7 +49,6 @@ async fn main(_spawner: Spawner) {
left_right_clock_pin,
SAMPLE_RATE,
BIT_DEPTH,
CHANNELS,
&program,
);