Fix hanging with multiple I2C buses
Make the _mutex non-static and remove _owner and acquire()

When two or more I2C buses are used then static__mutex and _owner are
shared between all I2C class instances in the program. That
wastes time to reconfigure periphery on every transfer.

Make _mutex non-static. Remove _owner and acquire() method
because in non-static case they have no practical meaning.
ls
1 parent cecc47b commit 4b34f567af0d62d1dab0b93eb1d190deb6d915ed
@Vladimir Korneev Vladimir Korneev authored on 20 Jun 2021
Showing 2 changed files
View
drivers/include/drivers/I2C.h
View
drivers/source/I2C.cpp