I’m working on a project where I have to write to an SD card from more than one task. For this I use mutex.
I use SPI to communicate with the SD card, plus I have to use an EEPROM that share the same SPI bus witht he SD card. First idea that came in my mind is to use one mutex to share the SPI bus between SD card and EEPROM and also between different tasks that write/read from the SD card.
Is there a better efficient way to manage my case ?