altos/stm32f1: Grab both TX/RX DMA mutexes while doing I2C
authorKeith Packard <keithp@keithp.com>
Sat, 2 Mar 2024 23:23:57 +0000 (16:23 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 2 Mar 2024 23:23:57 +0000 (16:23 -0700)
commita017cfce31429ef25a53a724e99b53c8267ec4ef
treecf1ee299f290c0bbb2ad3b7c9cc98a45a09ae6e0
parentd9140ea0d6bf6755a2701115273f02a4c3944e17
altos/stm32f1: Grab both TX/RX DMA mutexes while doing I2C

The I2C engine appears to trigger an extra RX DMA transaction which
scrambles anything sharing the same DMA units.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm32f1/ao_arch_funcs.h
src/stm32f1/ao_dma_stm.c
src/stm32f1/ao_i2c_stm.c