Using PCS0 and PCS1 with CMSIS LPSPI driver

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Using PCS0 and PCS1 with CMSIS LPSPI driver

1,600 次查看
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.pngimage.png

标签 (1)
标记 (2)
0 项奖励
回复
1 回复

1,565 次查看
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 项奖励
回复