diff options
| author | Alexandros Liarokapis <[email protected]> | 2024-05-20 16:15:41 +0300 |
|---|---|---|
| committer | Alexandros Liarokapis <[email protected]> | 2024-05-27 18:06:20 +0300 |
| commit | 25cc5241b1e7c4a35c427626cd8f2f8721948830 (patch) | |
| tree | 7164bb70d2a4d6f1be035cd5250e65b75693500a /examples/stm32f4/src | |
| parent | f9324201b1d9375e12b4af9a6b2424fe3ff85d32 (diff) | |
Add i2s support for spi_v3.
Diffstat (limited to 'examples/stm32f4/src')
| -rw-r--r-- | examples/stm32f4/src/bin/i2s_dma.rs | 3 |
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 | ); |
