Using PCS0 and PCS1 with CMSIS LPSPI driver

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using PCS0 and PCS1 with CMSIS LPSPI driver

1,536 Views
mh_AS
Contributor I

Hello.  I am currently using SPI4 on an IMXRT1064 using the CMSIS LPSPI config provided in the periperhals view of MCUXpresso.  I want to be able to programmatically swap between PCS0 and PCS1 (as we have 2 devices connected to that bus) but cannot find how this is achieved.  It looked like this would work but I think this isn't for the CMSIS driver:

LPSPI_SelectTransferPCS(LPSPI4, kLPSPI_Pcs1);

Any help is greatly appreciated.

image.png

Labels (1)
Tags (2)
0 Kudos
Reply
1 Reply

1,501 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

Yes, you are right.

LPSPI_SelectTransferPCS() is the LPSPI module SDK driver API function, not belongs to CMSIS style driver.

I will report this info to SDK software team.

best regards,

Mike 

0 Kudos
Reply