stm32/machine_i2s: Set FullDuplexMode to disabled on F4.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2022-03-23 15:21:03 +11:00
parent 35dbde163a
commit c90dfba04c
1 changed files with 3 additions and 0 deletions

View File

@ -791,6 +791,9 @@ STATIC void machine_i2s_init_helper(machine_i2s_obj_t *self, size_t n_pos_args,
init->AudioFreq = args[ARG_rate].u_int; init->AudioFreq = args[ARG_rate].u_int;
init->CPOL = I2S_CPOL_LOW; init->CPOL = I2S_CPOL_LOW;
init->ClockSource = I2S_CLOCK_PLL; init->ClockSource = I2S_CLOCK_PLL;
#if defined(STM32F4)
init->FullDuplexMode = I2S_FULLDUPLEXMODE_DISABLE;
#endif
// init the I2S bus // init the I2S bus
if (!i2s_init(self)) { if (!i2s_init(self)) {