Hello PO220
When the same SPI bus is connected with multiple external SPI devices, and each device is working in different tasks, we can use mutex to ensure only one device is working in the same time. User can create the mutex in SPI_RTOS_Init function, and lock the mutex when starting a task, unlock it when exist the task. However, when switch the task, the SPI register should be re-configured for the new task.
Best Regards
Fiona Kuang
TIC - Technical Information Center
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Mark Correct button. Thank you!
-----------------------------------------------------------------------------------------------------------------------