AnsweredAssumed Answered

SPI MQX 3.6

Question asked by Jaime Rodriguez on Sep 23, 2010
Latest reply on Sep 24, 2010 by Petr MacHala

Hi,

 

I have a doubt concerning SPI driver, this is the situation:

 

-MCF52259

-MQX 3.6

-I need to control 3 SPI devices, one of the uses QSPI_PCS0 Pin and the other two devices use GPIO.

 

I understand I must use IO_IOCTL_SPI_SET_CS_CALLBACK  in order to call a customized function and control Chip Select automatically.

 

Does this mean I must open 3 SPI drivers so that I can use a specific routine to control each chip select pin? or

How do I indicate which pin should the callback function activate/deactivate?

 

I already checked the SPI example but since it only used ONE spi device I don't know how to indicate which device should be active.

 

Thank you

 

Outcomes