AnsweredAssumed Answered

Using MQX on a Kinetis K60 how do I change the SPI chip select?

Question asked by kfranz on Sep 25, 2012
Latest reply on Sep 27, 2012 by David E Seymour

I am looking at the example code in Freescale MQX 3.8\mqx\examples\spi\spi.c . I can see how the various SPI control parameters are changed except for the chip select. We have a custom design with SPI devices connected to each of the four chip selects on SPI1 (SPI1_PCS0, SPI1_PCS1, SPI1_PCS2, SPI1_PCS3). It looks like I use ioctl(spifd, IO_IOCTL_SPI_SET_CS, &param) to change the current chip select. Is this correct? If so, what does 'param' get set to for each of the chip selects? If not, how do I change the active chip select?