Skip to content

Commit

Permalink
stm32/machine_i2s: Set FullDuplexMode to disabled on F4.
Browse files Browse the repository at this point in the history
Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Mar 29, 2022
1 parent 35dbde1 commit c90dfba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ports/stm32/machine_i2s.c
Expand Up @@ -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->CPOL = I2S_CPOL_LOW;
init->ClockSource = I2S_CLOCK_PLL;
#if defined(STM32F4)
init->FullDuplexMode = I2S_FULLDUPLEXMODE_DISABLE;
#endif

// init the I2S bus
if (!i2s_init(self)) {
Expand Down

0 comments on commit c90dfba

Please sign in to comment.