Hello everyone,
I am new to the SSP (using v1.4 with S5D9-PK) and I have some quiestions, probably basic, regarding the QSPI modules avaliable. I have tested the QSPI driver in my application and its working as expected. But, taking into account that the application will have different interfaces (HMI, telnet, UART, ...) avaliable, should I add protection, like mutex, in every function that access the g_qspi, right? because, different threads will call functions for save data, for example.
In case I use the g_sf_block_media_qspi instead of the g_qspi directly, do I need to add that protection too? or the framework adds it? (in the manual it says threadx-aware drivers, fig. 126). In that case, how should I proceed? do I need to get some internal mutex or the api is doing that?
Another question, does it matter in which thread I add the driver/framework if is going to be used by more than one? Because, in the short example from the manual that shows how to set the g_sf_block_media_qspi, says to add that module in the HAL/common thread, but I don't see those modules avaliable in the New_Stack button in that thread.
Thanks in advance,