AnsweredAssumed Answered

fsl_spi_freertos and different config on spi bus

Question asked by PO220 on May 5, 2016
Latest reply on May 9, 2016 by PO220

Hi

 

I'm looking fsl_spi_freertos driver but I need confirmation on what I understand...

 

I use on the same SPI bus several devices that do not have the same configuration (bdrate, phase...) and  I need to manipulate these devices from different tasks (I need mutex)

 

 

For me,  SPI_RTOS_Init function create the mutex and set configuration of the bus (with SPI_MasterInit), in the same function ; so I can not change bus configuration without breaking the mutex.

 

Is there a way to manage this or should I change  the SPI_RTOS_Init function to separate mutex creation and configuration of the bus (as I believe) ?

 

Thank you in advance

Outcomes