Skip to content

Commit f82df0f

Browse files
committed
compile error for F7
1 parent 4389389 commit f82df0f

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/stm32-config-i2s.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,16 @@
6565
};
6666
#define IS_H7
6767
#endif
68+
69+
#ifdef STM32F723xx
70+
#define SPI_INSTANCE_FOR_I2S SPI3
71+
#define STM_I2S_PINS \
72+
{ \
73+
{mclk, PB_7, GPIO_AF6_SPI3},\
74+
{bck, PB_3, GPIO_AF6_SPI3},\
75+
{ws, PA_15, GPIO_AF6_SPI3},\
76+
{data_out, PB_5, GPIO_AF6_SPI3},\
77+
{data_in, PB_4, GPIO_AF6_SPI3}\
78+
};
79+
#define IS_F7
80+
#endif

src/stm32-i2s.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ class Stm32I2sClass {
210210
}
211211
}
212212

213+
#ifndef IS_F7
213214
if (receive && transmit) {
214215
if (HAL_I2SEx_TransmitReceive_DMA(&hi2s3, (uint16_t *)dma_buffer_tx,
215216
(uint16_t *)dma_buffer_rx,
@@ -219,6 +220,7 @@ class Stm32I2sClass {
219220
result = false;
220221
}
221222
}
223+
#endif
222224
}
223225

224226
return result;

0 commit comments

Comments
 (0)