diff options
| author | Damien George <damien@micropython.org> | 2022-03-23 15:21:03 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-03-29 11:44:08 +1100 |
| commit | c90dfba04ca8d6e3eb12732dea2344f393f77531 (patch) | |
| tree | 00b9e96af0b0bc221b644e72bd4230c3c2f81e10 | |
| parent | 35dbde163a8a253679c09b4646a9177cde5345f2 (diff) | |
stm32/machine_i2s: Set FullDuplexMode to disabled on F4.
Signed-off-by: Damien George <damien@micropython.org>
| -rw-r--r-- | ports/stm32/machine_i2s.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/stm32/machine_i2s.c b/ports/stm32/machine_i2s.c index 31b7d14bf..0bb0f3e8f 100644 --- a/ports/stm32/machine_i2s.c +++ b/ports/stm32/machine_i2s.c @@ -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)) { |
