Hi Guys,
I’m wondering if it is possible to manually control the hardware SPI Chip Select pin instead of them being controlled by the hardware?
I wish to use the SPI peripheral in Master mode and manually control the Chip Select level.
More specifically I’m interested in controlling SPI2_CS0# which is pin G16 (Tegra SPI1_CS0) - I see in the pin mux that this pin has no GPIO3 configuration possible and only SFIO2 being SPI1_CS0.
My end goal is to be able to do something like this pseudo code:
SPI2_CS_Pin = 0;
ioctl(file_spi, SPI_IOC_MESSAGE(1), &xfer_spi);
… do some processing and waiting required by the slave device…
ioctl(file_spi, SPI_IOC_MESSAGE(1), &xfer_spi);
SPI2_CS_Pin = 1;
Thanks for any advice you can offer.
Regards
Lasse