Is the SPI library thread safe


My multi-threaded application running on the iMX7 SoM would be communicating with another board using the SPI apis provided owith the Toradex SPI libraries,

I plan to initialize and open the SPI when the application starts. After that multiple threads are created and I wish to know is it safe to call spi_ReadWrite() from multiple threads or do I need to take care of this synchronization of the SPI port?

Dear @kapeed

I can confirm the recent releases of the SPI library are thread safe, so you can call Spi_ReadWrite() from multiple threads in parallel.

Regards, Andy

Thanks Andy