Fix pin collision in I2S tests (#2147)
This commit is contained in:
parent
e7dab298f5
commit
f8e2341116
@ -12,9 +12,8 @@ use esp_hal::{
|
|||||||
delay::Delay,
|
delay::Delay,
|
||||||
dma::{Dma, DmaPriority},
|
dma::{Dma, DmaPriority},
|
||||||
dma_buffers,
|
dma_buffers,
|
||||||
gpio::Io,
|
gpio::{DummyPin, Io},
|
||||||
i2s::{DataFormat, I2s, I2sReadDma, I2sWriteDma, Standard},
|
i2s::{DataFormat, I2s, I2sReadDma, I2sWriteDma, Standard},
|
||||||
peripheral::Peripheral,
|
|
||||||
prelude::*,
|
prelude::*,
|
||||||
};
|
};
|
||||||
use hil_test as _;
|
use hil_test as _;
|
||||||
@ -76,15 +75,15 @@ mod tests {
|
|||||||
|
|
||||||
let mut i2s_tx = i2s
|
let mut i2s_tx = i2s
|
||||||
.i2s_tx
|
.i2s_tx
|
||||||
.with_bclk(unsafe { io.pins.gpio0.clone_unchecked() })
|
.with_bclk(DummyPin::new())
|
||||||
.with_ws(unsafe { io.pins.gpio1.clone_unchecked() })
|
.with_ws(DummyPin::new())
|
||||||
.with_dout(dout)
|
.with_dout(dout)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
let mut i2s_rx = i2s
|
let mut i2s_rx = i2s
|
||||||
.i2s_rx
|
.i2s_rx
|
||||||
.with_bclk(io.pins.gpio0)
|
.with_bclk(DummyPin::new())
|
||||||
.with_ws(io.pins.gpio1)
|
.with_ws(DummyPin::new())
|
||||||
.with_din(din)
|
.with_din(din)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
|||||||
@ -11,9 +11,8 @@
|
|||||||
|
|
||||||
use esp_hal::{
|
use esp_hal::{
|
||||||
dma::{Dma, DmaPriority},
|
dma::{Dma, DmaPriority},
|
||||||
gpio::Io,
|
gpio::{DummyPin, Io},
|
||||||
i2s::{asynch::*, DataFormat, I2s, I2sTx, Standard},
|
i2s::{asynch::*, DataFormat, I2s, I2sTx, Standard},
|
||||||
peripheral::Peripheral,
|
|
||||||
peripherals::I2S0,
|
peripherals::I2S0,
|
||||||
prelude::*,
|
prelude::*,
|
||||||
Async,
|
Async,
|
||||||
@ -125,15 +124,15 @@ mod tests {
|
|||||||
|
|
||||||
let i2s_tx = i2s
|
let i2s_tx = i2s
|
||||||
.i2s_tx
|
.i2s_tx
|
||||||
.with_bclk(unsafe { io.pins.gpio0.clone_unchecked() })
|
.with_bclk(DummyPin::new())
|
||||||
.with_ws(unsafe { io.pins.gpio1.clone_unchecked() })
|
.with_ws(DummyPin::new())
|
||||||
.with_dout(dout)
|
.with_dout(dout)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
let i2s_rx = i2s
|
let i2s_rx = i2s
|
||||||
.i2s_rx
|
.i2s_rx
|
||||||
.with_bclk(io.pins.gpio0)
|
.with_bclk(DummyPin::new())
|
||||||
.with_ws(io.pins.gpio1)
|
.with_ws(DummyPin::new())
|
||||||
.with_din(din)
|
.with_din(din)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user