aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2024-05-30 12:31:59 +0000
committerGitHub <[email protected]>2024-05-30 12:31:59 +0000
commit694ac3a51573421c90e350c6253e2f42b4ab0bb1 (patch)
tree95b904818148d856dcb988b5fca1da3a0e93516c /examples
parentd21e9caa801511a7959543e058a22d83871bb3fe (diff)
parent25cc5241b1e7c4a35c427626cd8f2f8721948830 (diff)
Merge pull request #2992 from liarokapisv/i2s-spi_v3
Add spi v3 & Full-duplex support to the I2S driver.
Diffstat (limited to 'examples')
-rw-r--r--examples/stm32f4/src/bin/i2s_dma.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/stm32f4/src/bin/i2s_dma.rs b/examples/stm32f4/src/bin/i2s_dma.rs
index 97a04b2aa..27b165f1b 100644
--- a/examples/stm32f4/src/bin/i2s_dma.rs
+++ b/examples/stm32f4/src/bin/i2s_dma.rs
@@ -15,14 +15,13 @@ async fn main(_spawner: Spawner) {
15 let p = embassy_stm32::init(Default::default()); 15 let p = embassy_stm32::init(Default::default());
16 info!("Hello World!"); 16 info!("Hello World!");
17 17
18 let mut i2s = I2S::new( 18 let mut i2s = I2S::new_txonly(
19 p.SPI2, 19 p.SPI2,
20 p.PC3, // sd 20 p.PC3, // sd
21 p.PB12, // ws 21 p.PB12, // ws
22 p.PB10, // ck 22 p.PB10, // ck
23 p.PC6, // mck 23 p.PC6, // mck
24 p.DMA1_CH4, 24 p.DMA1_CH4,
25 p.DMA1_CH3,
26 Hertz(1_000_000), 25 Hertz(1_000_000),
27 Config::default(), 26 Config::default(),
28 ); 27 );